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
22
tools/emacs.d/lisp/init-edit.el
Normal file
22
tools/emacs.d/lisp/init-edit.el
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
;;; init-edit.el
|
||||
|
||||
;; Company - Complete Anything
|
||||
(use-package company
|
||||
:ensure t
|
||||
:hook (after-init . global-company-mode) ; 在启动后自动启用 global-company-mode
|
||||
:bind (:map company-active-map ; TODO: Seems does not work
|
||||
("C-n" . company-select-next)
|
||||
("C-p" . company-select-previous))
|
||||
:config
|
||||
(setq company-minimum-prefix-length 1 ; 设置最短补全前缀
|
||||
company-idle-delay 0.2)) ; 设置补全延迟(秒)
|
||||
|
||||
;; minibuffer 补全增强
|
||||
(use-package vertico
|
||||
:init
|
||||
(vertico-mode))
|
||||
|
||||
;; 提供补全注解
|
||||
(use-package marginalia
|
||||
:init
|
||||
(marginalia-mode))
|
||||
Loading…
Add table
Add a link
Reference in a new issue