view .emacs @ 500:826e5656d9ff

emacs: always get PATH from shell env
author Augie Fackler <raf@durin42.com>
date Sat, 03 Oct 2020 11:22:21 -0400
parents 6e5260ca85f2
children
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

;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don't delete this line.  If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)

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