Remove treemacs popup hack
Now that it is supported upstream. Relevant to #766
This commit is contained in:
parent
261aa7c944
commit
4db89a2fb4
2 changed files with 7 additions and 11 deletions
|
@ -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
|
||||||
|
|
|
@ -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"))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue