Hook zoxide into consult-after-jump as well

This commit is contained in:
Vedang Manerikar 2024-12-19 10:42:40 +05:30
parent 3a7870fe9f
commit 9d706daf54
2 changed files with 8 additions and 6 deletions

View file

@ -4860,9 +4860,10 @@ of different paths inside Zoxide. This is how to do it:
(when (executable-find "zoxide")
(use-package zoxide
:ensure t
:config
(add-hook 'find-file-hook #'zoxide-add)
(add-hook 'dired-mode-hook #'zoxide-add)))
:hook
(consult-after-jump-hook . zoxide-add)
(find-file-hook . zoxide-add)
(dired-mode-hook . zoxide-add)))
#+end_src
** The =unravel-shell.el= section for writing fish configuration (~fish-mode~)

View file

@ -10,9 +10,10 @@
(when (executable-find "zoxide")
(use-package zoxide
:ensure t
:config
(add-hook 'find-file-hook #'zoxide-add)
(add-hook 'dired-mode-hook #'zoxide-add)))
:hook
(consult-after-jump-hook . zoxide-add)
(find-file-hook . zoxide-add)
(dired-mode-hook . zoxide-add)))
;; Mode to read/write fish functions and files
(use-package fish-mode