From bc47fc07f186517e085071ef745620ff092cda0b Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Sun, 6 Apr 2025 14:07:22 +0800 Subject: [PATCH] add android configuration --- init.el | 2 ++ lisp/init-android.el | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 lisp/init-android.el diff --git a/init.el b/init.el index 37f37ed..15af9f6 100644 --- a/init.el +++ b/init.el @@ -61,6 +61,8 @@ If freezing sometimes, decrease it. If stuttering, increase it.") (add-to-list 'load-path (expand-file-name "lisp" creature/config-dir) t) +(when (eq system-type 'android) + (require 'init-android)) (require 'init-built-in) (require 'init-treesit) (require 'init-modeline) diff --git a/lisp/init-android.el b/lisp/init-android.el new file mode 100644 index 0000000..548c600 --- /dev/null +++ b/lisp/init-android.el @@ -0,0 +1,9 @@ +;; -*- coding: utf-8; lexical-binding: t; -*- + +;; Make command install by `termux' accessible +(let ((termux-path "/data/data/com.termux/files/usr/bin")) + (setenv "PATH" (format "%s:%s" termux-path (getenv "PATH"))) + (add-to-list 'exec-path termux-path)) + + +(provide 'init-android)