Fix error message when opening NeoTree buffer
Error: `Number 0 assigned to two buffers ...`
This commit is contained in:
parent
5617df5732
commit
1a02989414
|
@ -2109,11 +2109,12 @@ which require an initialization must be listed explicitly in the list.")
|
||||||
((equal str "9") " ➒ ")
|
((equal str "9") " ➒ ")
|
||||||
((equal str "0") " ⓿ "))))
|
((equal str "0") " ⓿ "))))
|
||||||
|
|
||||||
(defun spacemacs//window-numbering-assign ()
|
(defun spacemacs//window-numbering-assign (windows)
|
||||||
"Custom number assignment for special buffers."
|
"Custom number assignment for special buffers."
|
||||||
(when (equal (buffer-name) " *NeoTree*") 0))
|
(mapc (lambda (w) (when (eq w neo-global--window)
|
||||||
(setq window-numbering-assign-func ''spacemacs//window-numbering-assign)
|
(window-numbering-assign w 0)))
|
||||||
))
|
windows))
|
||||||
|
(add-hook 'window-numbering-before-hook 'spacemacs//window-numbering-assign)))
|
||||||
|
|
||||||
(defun spacemacs/init-yasnippet ()
|
(defun spacemacs/init-yasnippet ()
|
||||||
(use-package yasnippet
|
(use-package yasnippet
|
||||||
|
|
Loading…
Reference in a new issue