Skip to content

Commit

Permalink
evil setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Bin committed Jan 7, 2025
1 parent 0b22464 commit 5124500
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lisp/init-evil.el
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,14 @@ If N > 0 and in js, only occurrences in current N lines are renamed."
my-default-color))))
(set-face-background 'mode-line (car color))
(set-face-foreground 'mode-line (cdr color))))
(add-hook 'post-command-hook #'my-show-evil-state)
(add-hook 'evil-emacs-state-entry-hook #'my-show-evil-state)
(add-hook 'evil-insert-state-entry-hook #'my-show-evil-state)
(add-hook 'evil-motion-state-entry-hook #'my-show-evil-state)
(add-hook 'evil-normal-state-entry-hook #'my-show-evil-state)
(add-hook 'evil-visual-state-entry-hook #'my-show-evil-state)
(add-hook 'evil-replace-state-entry-hook #'my-show-evil-state)
(add-hook 'evil-operator-state-entry-hook #'my-show-evil-state)
(add-hook 'window-selection-change-functions #'my-show-evil-state)
;; }}

;; {{ evil-nerd-commenter
Expand Down

0 comments on commit 5124500

Please sign in to comment.