From d9da017c3e3ca42b0c787f5a41c6fe8da915cad0 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 31 Jan 2019 17:53:14 +0100 Subject: emacs: don't always byte compile g.el MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compile it only when the byte-coded version does not exist. Signed-off-by: Miquel Sabaté Solà --- emacs/init.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 66e8a73..79eca0b 100644 --- a/emacs/init.org +++ b/emacs/init.org @@ -96,8 +96,9 @@ User name and email. Compile the =g.el= script and bind it to @@html:M-g@@. #+BEGIN_SRC elisp - (byte-compile-file (concat user-emacs-directory "lisp/g.el") t) - (global-set-key (kbd "M-g") 'g) +(unless (file-exists-p (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 ** use-package -- cgit v1.2.3