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)) (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' ;; `wgrep'
(progn (progn
;; close the popup after you're done with a wgrep buffer ;; close the popup after you're done with a wgrep buffer

View file

@ -9,11 +9,17 @@
treemacs-sorting 'alphabetic-desc treemacs-sorting 'alphabetic-desc
treemacs-show-hidden-files t treemacs-show-hidden-files t
treemacs-goto-tag-strategy 'refetch-index treemacs-goto-tag-strategy 'refetch-index
;; for `treemacs-persistence' treemacs-display-in-side-window t
treemacs-persist-file (concat doom-cache-dir "treemacs-persist")) treemacs-persist-file (concat doom-cache-dir "treemacs-persist"))
(after! treemacs (after! treemacs
(set-popup-rule! "^ \\*Treemacs"
:side treemacs-position
:size treemacs-width
:quit nil
:ttl 0)
(defvar +treemacs-use-git-mode (defvar +treemacs-use-git-mode
(pcase (cons (not (null (executable-find "git"))) (pcase (cons (not (null (executable-find "git")))
(not (null (executable-find "python3")))) (not (null (executable-find "python3"))))