* Providing all init files, loading them with require

* Moved load-file-if-exists to init-functions
* Added init-misc.el for random things that don't fit anywhere else
* Never any tabs, ever. Go away!

Bindings:
* quit Emacs -> C-x r q ("real quit")
* delete-frame -> C-x C-c
* make-frame -> C-x C-n
This commit is contained in:
Vincent Ambo 2013-08-07 00:49:20 +02:00
parent 43a99dea3a
commit 503600091e
7 changed files with 43 additions and 11 deletions

20
init.el
View file

@ -46,24 +46,22 @@
(when (not (package-installed-p p))
(package-install p)))
;; Are we on a mac?
(setq is-mac (equal system-type 'darwin))
(load "~/.emacs.d/init-functions.el")
(add-to-list 'load-path user-emacs-directory)
(mapc 'require '(init-functions
init-settings
init-modes
init-bindings
init-eshell))
(add-to-list 'load-path "~/.emacs.d/scripts/")
(setq custom-file "~/.emacs.d/init-custom.el")
(load custom-file)
(load "~/.emacs.d/init-settings.el")
(load "~/.emacs.d/init-modes.el")
(load "~/.emacs.d/init-bindings.el")
(load "~/.emacs.d/init-eshell.el")
(defun load-file-if-exists (filename)
(if (file-exists-p filename)
(load filename)))
;; A file with machine specific settings.
(load-file-if-exists "~/.emacs.d/init-local.el")