[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: allow loading initialization from .org file -- would be breaking cha
Re: allow loading initialization from .org file -- would be breaking change
Mon, 22 Nov 2010 11:40:11 -0500
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
> It is now possible to load a user's initialization from emacs-lisp code
> blocks embedded in Org-mode files using the `org-babel-load-file'
> command. Currently users of this setup must still have an elisp init.el
> function which loads up their .org files. See for example this fairly
> widely used configuration  which uses this init file .
> Would it make sense to begin loading .init.org and .emacs.org files by
> default. This would be a breaking change for any users who have both
> .init.el and .init.org, and what's worse it would overwrite the .init.el
> file when the embedded elisp is tangled out of the Org-mode file.
I don't think we want to hook Org so deeply in the startup code.
And note that org-babel-load-file is autoloaded, so the init.el file can
be reduced down to just:
(org-babel-load-file (locate-user-emacs-file "init.org"))