From 63b1bcd480043495bf146a77e9d79f24d4d3d9fe Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 6 Jul 2025 17:28:17 -0400 Subject: open uninstalled info files in the info viewer --- .config/emacs/modules/bd--files.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/emacs/modules/bd--files.el b/.config/emacs/modules/bd--files.el index 068e995..b58c727 100644 --- a/.config/emacs/modules/bd--files.el +++ b/.config/emacs/modules/bd--files.el @@ -19,6 +19,9 @@ (defun bd/mpv (file) "Open FILE with mpv." (start-process "mpv" nil "mpv" "--force-window=yes" (expand-file-name file))) +(defun bd/info (file) + "Open FILE with info." + (info file)) (defun bd/nsxiv (file) "Open FILE with nsxiv." (start-process "nsxiv" nil "nsxiv" (expand-file-name file))) @@ -55,6 +58,8 @@ "wav" "mp3" "opus" "ogv" "flac" "m4a" "ogg")) ext) (bd/open-with-function #'bd/mpv)) + ((string-match (regexp-opt '("info")) ext) + (bd/open-with-function #'bd/info)) ((string-match (regexp-opt '("jpg" "jpeg" "png" "webp" "ico" "gif" "JPG" "PNG")) ext) (bd/open-with-function #'bd/nsxiv)) -- cgit v1.2.3