diff options
| author | Vineet Kumar <git@vineetk.net> | 2026-03-18 11:08:29 -0400 |
|---|---|---|
| committer | Vineet Kumar <git@vineetk.net> | 2026-03-18 11:08:29 -0400 |
| commit | 56ef6d79f9bcf4eda3ecbfb26e1278d400bca01a (patch) | |
| tree | 6f0e72753365d071bd53111aa76aac4afa680595 | |
| parent | 20c9e43a2e71e8800d3e360c1f66cb557ff5f812 (diff) | |
emacs: add openwith package for easier external program opening
| -rw-r--r-- | epistemia/files/emacs/.config/emacs/init.el | 9 | ||||
| -rw-r--r-- | epistemia/home/config.scm | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/epistemia/files/emacs/.config/emacs/init.el b/epistemia/files/emacs/.config/emacs/init.el index 57ae06d..25a721f 100644 --- a/epistemia/files/emacs/.config/emacs/init.el +++ b/epistemia/files/emacs/.config/emacs/init.el | |||
| @@ -311,6 +311,15 @@ | |||
| 311 | (lisp-interaction-mode . enable-paredit-mode) | 311 | (lisp-interaction-mode . enable-paredit-mode) |
| 312 | (scheme-mode . enable-paredit-mode))) | 312 | (scheme-mode . enable-paredit-mode))) |
| 313 | 313 | ||
| 314 | ;; openwith -- hook to run external programs based on filetype | ||
| 315 | (use-package openwith | ||
| 316 | :init | ||
| 317 | (openwith-mode 1) | ||
| 318 | :custom | ||
| 319 | (openwith-associations | ||
| 320 | '(("\\.\\(mkv\\|mov\\|mp4\\)\\'" "mpv" ("--save-position-on-quit" file)) | ||
| 321 | ("\\.\\(flac\\|opus\\|ogg\\|wav\\|mp3\\)\\'" "mpv" ("--save-position-on-quit" "--no-video" file))))) | ||
| 322 | |||
| 314 | ;;;;;;;;;;;;;;;;;;;;;;; | 323 | ;;;;;;;;;;;;;;;;;;;;;;; |
| 315 | ;; OTHER INTEGRATION ;; | 324 | ;; OTHER INTEGRATION ;; |
| 316 | ;;;;;;;;;;;;;;;;;;;;;;; | 325 | ;;;;;;;;;;;;;;;;;;;;;;; |
diff --git a/epistemia/home/config.scm b/epistemia/home/config.scm index 3c91948..f752bfc 100644 --- a/epistemia/home/config.scm +++ b/epistemia/home/config.scm | |||
| @@ -78,6 +78,7 @@ | |||
| 78 | emacs-magit-todos | 78 | emacs-magit-todos |
| 79 | emacs-marginalia | 79 | emacs-marginalia |
| 80 | emacs-notmuch | 80 | emacs-notmuch |
| 81 | emacs-openwith | ||
| 81 | emacs-orderless | 82 | emacs-orderless |
| 82 | emacs-org-mem | 83 | emacs-org-mem |
| 83 | emacs-org-node | 84 | emacs-org-node |
