diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2019-01-31 17:53:14 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2019-01-31 17:53:14 +0100 |
| commit | d9da017c3e3ca42b0c787f5a41c6fe8da915cad0 (patch) | |
| tree | eda5ae373ae86675602086ad245d3b8225933be8 /emacs | |
| parent | 423a7073b002c926a72c9b555c5f5fd8b626cc7e (diff) | |
| download | dotfiles-d9da017c3e3ca42b0c787f5a41c6fe8da915cad0.tar.gz dotfiles-d9da017c3e3ca42b0c787f5a41c6fe8da915cad0.zip | |
emacs: don't always byte compile g.el
Compile it only when the byte-coded version does not exist.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/init.org | 5 |
1 files 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:<kbd>M-g</kbd>@@. #+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 |
