view .emacs @ 358:08af9e123baa

emacs: load customize file earlier so it can matter for things like smart-modeline
author Augie Fackler <raf@durin42.com>
date Thu, 08 Jan 2015 16:22:23 -0500
parents 7edfa8d22584
children 9a2541ec4d4d
line wrap: on
line source

;; Augie Fackler's .emacs file
; Places I've stolen from:
;  Karl Fogel: http://svn.red-bean.com/repos/kfogel/trunk
;  Dave Anderson: https://ssl.natulte.net/hg/dotfiles/
;  Emacs Starter Kit: http://github.com/technomancy/emacs-starter-kit

; Start the server so that emacsclient will work
(server-start)

(setq custom-file "~/.elisp/settings/01.custom.el")

(let ((settings-files (concat (getenv "HOME") "/.elisp/settings")))
  (mapc '(lambda (p) (load (concat settings-files "/" p)))
        (directory-files settings-files nil "^[0-9].*el$")))

(if (file-regular-p (expand-file-name (concat (getenv "HOME")
                                              "/.emacs-machine.el")))
    (load (expand-file-name "~/.emacs-machine.el")))