From 5ce3c780e38e03608e61946101b4d9e93fda3b08 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Tue, 1 Nov 2011 18:48:06 +0200 Subject: [PATCH] bound prelude-open-with to C-c o --- modules/prelude-core.el | 4 +++- modules/prelude-global-keybindings.el | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/prelude-core.el b/modules/prelude-core.el index 883632b..97b1c6f 100644 --- a/modules/prelude-core.el +++ b/modules/prelude-core.el @@ -60,7 +60,9 @@ file of a buffer in an external program." (interactive) (when buffer-file-name (shell-command (concat - (read-shell-command "Open current file with: ") + (if (eq system-type 'darwin) + "open" + (read-shell-command "Open current file with: ")) " " buffer-file-name)))) diff --git a/modules/prelude-global-keybindings.el b/modules/prelude-global-keybindings.el index 2cf2a07..be307d4 100644 --- a/modules/prelude-global-keybindings.el +++ b/modules/prelude-global-keybindings.el @@ -141,6 +141,9 @@ ;; search with google (global-set-key (kbd "C-c g") 'prelude-google) + ;; open in external application + (global-set-key (kbd "C-c o") 'prelude-open-with) + ;; toggle menu-bar visibility (global-set-key (kbd "") 'menu-bar-mode))