4 ms·
> The init.el file is just a stub meant to load the configuration from the org-mode file. Even better - the init.el itself is written within the org-mode file.
by pxc 3y ago
> The init.el file is just a stub meant to load the configuration from the org-mode file. Even better - the init.el itself is written within the org-mode file. The org-mode file can be executed like a shell script (actually elisp script) to extract the init.el file.
Can I see (an example)? Wondering how much goes into that init.el.
- goku12 3y agoSorry I couldn't post earlier. Here is a sample: https://paste.sr.ht/~gokuldas/30c47d1c2721111171a51ecc44f257c51123dcbc https://paste.sr.ht/~gokuldas/30c47d1c2721111171a51ecc44f257...
- pxc 3y agoThanks!
- nvy 3y agoNot OP but here's mine: https://github.com/nathanvy/dotemacs https://github.com/nathanvy/dotemacs The .org file gets processed and the source code blocks extracted into an elisp-only file which is what actually gets executed. Some people prefer an alternate approach[0] with the "stub" init.el that just loads other modules. [0] https://github.com/cute-jumper/.emacs.d/blob/master/init.el https://github.com/cute-jumper/.emacs.d/blob/master/init.el
- pxc 3y agoThanks for sharing both of these examples!