chore(config): Refactor Emacs config for cross-platform compatibility

Add Android/Termux support with `*is-android*` constant and
conditional GUI/terminal initialization. Remove maximized frame
defaults and custom.el. Replace corfu with corfu-terminal in
TTY. Add god-mode to terminal config with line number sync. Update
org agenda to use org-ql blocks with super-agenda grouping. Switch
solarized-theme to fork. Clean up redundant functions and unify
keyboard bindings across environments.
This commit is contained in:
User
2026-05-18 20:46:26 +08:00
parent 3469cf8472
commit e2a352709c
20 changed files with 163 additions and 127 deletions

View File

@@ -189,12 +189,15 @@ targets."
:delight
:init
(projectile-mode)
(projectile-known-projects)
:bind
(:map projectile-mode-map
("C-x p" . projectile-command-map)
("C-x p b" . consult-project-buffer))
:config
(setq projectile-enable-caching t))
(setq projectile-enable-caching 'persistent)
(setq projectile-auto-discover t)
(setq projectile-auto-cleanup-known-projects t))
;; ibuffer
(use-package ibuffer
@@ -238,7 +241,9 @@ targets."
(mode . magit-log-mode)
(mode . magit-process-mode)
(mode . magit-status-mode)))
("Directories" (mode . dired-mode))
("Directories" (or
(mode . dired-mode)
(name . "^*dirvish")))
("Diff" (name . "^*Diff")))))
(add-hook 'ibuffer-hook
@@ -247,7 +252,8 @@ targets."
(ibuffer-do-sort-by-alphabetic))))
(setq ibuffer-show-empty-filter-groups nil)
(setq ibuffer-use-other-window t))
(setq ibuffer-use-other-window t)
(setq ibuffer-default-sorting-mode 'filename))
;; avy中文支持
(use-package ace-pinyin
@@ -285,10 +291,6 @@ targets."
(modify-syntax-entry (+ start i) "_" jinx--syntax-table)))))
(require 'init-jinx)))
;; vterm终端
;; (unless *is-windows*
;; (use-package vterm))
;; eat终端
(use-package eat
:straight