emacs/init.el
Lars Tveito 8c31f15ba4 init.el replaces itself with config at first run.
The init.el file should no longer be tracked by version control. This is
to avoid cluttered commits.
2015-04-08 00:01:52 +02:00

13 lines
382 B
EmacsLisp

;; This file replaces itself with the actual configuration at first run.
;; We can't tangle without org!
(require 'org)
;; Open the configuration
(find-file (concat user-emacs-directory "init.org"))
;; tangle it
(org-babel-tangle)
;; load it
(load-file (concat user-emacs-directory "init.el"))
;; finally byte-compile it
(byte-compile-file (concat user-emacs-directory "init.el"))