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:
js0ny 2025-01-29 03:01:59 +00:00
parent ffcc8fb768
commit e6b1e1b595
8 changed files with 99 additions and 21 deletions

View 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))