From 537889700bc3737fe6a51f7c53592a9d8ed31096 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Mon, 5 Aug 2024 01:03:48 -0400 Subject: [PATCH] Add auto-compile --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 600aa62..10b65f3 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,20 @@ You can also use the [vim-tab-bar](https://github.com/jamescherti/vim-tab-bar.el (vim-tab-bar-mode 1)) ``` +### Automatically compile Emacs Lisp libraries + +Add the following to the beginning of `~/.emacs.d/pre-init.el`, before all other `use-package` statements: +``` emacs-lisp +(use-package auto-compile + :custom + (auto-compile-check-parens nil) + :config + (auto-compile-on-load-mode) + (auto-compile-on-save-mode)) +``` + +(`auto-compile` provides two minor modes which automatically recompile Emacs Lisp source files. Together these modes guarantee that Emacs never loads outdated byte code files.) + ### How to configure straight.el? [Add the straight.el bootstrap code](https://github.com/radian-software/straight.el?tab=readme-ov-file#getting-started) to `~/.emacs.d/pre-init.el`: