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:
@@ -7,6 +7,7 @@
|
||||
;; mac自动全屏
|
||||
(cond
|
||||
(*is-mac*
|
||||
(set-frame-parameter nil 'fullscreen 'fullscreen)
|
||||
(toggle-frame-fullscreen)
|
||||
(global-unset-key (kbd "<f12>"))
|
||||
(global-set-key (kbd "<f12>") 'toggle-frame-fullscreen))
|
||||
@@ -83,9 +84,6 @@
|
||||
(with-eval-after-load 'elec-pair
|
||||
(add-to-list 'electric-pair-pairs '(?\~ . ?\~)))
|
||||
|
||||
;; ibuffer
|
||||
(setq ibuffer-default-sorting-mode 'filename)
|
||||
|
||||
;; 关闭native compile警告
|
||||
(setq native-comp-async-warnings-errors-kind 'silent)
|
||||
|
||||
@@ -107,6 +105,9 @@
|
||||
|
||||
(setq switch-to-buffer-obey-display-actions t)
|
||||
|
||||
;; 优化中文混排时的换行规则
|
||||
(setq word-wrap-by-category t)
|
||||
|
||||
(provide 'init-startup)
|
||||
|
||||
;;; init-startup.el ends here
|
||||
|
||||
Reference in New Issue
Block a user