Skip to content

Commit ba705fd

Browse files
committed
Modify elisp/hooks.el
1 parent 92eda1c commit ba705fd

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

elisp/hooks.el

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
(add-hook 'write-file-hooks 'delete-trailing-whitespace)
33
(add-hook 'eglot-managed-mode-hook
44
(lambda () (eglot-inlay-hints-mode -1)))
5-
(add-hook 'shell-mode-hook #'(lambda () (dirtrack-mode 1)))
5+
;; (add-hook 'shell-mode-hook #'(lambda () (dirtrack-mode 1)))
6+
7+
(add-hook 'shell-mode-hook
8+
(lambda ()
9+
(shell-dirtrack-mode -1)
10+
(setq-local dirtrack-list
11+
'("^[^#$\n]* [^#$\n]*@[^:\n]+:\\([^#$\n]+\\)[$#] " 1))
12+
(dirtrack-mode 1)))
13+
614
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
715

816
;; (add-hook 'dired-mode-hook (lambda () (dired-omit-mode t)))

0 commit comments

Comments
 (0)