Skip to content

Commit

Permalink
nit(evil-collection): cleanup previous fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed May 7, 2023
1 parent c89d5cc commit 21ddd4d
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions core/me-evil.el
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,7 @@
(with-eval-after-load 'elisp-mode
(when evil-collection-want-find-usages-bindings
(evil-collection-define-key 'normal 'emacs-lisp-mode-map
"gr" 'xref-find-references)))

;; TEMP: Fix `mu4e' evil integraion
(with-eval-after-load 'mu4e
(require 'loadhist) ; to use `feature-file'

;; To avoid calling `evil-collection-mu4e--main-action-str'
(defvar evil-collection-mu4e-new-region-basic nil)

(require 'evil-collection-mu4e
(concat (file-name-directory (feature-file 'evil-collection))
"modes/mu4e/evil-collection-mu4e.el"))

(evil-collection-mu4e-set-state)
(evil-collection-mu4e-set-bindings)

;; Fix some missed up bindings
(defalias 'mu4e~view-quit-buffer #'mu4e-view-quit)

(add-hook 'org-mode-hook #'evil-collection-mu4e-org-set-header-to-normal-mode)
(add-hook 'mu4e-compose-pre-hook #'evil-collection-mu4e-org-set-header-to-insert-mode)))
"gr" 'xref-find-references))))

(use-package evil-snipe
:straight t
Expand Down

0 comments on commit 21ddd4d

Please sign in to comment.