From f755e54ee94df29e345e5ca5d53ce95b6f53a9a7 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 25 Feb 2026 12:07:12 -0600 Subject: feat(buffer): add open-with-default-app and open-with-program keybindings Wire cj/xdg-open (C-; b o) and cj/open-this-file-with (C-; b O) into the buffer keymap. Fix xdg-open fallback to try buffer-file-name before dired context. Remove old C-c x o binding from external-open. --- modules/external-open.el | 7 ------- 1 file changed, 7 deletions(-) (limited to 'modules/external-open.el') diff --git a/modules/external-open.el b/modules/external-open.el index 8c4db810..71318e27 100644 --- a/modules/external-open.el +++ b/modules/external-open.el @@ -90,7 +90,6 @@ :group 'external-open) ;; ------------------------------- Open File With ------------------------------ -;; TASK: Add this to buffer custom functions (defun cj/open-this-file-with (command) "Open this buffer's file with COMMAND, detached from Emacs." @@ -109,12 +108,6 @@ command (shell-quote-argument file)) nil 0))))) -(keymap-global-set "C-c x o" #'cj/open-this-file-with) - -(with-eval-after-load 'which-key - (which-key-add-key-based-replacements - "C-c x" "external open menu" - "C-c x o" "open file with")) ;; -------------------- Open Files With Default File Handler ------------------- -- cgit v1.2.3