Config: extract keybinding functions and clean up key configs
- Add init-kbd-func.el for keybinding helper functions - Move global-display-line-numbers-mode from early-init.el to init.el - Slim down init-kbd.el: remove hydra-multiple-cursors, migrate defs - Reorganize dirvish config - Remove scattered global-set-key bindings from init-org, init-ui, etc. - Guard server-start with server-running-p check - Set ibuffer-default-sorting-mode to filename - Tweak gptel config
This commit is contained in:
@@ -65,7 +65,9 @@
|
||||
(advice-add 'scratch-buffer :after #'my/scratch-set-mode)
|
||||
|
||||
;; 开启server mode
|
||||
(server-start)
|
||||
(require 'server)
|
||||
(unless (server-running-p)
|
||||
(server-start))
|
||||
|
||||
;; 窗口名
|
||||
(setq-default frame-title-format '("%b - Emacs"))
|
||||
@@ -73,6 +75,9 @@
|
||||
;; electirc-pair-mode
|
||||
(add-hook 'org-mode-hook 'electric-pair-local-mode)
|
||||
|
||||
;; ibuffer
|
||||
(setq ibuffer-default-sorting-mode 'filename)
|
||||
|
||||
;; short anwser
|
||||
(if (boundp 'use-short-answers)
|
||||
(setq use-short-answers t)
|
||||
|
||||
Reference in New Issue
Block a user