aboutsummaryrefslogtreecommitdiff
path: root/emacs/init.org
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2019-03-22 13:01:07 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2019-03-22 13:01:07 +0100
commit8694121860a3bb61d5ee636d744e75ee7fc48bb0 (patch)
tree663c1111e5c998e8efe79bedac20cc92f5acaa60 /emacs/init.org
parentaa4d86e75ae199f78100024bfd3da3cc05ff605b (diff)
downloaddotfiles-8694121860a3bb61d5ee636d744e75ee7fc48bb0.tar.gz
dotfiles-8694121860a3bb61d5ee636d744e75ee7fc48bb0.zip
emacs: load the g.elc file if it exists
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/init.org')
-rw-r--r--emacs/init.org3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/init.org b/emacs/init.org
index 9e3add3..ef37576 100644
--- a/emacs/init.org
+++ b/emacs/init.org
@@ -96,7 +96,8 @@ User name and email.
Compile the =g.el= script and bind it to @@html:<kbd>M-g</kbd>@@.
#+BEGIN_SRC elisp
-(unless (file-exists-p (concat user-emacs-directory "lisp/g.elc"))
+(if (file-exists-p (concat user-emacs-directory "lisp/g.elc"))
+ (load-file (concat user-emacs-directory "lisp/g.elc"))
(byte-compile-file (concat user-emacs-directory "lisp/g.el") t))
(global-set-key (kbd "M-g") 'g)
#+END_SRC