How to setup your Emacs init file using orgmode

A recommended way to setup your Emacs init file is to load it as an orgmode file. I am using Emacs Prelude, and it is not recommended to edit your ~/.emacs.d/init.el. In prelude the initialization files go into ~/.emacs.d/personal/preload/ folder.

In order to write your init.el as an orgmode file using Emacs Prelude do the following steps:

Step 1

  • Make a file ~/emacs.d/personal/emacs-init.el with the content:
(require 'org)
 (expand-file-name ""

Step 2

  • Make your orgmode init file in your custom path /path/to/
    • Your should be like this:
* Personal info
#+BEGIN_SRC emacs-lisp
(setq user-full-name "Georgios Diapoulis")
* Keybindings
#+BEGIN_SRC emacs-lisp
(global-set-key (kbd "C-c h w") 'whitespace-mode)
(global-set-key (kbd "C-c h l") 'visual-line-mode)

Step 3

  • Restart Emacs

Latest posts