Last active
September 18, 2018 18:15
-
-
Save idcrook/3a0f33b7dc8cba1dbd4d26959f48dd9b to your computer and use it in GitHub Desktop.
neotree 26.1 display-line-numbers-mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; sidebar and dired in one | |
(use-package neotree | |
:bind | |
("<f8>" . neotree-toggle) | |
:config | |
;; needs package all-the-icons | |
(setq neo-theme (if (display-graphic-p) 'icons 'arrow)) | |
;; Disable line-numbers minor mode for neotree | |
(add-hook 'neo-after-create-hook | |
(lambda (&rest _) (display-line-numbers-mode -1))) | |
;; Every time when the neotree window is opened, let it find current | |
;; file and jump to node. | |
(setq neo-smart-open t) | |
;; track ‘projectile-switch-project’ (C-c p p), | |
(setq projectile-switch-project-action 'neotree-projectile-action)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment