News for hackers. Stuff that matters.
Re:Making Emacs Work for Me by codemac on Sunday November 30, 2014 @02:09PM (#8677716)
Here's the source:

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.o...

Re:Making Emacs Work for Me by look_lookatme on Sunday November 30, 2014 @02:21PM (#8677755)
I 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#m...

[2] https://github.com/ryuslash/git-auto-commit-mode

Re:Making Emacs Work for Me by codemac on Sunday November 30, 2014 @02:42PM (#8677815)
Yea, 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.
Re:Making Emacs Work for Me by mjs2600 on Sunday November 30, 2014 @09:08PM (#8679157)
If you name it readme.org, then github will render it as html.
Re:Making Emacs Work for Me by look_lookatme on Sunday November 30, 2014 @06:40PM (#8678700)
Ah very smart. Thanks.
Re:Making Emacs Work for Me by agumonkey on Sunday November 30, 2014 @02:57PM (#8677855)
Have 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

Re:Making Emacs Work for Me by berdario on Sunday November 30, 2014 @07:09PM (#8678818)
Uh, 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/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

Re:Making Emacs Work for Me by codemac on Sunday November 30, 2014 @04:06PM (#8678090)
I'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.

Re:Making Emacs Work for Me by sjm on Sunday November 30, 2014 @08:50PM (#8679113)
That 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

As an example here's my package init using use-package: https://github.com/stafu/.emacs.d/blob/master/init/init-pack...

Re:Making Emacs Work for Me by agumonkey on Sunday November 30, 2014 @04:44PM (#8678245)
I 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.