Find here the source for setup.el, that defines the
This simplifies repetitive configuration patterns, by providing
context-sensitive local macros in
This definition is rather terse, but describes the package and the main macro pretty well. If you are interested in more details and further examples, check out the SetupEl page on Emacs Wiki.
Feel free to contribute to this wiki page, either by adding your own local macros or adding any other examples. No accounts is necessary to make changes to Emacs Wiki, and everything can be done anonymously.
setup.el is avaliable from GNU ELPA. It can be installed by
M-x package-install RET setup RET
setup macro is autoloaded, and can be used directly. The code
setup does not depend on
setup.el, meaning that your
initialization file can be byte-compiled more efficiently.
There exist no configuration options for
setup. Anything you might
want to add or change can be done by defining or overwriting a local
All local macros are (dynamically) documented as part of the
I am currently hesitant to add more local macros. The current set is
already reduced to those that (IMO) do a good job at highlighting
setups features or are instructive examples on how to define your
own local macros. Anything that could just as well be an alias or a
custom, context-insensitive macro is not worthwhile adding to
setup is developed on SourceHut.
Bugs, patches, comments or questions can be submitted to my public inbox.
setup.el and all other source files in this directory are
distributed under the GNU Public License, Version 3 (like Emacs