diff options
author | bd <bdunahu@operationnull.com> | 2025-07-06 17:28:17 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-07-06 17:28:17 -0400 |
commit | 63b1bcd480043495bf146a77e9d79f24d4d3d9fe (patch) | |
tree | 126108fc69555418cee2226f5b3dbe9c2bc30c5e /.config/emacs | |
parent | 54ae130e8fbe58a04e710b96c31db9fcebbeaa3a (diff) |
open uninstalled info files in the info viewer
Diffstat (limited to '.config/emacs')
-rw-r--r-- | .config/emacs/modules/bd--files.el | 5 |
1 files changed, 5 insertions, 0 deletions
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)) |