I'm following the tutorial here to implement my init.el
file in org mode. I therefore cleaned out my init.el
file and added this only:
(require 'org)
(org-babel-load-file
(expand-file-name "emacs-init.org"
user-emacs-directory))
When I do I get the following error:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
expand-file-name(nil)
load-file(nil)
org-babel-load-file("/home/tom/.emacs.d/emacs-init.org")
mapc(org-babel-load-file ("/home/tom/.emacs.d/emacs-init.org"))
eval-buffer(#<buffer *load*> nil "/home/tom/.emacs.d/init.el" nil t) ; Reading at buffer position 1065
load-with-code-conversion("/home/tom/.emacs.d/init.el" "/home/tom/.emacs.d/init.el" t t)
load("/home/tom/.emacs.d/init" t t)
...
command-line()
normal-top-level()
It seems that the expand-file-name
function is working, but for some reason nil
is being passed to the load-file
function. Is that a proper reading of this stack trace? And if so, then why is that happening?