From bb53a9972500909fc2258a23b43795bb4110b7f8 Mon Sep 17 00:00:00 2001 From: Alexander Miller Date: Fri, 17 May 2019 06:55:42 +0200 Subject: [PATCH] [Compatibility] Let evil-escape ignore treemacs-mode. Fixes #434 --- src/elisp/treemacs-compatibility.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/elisp/treemacs-compatibility.el b/src/elisp/treemacs-compatibility.el index 3ed95af0..3c397fcb 100644 --- a/src/elisp/treemacs-compatibility.el +++ b/src/elisp/treemacs-compatibility.el @@ -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