feat(android): Add Android platform support

Configure dirvish, org, and package loading for Android: - Use
shared storage paths for org notes on Android - Adjust dirvish
layout and hide details for smaller screens - Disable async package on Android due to compatibility
This commit is contained in:
2026-05-19 21:47:30 +08:00
parent ff77b5cafe
commit 4024ded7c6
3 changed files with 33 additions and 12 deletions

View File

@@ -24,7 +24,7 @@
:config
(if *is-windows* (require 'fix-dirvish-preview))
(if *is-mac*
(if (or *is-mac* *is-android*)
(setq dirvish-hide-details t)
(setq dirvish-hide-details '(dirvish-side)))
(setq dirvish-use-mode-line 'global)
@@ -32,7 +32,9 @@
(unless *is-windows*
(setq dirvish-attributes '(file-time file-size)))
(setq dirvish-default-layout '(1 0.15 0.45))
(if *is-android*
(setq dirvish-default-layout '(1 0.6))
(setq dirvish-default-layout '(1 0.15 0.45)))
(with-eval-after-load 'dirvish
(add-hook 'dired-mode-hook #'dired-hide-details-mode))
@@ -66,6 +68,11 @@
("v" "~/视频/" "Videos")
("n" "~/org/my-org-note/" "Notes")
("g" "~/gptel/" "gptel sessions")))
(*is-android*
'(("h" "~/" "Home")
("e" "~/.emacs.d" "Emacs")
("n" "~/storage/shared/my-org-note/" "Notes")
("g" "~/gptel/" "gptel sessions")))
(t nil))))
(use-package trashed