Add auto-compile

This commit is contained in:
James Cherti
2024-08-05 01:03:48 -04:00
parent be14a92bbc
commit 537889700b

View File

@@ -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)) (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? ### 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`: [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`: