;; 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")