Skip to content

Commit

Permalink
[spacemacs-evil] Use evil-collection for occur-mode support
Browse files Browse the repository at this point in the history
This ensures that occur-edit-mode doesn't leave the buffer in
evilified-state, which is inconvenient to edit from.
  • Loading branch information
bcc32 committed Apr 14, 2024
1 parent a58a7d7 commit 3073760
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions layers/+spacemacs/spacemacs-defaults/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
(hi-lock :location built-in)
(image-mode :location built-in)
(imenu :location built-in)
(occur-mode :location built-in)
(package-menu :location built-in)
;; page-break-lines is shipped with spacemacs core
(page-break-lines :location built-in)
Expand Down Expand Up @@ -355,10 +354,6 @@
lazy-loading-line-numbers)
(global-display-line-numbers-mode)))))))

(defun spacemacs-defaults/init-occur-mode ()
(evilified-state-evilify-map occur-mode-map
:mode occur-mode))

(defun spacemacs-defaults/init-package-menu ()
(evilified-state-evilify-map package-menu-mode-map
:mode package-menu-mode))
Expand Down
2 changes: 1 addition & 1 deletion layers/+spacemacs/spacemacs-evil/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
(defvar evil-lisp-safe-structural-editing-modes '()
"A list of major mode symbols where safe structural editing is supported.")

(defvar spacemacs-evil-collection-allowed-list '(eww dired quickrun ediff)
(defvar spacemacs-evil-collection-allowed-list '(dired ediff eww quickrun replace)
"List of modes Spacemacs will allow to be evilified by ‘evil-collection-init’.")

0 comments on commit 3073760

Please sign in to comment.