update config
[emacs.git] / .emacs.d / init.el
1 ;; Ganneff's emacs config
2
3 ;; Emacs can not read its config directly from org-mode files.
4 ;; But as my config nearly completly is inside an org-mode file,
5 ;; emacs need to be told to deal with it.
6 ;; Meet org-tangle/org-babel-load-file, which extracts the emacs-lisp
7 ;; source parts of my config files, writes them into .el files
8 ;; and then lets emacs load those.
9
10 ;; That way I have a nice environment to edit and comment - and easily export
11 ;; to web or elsewhere - while emacs has its elisp. The initial run after
12 ;; a config change takes longer, but as that only happens when I change
13 ;; something in the .org files - I don't care.
14
15 ;; Go go go
16 (message "Emacs is powering up... Be patient, Master %s!" (getenv "USER"))
17
18 ;; I like to see how long it takes to "boot" emacs (usually one or two
19 ;; seconds), so save the start time
20 (defvar emacs-load-start-time (current-time))
21
22 ;; Set path to (my, recent) Org-Mode version
23 (add-to-list 'load-path (concat (file-name-directory (or load-file-name (buffer-file-name))) "elisp/org/"))
24
25 ;; org-mode can load modules when it loads itself, lets tell it which ones we want.
26 (setq org-modules (quote
27 (org-bbdb org-bibtex org-crypt org-docview org-gnus
28 org-id org-info org-jsinfo org-habit org-inlinetask
29 org-irc org-protocol org-w3m org-mouse org-checklist
30 org-notmuch icalendar)))
31
32 ;; And load org-mode
33 (require 'org)
34 ;; Without this the whole config can't load
35 (require 'ob-tangle)
36 ;; And finally, let org-babel do its work. All the rest of the emacs
37 ;; initialization comes from initjj.org
38 (org-babel-load-file (expand-file-name "initjj.org" (file-name-directory (or load-file-name (buffer-file-name)))))
39