From a5d229eb72d43e2668efc8cabd9e8aca9dc794bf Mon Sep 17 00:00:00 2001 From: rekado Date: Wed, 19 Nov 2014 12:44:26 +0100 Subject: add shortcut to open init.el --- init.el | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.3