Created
September 26, 2013 11:18
-
-
Save quazgar/6712811 to your computer and use it in GitHub Desktop.
keybindings.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; make: F12 | |
(global-set-key | |
(kbd "<f12>") | |
(lambda () | |
(interactive) | |
;; (call-process-shell-command | |
;; (if (and (boundp 'local-make) local-make) local-make "make") | |
;; nil "*Shell Command Output*" nil | |
;; ) | |
(start-process-shell-command | |
"*Shell*" | |
"*Shell Command Output*" | |
(if (and (boundp 'local-make) local-make) local-make "make") | |
) | |
) | |
) | |
(defcustom local-make nil | |
"Local make command (invoked on <f12>)" | |
:type 'string | |
:safe 'stringp | |
) | |
;; kill-ring-search: C-M-y | |
(global-set-key "\M-\C-y" 'kill-ring-search) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment