From 22970281a153989ed43b04f304d176ff60963cf8 Mon Sep 17 00:00:00 2001 From: rearman Date: Mon, 13 May 2024 14:28:35 -0400 Subject: [PATCH] Changes for android emacs --- init.org | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/init.org b/init.org index 9973fe1..b0585ad 100644 --- 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 -- 2.39.5