diff --git a/emacs/.emacs.d/config/init-navi.el b/emacs/.emacs.d/config/init-navi.el index a838deb..8352f86 100644 --- a/emacs/.emacs.d/config/init-navi.el +++ b/emacs/.emacs.d/config/init-navi.el @@ -5,6 +5,14 @@ :ensure nil :load-path "packages/navi" :defer t + :commands (navi + navi-by-tags + navi-matching-current-directory + navi-visit-cheat-file + navi-all-cheats + navi-cheats-for-tags + navi-cheats-matching-filename + navi-cheat-summary) :init (defvar-keymap embark-navi-map :doc "Keymap for actions on Navi cheats" diff --git a/emacs/.emacs.d/packages/navi/navi.el b/emacs/.emacs.d/packages/navi/navi.el index 43bfcb0..ebdb7ec 100644 --- a/emacs/.emacs.d/packages/navi/navi.el +++ b/emacs/.emacs.d/packages/navi/navi.el @@ -227,6 +227,7 @@ (dirs (when navi-path (split-string navi-path ":" t " ")))) (when dirs (dolist (file (->> dirs + (-filter #'file-directory-p) (-map (lambda (dir) (directory-files dir t ".*\\.cheat$"))) (-flatten) (-map (lambda (file) (navi-parse-cheat-file file registry)))))