From: Eshel Yaron Date: Mon, 9 Oct 2023 06:33:45 +0000 (+0200) Subject: Update Emacs configuration with Android setup X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a465d0779ec6c24f3a2398e6424071a752e291ca;p=dotfiles.git Update Emacs configuration with Android setup --- diff --git a/.emacs.d/early-init.el b/.emacs.d/early-init.el index c2a774c..d938b7d 100644 --- a/.emacs.d/early-init.el +++ b/.emacs.d/early-init.el @@ -9,10 +9,18 @@ (setq package-enable-at-startup nil) -(unless (eq system-type 'darwin) - (menu-bar-mode -1) - (setq initial-frame-alist '((fullscreen . fullboth) - (alpha-background . 85)))) +(pcase system-type + ('gnu/linux + (menu-bar-mode -1) + (setq initial-frame-alist '((fullscreen . fullboth) + (alpha-background . 85)))) + ('android + (setenv "PATH" (format "%s:%s" "/data/data/com.termux/files/usr/bin" + (getenv "PATH"))) + (setenv "LD_LIBRARY_PATH" (format "%s:%s" + "/data/data/com.termux/files/usr/lib" + (getenv "LD_LIBRARY_PATH"))) + (push "/data/data/com.termux/files/usr/bin" exec-path))) (provide 'early-init) ;;; early-init.el ends here diff --git a/.emacs.d/init.el b/.emacs.d/init.el index a640a0b..02368cb 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -22,8 +22,13 @@ (pcase system-type ('darwin - (setq default-frame-alist '((fullscreen . fullboth))) - (set-fontset-font t '(?􀀀 . ?􏿽) "SF Pro Display"))) + (setq initial-frame-alist '((fullscreen . fullboth))) + (set-fontset-font t '(?􀀀 . ?􏿽) "SF Pro Display")) + ('android + (tool-bar-mode) + (modifier-bar-mode) + (visual-line-mode) + (setq initial-frame-alist '((tool-bar-position . bottom))))) ;;; Check for external programs @@ -228,8 +233,6 @@ warning-minimum-level :error ;; don't use stale .elc files load-prefer-newer t - ;; maximize Emacs on startup - ;; default-frame-alist '((fullscreen . fullboth)) ;; disable popup dialogs use-dialog-box nil ;; disable splash screen