Advise neotree to focus new root after changing
This commit is contained in:
parent
3ab3d32a74
commit
889a90e0c8
2
init.el
2
init.el
@ -1207,6 +1207,8 @@ DOCSTRING is an optional form that is discarded upon expansion."
|
|||||||
|
|
||||||
(external-package neotree
|
(external-package neotree
|
||||||
"Displays an interactive directory/file tree in a side window."
|
"Displays an interactive directory/file tree in a side window."
|
||||||
|
:config
|
||||||
|
(advice-add 'neotree-change-root :after (lambda () (goto-char (point-min))))
|
||||||
:custom
|
:custom
|
||||||
(neo-smart-open t "Jump to current file when focusing the neotree window")
|
(neo-smart-open t "Jump to current file when focusing the neotree window")
|
||||||
(neo-window-width 30 "Limit neotree window width to 30 columns")
|
(neo-window-width 30 "Limit neotree window width to 30 columns")
|
||||||
|
Loading…
Reference in New Issue
Block a user