Skip to content

Instantly share code, notes, and snippets.

@quazgar
Created September 26, 2013 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quazgar/6712811 to your computer and use it in GitHub Desktop.
Save quazgar/6712811 to your computer and use it in GitHub Desktop.
keybindings.el
;; 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