diff --git a/Makefile b/Makefile index 5a77a2859..44a068dd8 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,6 @@ update: autoloads _update init.elc autoloads: @$(EMACS) --batch -l init.el --eval '(doom-reload-autoloads)' 2>&1 -compile: autoloads - @$(EMACS) --batch -l init.el --eval '(doom-byte-compile)' 2>&1 - snippets: @[ -d private/snippets ] || git clone $(REPO_URL)/emacs-snippets private/snippets diff --git a/README.md b/README.md index 6ea6626a5..a047fd6e9 100644 --- a/README.md +++ b/README.md @@ -15,15 +15,13 @@ brew install emacs --with-cocoa --with-imagemagick git clone https://github.com/hlissner/.emacs.d ~/.emacs.d cd ~/.emacs.d make # installs plugins via cask and generates autoloads -``` -And to optionally: - -``` -make compile # optionally byte-compiles everything +# Optional make snippets # install hlissner/emacs-snippets into private/snippets ``` +To byte compile, run `(doom-byte-compile)` + ## Features To get a picture of what's in here, check out: diff --git a/core/core-defuns.el b/core/core-defuns.el index ed9b310b9..675973e6d 100644 --- a/core/core-defuns.el +++ b/core/core-defuns.el @@ -342,11 +342,11 @@ e.g. (doom-fix-unicode \"DejaVu Sans\" '(?⚠ ?★ ?λ ?➊ ?➋ ?➌ ?➍ ?➎ (defun doom-byte-compile () "Byte compile the core and library .el files in ~/.emacs.d" (interactive) - (mapc (lambda (f) (packed-byte-compile-file (concat doom-emacs-dir "/" f))) + (mapc (lambda (f) (byte-compile-file (concat doom-emacs-dir "/" f))) '("init.el" "private/my-commands.el" "private/my-bindings.el" "core/core.el" "core/core-defuns.el" "core/core-ui.el")) - (byte-recompile-directory (concat doom-core-dir "/defuns") 0 t) - (byte-recompile-directory (concat doom-modules-dir "/defuns") 0 t) + (byte-recompile-directory doom-core-dir 0 t) + (byte-recompile-directory doom-modules-dir 0 t) (message "Compiled!")) (provide 'core-defuns)