Android update

This commit is contained in:
Aleksandr Lebedev 2025-02-01 15:39:49 +01:00
parent 349e41cb91
commit 720c1d126a
2 changed files with 21 additions and 11 deletions

View file

@ -59,6 +59,8 @@
- [[#transparency][Transparency]] - [[#transparency][Transparency]]
- [[#which-key][WHICH-KEY]] - [[#which-key][WHICH-KEY]]
- [[#emacs-on-android][Emacs on Android]] - [[#emacs-on-android][Emacs on Android]]
- [[#fonts-1][Fonts]]
- [[#settings][Settings]]
* IMPORTANT PROGRAMS TO LOAD FIRST * IMPORTANT PROGRAMS TO LOAD FIRST
** Recent Files ** Recent Files
@ -924,8 +926,12 @@ With Emacs version 29, true transparency has been added.
#+end_src #+end_src
* Emacs on Android * Emacs on Android
** Fonts
All fonts on Android must be in *~/fonts* directory
** Settings
#+begin_src emacs-lisp #+begin_src emacs-lisp
(when (string-equal system-type "android") (when (string-equal system-type "android")
;;Write all android settings here
(setq touch-screen-keyboard-function t) (setq touch-screen-keyboard-function t)
(setq touch-screen-display-keyboard t) (setq touch-screen-display-keyboard t)
@ -935,5 +941,5 @@ With Emacs version 29, true transparency has been added.
(setq use-file-dialog t) ;; file dialog (setq use-file-dialog t) ;; file dialog
(setq use-dialog-box t) ;; dialog box (setq use-dialog-box t) ;; dialog box
(setq pop-up-windows t) ;; popup windows (setq pop-up-windows t) ;; popup windows
) )
#+end_src #+end_src

View file

@ -3,5 +3,9 @@
;; Add Termux binaries to PATH environment ;; Add Termux binaries to PATH environment
(let ((termuxpath "/data/data/com.termux/files/usr/bin")) (let ((termuxpath "/data/data/com.termux/files/usr/bin"))
(setenv "PATH" (concat (getenv "PATH") ":" termuxpath)) (setenv "PATH" (concat (getenv "PATH") ":" termuxpath))
(setq exec-path (append exec-path (list termuxpath))))) (setq exec-path (append exec-path (list termuxpath))))
(let ((termuxlib "/data/data/com.termux/files/usr/lib"))
(setenv "PATH" (concat (getenv "PATH") ":" termuxlib))
(setq exec-path (append exec-path (list termuxlib)))
)