]> git.earman.xyz Git - emacsinit.git/commitdiff
Changes for android emacs
authorrearman <rearman@r717.net>
Mon, 13 May 2024 18:28:35 +0000 (14:28 -0400)
committerrearman <rearman@r717.net>
Mon, 13 May 2024 18:28:35 +0000 (14:28 -0400)
init.org

index 9973fe1ce24e23808cdfbb25c851b2e8e0653438..b0585ad00ace989a06e7af696ef81af322c44251 100644 (file)
--- a/init.org
+++ b/init.org
@@ -72,7 +72,7 @@ git update-index --no-assume-unchanged init.el
 :PROPERTIES:
 :ID:       4420cd35-3101-4ee2-bc61-964e08b06174
 :END:
-This file was introduced in Emacs 27.  I use it for speeding up init, removing all the UI stuff I don't want, etc.  Maybe superfluous, but I do get startup times on the order of /0.015/ seconds.
+This file was introduced in Emacs 27.  I use it for speeding up init, removing all the UI stuff I don't want, etc.  Maybe superfluous, but I do get startup times on the order of /0.015/ seconds.  No longer superfluous, because this is where you set up the items needed for android emacs to play nice with termux - see [[https://sourceforge.net/projects/android-ports-for-gnu-emacs/files/termux][SourceForge]]
 
 ** The normal header
 :PROPERTIES:
@@ -87,6 +87,18 @@ There are no GNU Police (yet), but I feel nicer by adding this in.
 ;; Code:
 #+END_SRC
 
+** Android Setup
+:PROPERTIES:
+:ID:       df50b909-93f9-4e98-981e-fdc396c28f28
+:END:
+#+BEGIN_SRC emacs-lisp :tangle ./early-init.el
+(when (equal system-type 'android)
+  (defvar termux-path "/data/data/com.termux/files/usr/bin")
+  (setenv "PATH" (format "%s:%s" termux-path
+                         (getenv "PATH")))
+  (push termux-path exec-path))
+#+END_SRC
+
 ** GC thrashing
 :PROPERTIES:
 :ID:       d95e3549-b3ad-4aeb-a229-739a871b6c4b