view .emacs @ 221:6aad20d9fcb0

emacs gui: move gui initialization code to a function Given the weirdness observed in gui init with daemon mode, this should make life with daemon mode easier.
author Augie Fackler <durin42@gmail.com>
date Tue, 07 Sep 2010 19:33:23 -0500
parents 2a4efba0fe8b
children 7edfa8d22584
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)

(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")))