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
1 changed files with 6 additions and 0 deletions

View File

@ -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)