Solved Emacs org-babel not working

After watching a guide on setting up emacs initialisation using org mode:-

View: https://www.youtube.com/watch?v=hoP4I9ounyQ


I gave it a try, but can't get the hang of it. According to the guide you just need these two files, init.el:-
Code:
(org-babel-load-file
 (expand-file-name
 "config.org"
 (user-emacs-directory))

and config.org (this is just a simple test to see if I get the hang of it)...:-

Code:
* #+TITLE: emacs config
 #+Author: me

* Initialisation

#+begin_src emacs-lisp
(menu-bar-mode -1)
  (setq inhibit-startup-message t)
  (setq inhibit-splash-screen t)
  (split-window-horizontally)
  (message "hello")
#+end_src

When emacs starts up it doesn't even split the window horizontally, so I'm obviously doing something wrong. Changing the init.el to use a full path made no difference.

Anyone know what I've done wrong? I only have these two files in ~/.emacs.d/ .
 
It works on my 14.0R.
Thanks for confirmation that it works....

After removing ~/.emacs.d and starting again from scratch, running emacs and creating those two files, it works for me as well.
No idea what was screwing things up...
 
Back
Top