From 81c2ad6963ac45d56dcdd3a3677f208b7f5e6c7f Mon Sep 17 00:00:00 2001 From: jdormit Date: Mon, 6 May 2024 10:02:59 -0400 Subject: [PATCH] Fix navi behavior when path doesn't exist and autoloads --- emacs/.emacs.d/config/init-navi.el | 8 ++++++++ emacs/.emacs.d/packages/navi/navi.el | 1 + 2 files changed, 9 insertions(+) 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)))))