(require 'cl) ;; Locations ================================================================== (defvar user-home-directory (expand-file-name (concat user-emacs-directory "../")) "Emacs home directory.") (defvar user-config-directory (expand-file-name (concat user-emacs-directory "config/")) "Configuration scripts.") (defvar user-extensions-directory (expand-file-name (concat user-emacs-directory "extensions/")) "Additional extensions.") (defvar user-init-extension-directory (expand-file-name (concat user-emacs-directory "init-extension/")) "Extension initialization.") (defvar user-init-package-directory (expand-file-name (concat user-emacs-directory "init-package/")) "Package initialization.") (defvar host-directory (expand-file-name (concat user-emacs-directory "host/" system-name "/")) "Host specific configurations") (add-to-list 'load-path user-emacs-directory) (add-to-list 'load-path user-extensions-directory) ;; Configuration ============================================================== (progn (when (file-exists-p user-config-directory) (dolist (l (directory-files user-config-directory nil "^[^#].*el$")) (load (concat user-config-directory l))))) ;; Setup ====================================================================== (require 'my-funcs) (require 'my-macros) (require 'packages) (require 'extensions) (require 'my-keybindings) ;; Host config ================================================================ (progn (when (file-exists-p host-directory) (dolist (l (directory-files host-directory nil "^[^#].*el$")) (load (concat host-directory l))))) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. )