6 ms·
Here's the source: https://raw.githubusercontent.com/joodie/emacs-literal-config/master/emacs.org https://raw.githubusercontent.com/joodie/emacs-literal-confi.
by codemac 12y ago
Here's the source:
https://raw.githubusercontent.com/joodie/emacs-literal-config/master/emacs.org https://raw.githubusercontent.com/joodie/emacs-literal-confi...
I've done the same thing with my emacs config, though it's much messier and notably not readable at all.. yet.
https://github.com/codemac/config/blob/master/emacs.d/boot.org https://github.com/codemac/config/blob/master/emacs.d/boot.o...
- look_lookatme 12y agoI do the emacs-config-in-org as well. I also have it auto-compile using a snippet I found on github[1]. Additionally I have git-auto-commit-mode[2] enabled for my emacs config org file, so any time I save the file, it compiles to init.el and then commits those changes automatically. I periodically push to master when I remember. [1] https://github.com/larstvei/dot-emacs/blob/master/init.org#meta https://github.com/larstvei/dot-emacs/blob/master/init.org#m... [2] https://github.com/ryuslash/git-auto-commit-mode https://github.com/ryuslash/git-auto-commit-mode
- codemac 12y agoYea, I just have a separate init.el that: - loads ELPA - require's org - runs (org-babel-load-file (expand-file-name "boot.org" dotfiles-dir)) I've found it much easier than the init.el generation route. It's also much more compatible with custom, though, most of the values set in custom I'd like to get rid of.
- look_lookatme 12y agoAh very smart. Thanks.
- mjs2600 12y agoIf you name it readme.org, then github will render it as html.
- agumonkey 12y agoHave you heard of req-package ? a wrapper around use-package that gives helps organizing requirements, configuration and initialization of any given package. see one instance https://github.com/rejeep/emacs/blob/master/init.el https://github.com/rejeep/emacs/blob/master/init.el
- codemac 12y agoI've never even used use-package.. Is this just to eliminate dependency ordering? With things like package-initialize, most every package in my system is autoloaded before any of my init.el really runs. It's a nice visual structure to look at, though, that's for sure.
- agumonkey 12y agoI think it also ensure installation on first require so you don't have to pre-install then configure. req-package adds some runtime dependency yeah, I don't use it as for now though.
- sjm 12y agoThat is one part of it, but it has a lot of other benefits too. I recently switched to using use-package to do all my package installation and configuration, and my emacs-init-time improved dramatically because use-package can set up smart deferring of loading based on commands or bindings. It's worth having a read through the repo readme: https://github.com/jwiegley/use-package https://github.com/jwiegley/use-package As an example here's my package init using use-package: https://github.com/stafu/.emacs.d/blob/master/init/init-packages.el https://github.com/stafu/.emacs.d/blob/master/init/init-pack...
- berdario 12y agoUh, just the other day I did a change to my init.el, which is apparently similar to what I'd have done with req-package https://github.com/berdario/dotfiles/compare/8e98d5569a4caaf8499c6adcc1c3acb712471dfd...27ca73bd23fc4eaf46cc803778a8116ce40d6822 https://github.com/berdario/dotfiles/compare/8e98d5569a4caaf... req-compare is cleaner, but otoh I have a different use case: the rationale for my change was to avoid errors when package installation fails (due to lack of network, for example... it might happen if I synced the init.el changes earlier without opening Emacs), while still executing all the other packages configuration/initialization steps