feat(config): Improve dired, keybindings, terminal UI and add packages
- Add dired buffer killing and custom dirvish layout toggle - Replace ido with fido-mode in terminal config - Add custom terminal color theme with 24-bit color support - Add new packages: tokei, helpful, gptel-magit - Refactor project keybindings under C-x p prefix - Add mwim navigation bindings globally - Improve ibuffer filter groups and consult buffer filters - Add diff-mode keybindings and refine magit diff display
This commit is contained in:
@@ -20,32 +20,34 @@
|
||||
:config
|
||||
(setq expand-region-smart-cursor t))
|
||||
|
||||
;; mwim,更聪明的beginning/end of line
|
||||
(use-package mwim)
|
||||
|
||||
;; 启用savehist,保存命令顺序
|
||||
(use-package savehist
|
||||
:init (setq enable-recursive-minibuffers t
|
||||
history-length 50
|
||||
savehist-additional-variables '(mark-ring
|
||||
global-mark-ring
|
||||
search-ring
|
||||
regexp-search-ring
|
||||
extended-command-history)
|
||||
savehist-autosave-interval 300)
|
||||
:init
|
||||
(setq enable-recursive-minibuffers t
|
||||
history-length 50
|
||||
savehist-additional-variables '(mark-ring
|
||||
global-mark-ring
|
||||
search-ring
|
||||
regexp-search-ring
|
||||
extended-command-history)
|
||||
savehist-autosave-interval 300)
|
||||
(savehist-mode))
|
||||
|
||||
;; saveplace,保存光标位置
|
||||
(use-package saveplace
|
||||
:init (save-place-mode))
|
||||
|
||||
;; ido,补全
|
||||
(use-package ido
|
||||
:init
|
||||
(ido-mode)
|
||||
(ido-everywhere)
|
||||
:config
|
||||
(define-key ido-common-completion-map (kbd "SPC") 'ido-restrict-to-matches))
|
||||
(save-place-mode))
|
||||
|
||||
;; general
|
||||
(use-package general)
|
||||
;; 补全
|
||||
(use-package icomplete
|
||||
:init
|
||||
(fido-mode)
|
||||
:config
|
||||
(keymap-unset minibuffer-local-completion-map "TAB")
|
||||
(keymap-set minibuffer-local-completion-map "TAB" 'icomplete-force-complete))
|
||||
|
||||
(provide 'init-terminal-package)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user