Skip to content

Commit

Permalink
[Compatibility] Let evil-escape ignore treemacs-mode.
Browse files Browse the repository at this point in the history
Fixes #434
  • Loading branch information
Alexander-Miller committed May 17, 2019
1 parent 43ed78d commit bb53a99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/elisp/treemacs-compatibility.el
Expand Up @@ -102,6 +102,10 @@ width of the new window when the treemacs window is visible."
(advice-add 'which-key--update :after 'treemacs--fix-width-after-which-key)
(advice-add 'which-key--hide-buffer-side-window :after 'treemacs--fix-width-after-which-key))

(with-eval-after-load 'evil-escape
(when (boundp 'evil-escape-excluded-major-modes)
(add-to-list 'evil-escape-excluded-major-modes 'treemacs-mode)))

(provide 'treemacs-compatibility)

;;; treemacs-compatibility.el ends here

0 comments on commit bb53a99

Please sign in to comment.