Hi! I'm in the process of switching from ~/.emacs.d/init.el to ~/.emacs.d/config.org using the method described on [1].
Org-mode from maint Git repository overruled via following lines right at the top of my ~/.emacs.d/init.el: | (add-to-list 'load-path "~/.emacs.d/contrib/org-mode/lisp") | (add-to-list 'load-path "~/.emacs.d/contrib/org-mode/contrib/lisp" t) All I did was moving the working elisp configuration into multiple emacs-lisp blocks. So the content of config.org/config.el should be OK. When I start emacs, I got following error: | Debugger entered--Lisp error: (error "Autoloading failed to define function org-babel-do-load-languages") | (org-babel-do-load-languages (quote org-babel-load-languages) (quote ((python . t) (shell . t) (org . t) (emacs-lisp . t) (sql . t) (restclient . t)))) | (progn (org-babel-do-load-languages (quote org-babel-load-languages) (quote ((python . t) (shell . t) (org . t) (emacs-lisp . t) (sql . t) (restclient . t))))) | (if (my-system-type-is-windows) (progn (org-babel-do-load-languages (quote org-babel-load-languages) (quote ((python . t) (shell . t) (org . t) (emacs-lisp . t) (sql . t) (restclient . t)))))) | eval-buffer(#<buffer *load*-731047> nil "c:/Users/karl.voit/AppData/Roaming/.emacs.d/config.el" nil t) ; Reading at buffer position 136983 | load-with-code-conversion("c:/Users/karl.voit/AppData/Roaming/.emacs.d/config.el" "c:/Users/karl.voit/AppData/Roaming/.emacs.d/config.el" nil nil) | load("c:/Users/karl.voit/AppData/Roaming/.emacs.d/config.el" nil nil t) | load-file("~/.emacs.d/config.el") | (let ((orgfile (concat my-user-emacs-directory "config.org")) (elfile (concat my-user-emacs-directory "config.el")) (gc-cons-threshold most-positive-fixnum)) (if (or (not (file-exists-p elfile)) (file-newer-than-file-p orgfile elfile)) (progn (my-tangle-config-org) (save-buffers-kill-emacs))) (load-file elfile)) | eval-buffer(#<buffer *load*> nil "c:/Users/karl.voit/AppData/Roaming/.emacs.d/init.el" nil t) ; Reading at buffer position 3295 | load-with-code-conversion("c:/Users/karl.voit/AppData/Roaming/.emacs.d/init.el" "c:/Users/karl.voit/AppData/Roaming/.emacs.d/init.el" t t) | load("c:/Users/karl.voit/AppData/Roaming/.emacs.d/init" t t) | #[0 \205\262 I get it with Debian GNU/Linux stable with latest emacs-snapshot, Xubuntu 16.04 with its emacs, and with Emacs 24.5 on Windows. The latter produced the message above, obviously. The code that causes the error seems to be: | (org-babel-do-load-languages | 'org-babel-load-languages | '( | (python . t) | (shell . t) | (org . t) | (emacs-lisp . t) | (sql . t) | (restclient . t) | )) A rough guess is that Emacs is using the built-in Org-mode to load the config.el. I can not confirm this because "M-x org-version" results in "command-execute: Autoloading failed to define function org-version". Do you have any tip for me? [1] http://www.holgerschurig.de/en/emacs-init-tangle/ and https://bitbucket.org/holgerschurig/emacsconf/src -- get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode: > get Memacs from https://github.com/novoid/Memacs < Personal Information Management > http://Karl-Voit.at/tags/pim/ Emacs-related > http://Karl-Voit.at/tags/emacs/