summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-09-08 11:50:44 +0300
committerLars Wirzenius <liw@liw.fi>2020-09-08 11:50:44 +0300
commit304d9e6c19df6e78b53b896a710f5f801a988222 (patch)
treefbf83c1f8d6e3fbd8b4e65c7037aa68bbaef119f
parentcb4693b806827af6d800d61752e459445ed06296 (diff)
downloadliw-dot-files-304d9e6c19df6e78b53b896a710f5f801a988222.tar.gz
emacs: bind compile, recompile to f5, c-f5
-rw-r--r--emacs.d/init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index 52bcb38..475b4e7 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -122,6 +122,11 @@
(add-hook 'prog-mode-hook 'hl-line-mode)
+;; Key bindings
+
+(global-set-key (kbd "<f5>") 'compile)
+(global-set-key (kbd "C-<f5>") 'recompile)
+
(when (display-graphic-p)
(global-unset-key "\C-x\C-c")
(global-unset-key "\C-z")