From d08a6e2e64101241a674824417c1c125f482753a Mon Sep 17 00:00:00 2001 From: bh Date: Sat, 16 May 2026 14:46:49 +0800 Subject: Add org.el --- config/evil.el | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'config/evil.el') 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 -- cgit v1.2.3