diff --git a/init.el b/init.el index 633f0ab..e9b5b5d 100644 --- a/init.el +++ b/init.el @@ -66,6 +66,12 @@ ;; Some personal stuff (setq user-mail-address "gergely@polonkai.eu") +(defun termux-p () + "Check if Emacs is running under Termux." + (string-match-p + (regexp-quote "/com.termux/") + (expand-file-name "~"))) + ;; Load some custom libraries (require 'thingatpt)