(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
(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
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