summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2014-11-19 12:44:26 +0100
committerrekado <rekado@elephly.net>2014-11-19 12:44:26 +0100
commita5d229eb72d43e2668efc8cabd9e8aca9dc794bf (patch)
tree725fbbd08fe5cd6e2767c5fa78f0c81005b2d1e6 /init.el
parentf129d4ea1a9315c2c48e8d01a84c1d4634bd3d37 (diff)
add shortcut to open init.el
Diffstat (limited to 'init.el')
-rw-r--r--init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.el b/init.el
index bc8a400..1a46d5b 100644
--- a/init.el
+++ b/init.el
@@ -263,3 +263,8 @@
(global-hl-line-mode 1) ; turn on highlighting current line
(set-face-background 'hl-line "#222")
(set-face-attribute hl-line-face nil :underline nil)
+(defun my/find-user-init-file ()
+ "Edit the `user-init-file', in another window."
+ (interactive)
+ (find-file-other-window user-init-file))
+(global-set-key (kbd "C-c I") 'my/find-user-init-file)