;; ;; init.el ;; ;; where all the magic starts ;-) ;; this init file will only load org config files in the directory. ;; this is done with because of several reasons, that is: ;; - using org files to configure emacs makes documentation better, ;; - separating config files by topic makes better organization. ;; set main config dir to location of this file. (defvar user-emacs-config-directory (file-name-directory (or (buffer-file-name) load-file-name)) "global var storing Emacs' configuration directory path") ;; Load config org files in init.org.d in the config directory (let ((config-file-pattern "\\.org$")) (mapc #'org-babel-load-file (directory-files (expand-file-name "init.org.d" user-emacs-config-directory) t config-file-pattern)))