Fix: use :hook correctly in zoxide configuration

This commit is contained in:
Vedang Manerikar 2024-12-25 11:47:30 +05:30
parent 711d62880c
commit 7367d0fcda
2 changed files with 6 additions and 6 deletions

View file

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

View file

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