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:
@@ -51,21 +51,28 @@
|
||||
|
||||
(when (display-graphic-p)
|
||||
(recentf-mode)
|
||||
(setq recentf-max-saved-items 30)) ;; 最大保存数量
|
||||
(setq recentf-max-saved-items 30))
|
||||
|
||||
(delete-selection-mode)
|
||||
|
||||
(setq initial-scratch-message
|
||||
"")
|
||||
|
||||
(setq ibuffer-default-sorting-mode 'filename)
|
||||
|
||||
(setq native-comp-async-warnings-errors-kind 'silent)
|
||||
|
||||
(if (boundp 'use-short-answers)
|
||||
(setq use-short-answers t)
|
||||
(fset 'yes-or-no-p 'y-or-n-p))
|
||||
|
||||
(setq delete-by-moving-to-trash t)
|
||||
|
||||
(setq xref-search-program
|
||||
(cond
|
||||
((or (executable-find "ripgrep")
|
||||
(executable-find "rg"))
|
||||
'ripgrep)
|
||||
(t 'grep)))
|
||||
|
||||
(provide 'init-terminal-startup)
|
||||
|
||||
;;; init-terminal-statup.el ends here
|
||||
|
||||
Reference in New Issue
Block a user