Create the function termux-p
It can decide if we are running under Termux.
This commit is contained in:
parent
63e8cd46a8
commit
334fef4f42
6
init.el
6
init.el
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user