From 8694121860a3bb61d5ee636d744e75ee7fc48bb0 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 22 Mar 2019 13:01:07 +0100 Subject: emacs: load the g.elc file if it exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- emacs/init.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emacs') 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:M-g@@. #+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 -- cgit v1.2.3