Skip to content

Commit

Permalink
Make sure treemacs' buffers are ignored by winum.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Miller authored and sdwolfz committed Jan 20, 2019
1 parent 059810f commit ea96c52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion layers/+filetree/treemacs/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,8 @@
(progn
;; window 0 is reserved for file trees
(spacemacs/set-leader-keys "0" 'treemacs-select-window)
(define-key winum-keymap (kbd "M-0") 'treemacs-select-window))))
(define-key winum-keymap (kbd "M-0") 'treemacs-select-window)
(with-eval-after-load 'treemacs
(dolist (n (number-sequence 1 5))
(add-to-list 'winum-ignored-buffers
(format "%sFramebuffer-%s*" treemacs--buffer-name-prefix n)))))))

0 comments on commit ea96c52

Please sign in to comment.