about summary refs log tree commit diff
path: root/init.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-08-06T22·49+0200
committerVincent Ambo <vincent@spotify.com>2013-08-06T22·49+0200
commit503600091e63ebe63c8a84ec6b8a6120ff89dc23 (patch)
tree861408eb7b1854d956d1e73f41030205c636ba41 /init.el
parent43a99dea3aa6651b1b060ace714bddc1e10925ea (diff)
* 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
Diffstat (limited to 'init.el')
-rw-r--r--init.el20
1 files changed, 9 insertions, 11 deletions
diff --git a/init.el b/init.el
index a85e4c4b49de..191acf884775 100644
--- a/init.el
+++ b/init.el
@@ -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")