]> git.earman.xyz Git - emacsinit.git/commitdiff
Allow menu bars, etc on android
authorrearman <rearman@r717.net>
Thu, 11 Jun 2026 15:21:38 +0000 (11:21 -0400)
committerrearman <rearman@r717.net>
Thu, 11 Jun 2026 15:21:38 +0000 (11:21 -0400)
config.org

index e0f1fd099d86ec0df7dc34526bfea1cfb44f5ea1..8f20895851cde8015b373018630fc5b4e50d7d76 100644 (file)
@@ -22,9 +22,6 @@ Set up the correct lexical binding to avoid screaming compiler
     (interactive)
     (when buffer-file-name
       (find-alternate-file (concat "/sudo:root@localhost:" buffer-file-name)))))
-
-(when (equal system-type 'android)
-  (modifier-bar-mode 1))
 #+END_SRC
 * Packages
 ** Add melpa, and reduce the declarations by setting defaults
@@ -1002,8 +999,11 @@ Stolen from https://www.masteringemacs.org/article/fixing-mark-commands-transien
 * GUI
 #+BEGIN_SRC emacs-lisp
 (load-theme 'eng-paper t)
-(menu-bar-mode -1)
-(tool-bar-mode -1)
+
+(if (equal system-type 'android)
+    (modifier-bar-mode 1)
+  (progn (menu-bar-mode -1)
+         (tool-bar-mode -1)))
 (set-scroll-bar-mode (if (eq system-type 'windows-nt) nil 'left))
 
 (setq frame-title-format "%b"