diff options
| author | bh <qn+git@excalibur.computer> | 2026-05-16 14:46:49 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2026-05-16 14:46:49 +0800 |
| commit | d08a6e2e64101241a674824417c1c125f482753a (patch) | |
| tree | 45ea82ce6855256a03c61af11cb7c465c857dba5 /config/evil.el | |
| parent | fdacb2111ae1043d061151d06e62da5af9e76ba8 (diff) | |
Diffstat (limited to 'config/evil.el')
| -rw-r--r-- | config/evil.el | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/config/evil.el b/config/evil.el index 8d745f1..0e40002 100644 --- a/config/evil.el +++ b/config/evil.el @@ -8,10 +8,22 @@ (setq evil-want-integration t) ;; Required for evil-collection (setq evil-undo-system 'undo-redo) ;; Use Emacs 28+ built-in undo-redo :config - (evil-mode 1)) -;; Restore Emacs-style C-n/C-p in insert mode for line movement -;; (define-key evil-insert-state-map (kbd "C-n") 'next-line) -;; (define-key evil-insert-state-map (kbd "C-p") 'previous-line)) + (evil-mode 1) + + ;; Cursor shapes per evil state + (setq evil-normal-state-cursor 'box + evil-motion-state-cursor 'box + evil-visual-state-cursor 'box + evil-insert-state-cursor 'bar + evil-replace-state-cursor 'hbar + evil-emacs-state-cursor 'hbar)) + +;; Terminal cursor shape support (GUI handles it natively) +(use-package evil-terminal-cursor-changer + :if (not (display-graphic-p)) + :after evil + :config + (etcc-on)) (use-package evil-collection :after evil |
