emacs/emacs.config.org/init.el
2018-04-07 10:54:04 +08:00

17 lines
471 B
EmacsLisp

;; Using org as the configuration file of Emacs
;;
(defun load-config (name)
(let ((config-org (concat name ".org"))
(config-el (concat name ".el")))
(when (file-exists-p config-org)
(if (or (not (file-exists-p config-el))
(file-newer-than-file-p config-org
config-el))
(org-babel-load-file config-org)
(load-file config-el)))))
(require 'org)
(load-config "~/.emacs.d/emacs")