Create the function termux-p

It can decide if we are running under Termux.
This commit is contained in:
Gergely Polonkai 2017-04-12 07:46:57 +02:00
parent 63e8cd46a8
commit 334fef4f42

View File

@ -66,6 +66,12 @@
;; Some personal stuff ;; Some personal stuff
(setq user-mail-address "gergely@polonkai.eu") (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 ;; Load some custom libraries
(require 'thingatpt) (require 'thingatpt)