bound prelude-open-with to C-c o
This commit is contained in:
parent
d1ff11da15
commit
5ce3c780e3
2 changed files with 6 additions and 1 deletions
|
@ -60,7 +60,9 @@ file of a buffer in an external program."
|
||||||
(interactive)
|
(interactive)
|
||||||
(when buffer-file-name
|
(when buffer-file-name
|
||||||
(shell-command (concat
|
(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))))
|
buffer-file-name))))
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,9 @@
|
||||||
;; search with google
|
;; search with google
|
||||||
(global-set-key (kbd "C-c g") 'prelude-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
|
;; toggle menu-bar visibility
|
||||||
(global-set-key (kbd "<f12>") 'menu-bar-mode))
|
(global-set-key (kbd "<f12>") 'menu-bar-mode))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue