emacs-config/early-init.el
2025-02-01 15:49:28 +01:00

10 lines
437 B
EmacsLisp

;;; -*- lexical-binding: t; -*-
(when (string-equal system-type "android")
;; Add Termux binaries to PATH environment
(let ((termuxpath "/data/data/com.termux/files/usr/bin"))
(setenv "PATH" (concat (getenv "PATH") ":" termuxpath))
(setq exec-path (append exec-path (list termuxpath))))
(let ((termuxlib "/data/data/com.termux/files/usr/lib"))
(setenv "LIBRARY_PATH" (concat (getenv "LIBRARY_PATH") ":" termuxlib)))
)