This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/init.el

55 lines
1.8 KiB
EmacsLisp
Raw Normal View History

2012-12-18 05:48:12 +00:00
(require 'cl)
;; Locations ==================================================================
2012-12-18 05:48:12 +00:00
(defvar user-home-directory
(expand-file-name (concat user-emacs-directory "../"))
"Emacs home directory.")
2012-12-18 05:48:12 +00:00
2013-01-11 03:29:46 +00:00
(defvar user-org-directory
(expand-file-name (concat user-emacs-directory "my-org/"))
"Org files directory.")
2012-12-27 20:50:48 +00:00
(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.")
2012-12-27 20:50:48 +00:00
(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")
2012-12-18 05:48:12 +00:00
(add-to-list 'load-path user-emacs-directory)
(add-to-list 'load-path user-extensions-directory)
2012-12-27 20:50:48 +00:00
;; Configuration ==============================================================
(progn (when (file-exists-p user-config-directory)
(dolist (l (directory-files user-config-directory nil "^[^#].*el$"))
(load (concat user-config-directory l)))))
2012-12-27 20:50:48 +00:00
;; Setup ======================================================================
(require 'my-funcs)
(require 'my-macros)
(require 'packages)
2012-12-27 20:50:48 +00:00
(require 'extensions)
(require 'my-keybindings)
2013-01-04 16:07:52 +00:00
(require 'my-keychords)
;; Host config ================================================================
(progn (when (file-exists-p host-directory)
(dolist (l (directory-files host-directory nil "^[^#].*el$"))
(load (concat host-directory l)))))
2013-01-29 15:26:30 +00:00
;; Custom groups settings =====================================================
(require 'custom-settings)