Remove treemacs popup hack

Now that it is supported upstream.

Relevant to #766
This commit is contained in:
Henrik Lissner 2018-08-03 19:15:46 +02:00
parent 261aa7c944
commit 4db89a2fb4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 7 additions and 11 deletions

View file

@ -282,16 +282,6 @@ instead of switch-to-buffer-*."
(set-popup-rule! "\\(^\\*Contents\\|'s annots\\*$\\)" :ignore t))
;; `treemacs'
(after! treemacs
(set-popup-rule! "^ \\*Treemacs" :side 'left :size treemacs-width :quit nil :ttl 0)
(defun +popup*set-popup (&rest _)
"Create and setup a buffer for treemacs in the right position and size."
(pop-to-buffer (treemacs--get-framelocal-buffer))
(treemacs--forget-last-highlight))
(advice-add #'treemacs--setup-buffer :override #'+popup*set-popup))
;; `wgrep'
(progn
;; close the popup after you're done with a wgrep buffer