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

@@ -1,33 +0,0 @@
;;; -*- lexical-binding: t -*-
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes
'("7fea145741b3ca719ae45e6533ad1f49b2a43bf199d9afaee5b6135fd9e6f9b8"
default))
'(package-selected-packages
'(ace-window benchmark-init cape cnfonts corfu crux drag-stuff eglot
embark-consult everything exec-path-form-shell gcmh
hungry-delete marginalia multiple-cursors orderless
restart-emacs smart-mode-line solarized-theme vertico))
'(safe-local-variable-values
'((eval read-only-mode t) (eval jinx-mode nil)
(eval visual-line-mode nil)
(eval when (fboundp 'rainbow-mode) (rainbow-mode 1))
(gptel-mode . t)
(eval progn
(setq org-hugo-base-dir
(if (eq system-type 'windows-nt)
"h:/emacs/hugo/this-is-my-blog/"
"~/org/hugo/this-is-my-blog/"))
(org-hugo-auto-export-mode))
(org-use-tag-inheritance)))
'(warning-suppress-log-types '((initialization))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)