view .emacs @ 77:45d7441d0cf2

Modularize .emacs
author Augie Fackler <durin42@gmail.com>
date Thu, 09 Apr 2009 13:39:20 -0500
parents 2b2a667092fd
children 8aa70b521063
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:

(add-to-list 'load-path (expand-file-name "~/.elisp"))

; Start the server so that emacsclient will work
; TODO: is there a way to *not* start a server if one was already running?
(server-start)

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

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