Swap neotree to tab project directory automatically

This commit is contained in:
BirDt_ 2025-08-20 22:21:56 +08:00
parent e9e3eb63ab
commit e2cdbb2959
3 changed files with 12 additions and 105 deletions

4
ui.el
View file

@ -98,7 +98,9 @@
(setq tab-bar-close-button-show nil) ;; hide tab close / X button
(setq tab-bar-new-tab-choice "*enlight*");; buffer to show in new tabs
(setq tab-bar-tab-hints t) ;; show tab numbers
(setq tab-bar-format '(tab-bar-format-tabs tab-bar-separator))) ;; elements to include in bar
(setq tab-bar-format '(tab-bar-format-tabs tab-bar-separator)) ;; elements to include in bar
(defvar tab-bar-select-tab-hook nil "Hook for `tab-bar-select-tab'")
(advice-add 'tab-bar-select-tab :after (lambda (x) (run-hooks 'tab-bar-select-tab-hook))))
;; Hideshow
(add-hook 'prog-mode-hook #'hs-minor-mode)