mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat(emacs): evil, appearance and edit
* evil: Text Object (l -> inner) and Evil-Surround * appearance: mode line (doom) and bufferline (built-in) * edit: vertico and marginalia
This commit is contained in:
parent
ffcc8fb768
commit
e6b1e1b595
8 changed files with 99 additions and 21 deletions
24
tools/emacs.d/lisp/init-file.el
Normal file
24
tools/emacs.d/lisp/init-file.el
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
;;; init-file.el -- File Management configuration
|
||||
;;; First edit at 2025/01/29
|
||||
|
||||
;; Dired
|
||||
|
||||
;; Dired Configuration
|
||||
(with-eval-after-load 'dired
|
||||
(setq dired-recursive-deletes 'top) ;; Ask Before Delete Dir
|
||||
(setq dired-recursive-copies 'always) ;; Always Copy Dir
|
||||
(setq dired-dwim-target t)) ;; dwim for Do What I Mean - 当分屏显示两个 Buffer 时,复制或移动文件会自动将另一个 dired buffer 作为目标目录
|
||||
|
||||
;; Dired Keybindings - Colemak
|
||||
(evil-define-key 'normal dired-mode-map
|
||||
"h" 'dired-up-directory
|
||||
"i" 'dired-find-file
|
||||
"n" 'dired-next-line
|
||||
"e" 'dired-previous-line)
|
||||
|
||||
;; This prevents Dired from opening more buffers
|
||||
;; https://stackoverflow.com/q/1839313
|
||||
(setq dired-kill-when-opening-new-dired-buffer t)
|
||||
|
||||
|
||||
(provide 'init-file)
|
||||
Loading…
Add table
Add a link
Reference in a new issue