I am trying to write emacs init using Org-mode By using org-babel-load-file function in init.el. My init.el file is
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/")
'("marmalade" . "http://marmalade-repo.org/packages/")
)
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(org-babel-load-file (expand-file-name "settings.org"
user-emacs-directory))
But on using so I am getting the following error message
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
expand-file-name(nil)
load-file(nil)
org-babel-load-file("/home/nithin/.emacs.d/settings.org")
eval((org-babel-load-file (expand-file-name "settings.org" user-emacs-directory)) nil)
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp nil nil)
command-execute(eval-last-sexp)
I would appreciate any input on the subject.
:tangle yes
header argument?