annotate .emacs @ 377:117e3c11d953

zprofile: introduce zprofile use El Capitan (OS X 10.11) introduces a system-level /etc/zprofile which uses a path_helper thing to mangle $PATH. Unfortunately, the way path_helper works, it forces /usr/local/bin and /usr/bin to the *start* of the PATH variable, which means that any PATH mutations I want have to run after /etc/zprofile calls path_helper. As such, move my path insertions into .zprofile{,-machine} rather than .zshenv{,-machine} so that I can still ensure my path entries are at the start of PATH rather than the end. This works because: > Commands are then read from $ZDOTDIR/.zshenv. If the shell is a > login shell, commands are read from /etc/zprofile and then > $ZDOTDIR/.zprofile. Then, if the shell is interactive, commands > are read from /etc/zshrc and then $ZDOTDIR/.zshrc. Finally, if the > shell is a login shell, /etc/zlogin and $ZDOTDIR/.zlogin are read. This means that non-login shells no longer pick up my custom PATH entries, but as I only use OS X as a desktop OS that seems like a workable tradeoff for now.
author Augie Fackler <raf@durin42.com>
date Sun, 31 Jan 2016 20:46:29 -0500
parents 08af9e123baa
children 9a2541ec4d4d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c30d68fbd368 Initial import from svn.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
1 ;; Augie Fackler's .emacs file
c30d68fbd368 Initial import from svn.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
2 ; Places I've stolen from:
c30d68fbd368 Initial import from svn.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
3 ; Karl Fogel: http://svn.red-bean.com/repos/kfogel/trunk
155
8b0932adcaf1 emacs: mark the location of one of my sources
Augie Fackler <durin42@gmail.com>
parents: 127
diff changeset
4 ; Dave Anderson: https://ssl.natulte.net/hg/dotfiles/
98
8aa70b521063 Jump-to-function trick with IDO.
Augie Fackler <durin42@gmail.com>
parents: 77
diff changeset
5 ; Emacs Starter Kit: http://github.com/technomancy/emacs-starter-kit
0
c30d68fbd368 Initial import from svn.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
6
c30d68fbd368 Initial import from svn.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
7 ; Start the server so that emacsclient will work
c30d68fbd368 Initial import from svn.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
8 (server-start)
c30d68fbd368 Initial import from svn.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
9
358
08af9e123baa emacs: load customize file earlier so it can matter for things like smart-modeline
Augie Fackler <raf@durin42.com>
parents: 355
diff changeset
10 (setq custom-file "~/.elisp/settings/01.custom.el")
355
7edfa8d22584 emacs: move customize droppings to a dedicated file
Augie Fackler <raf@durin42.com>
parents: 214
diff changeset
11
77
45d7441d0cf2 Modularize .emacs
Augie Fackler <durin42@gmail.com>
parents: 76
diff changeset
12 (let ((settings-files (concat (getenv "HOME") "/.elisp/settings")))
45d7441d0cf2 Modularize .emacs
Augie Fackler <durin42@gmail.com>
parents: 76
diff changeset
13 (mapc '(lambda (p) (load (concat settings-files "/" p)))
201
b80bed8c7c39 emacs: stop loading temp. files when walking settings
Augie Fackler <durin42@gmail.com>
parents: 155
diff changeset
14 (directory-files settings-files nil "^[0-9].*el$")))
74
fd369b708cbe Better way of altering load-path, add support for local-to-machine emacs configs.
Augie Fackler <durin42@gmail.com>
parents: 65
diff changeset
15
77
45d7441d0cf2 Modularize .emacs
Augie Fackler <durin42@gmail.com>
parents: 76
diff changeset
16 (if (file-regular-p (expand-file-name (concat (getenv "HOME")
45d7441d0cf2 Modularize .emacs
Augie Fackler <durin42@gmail.com>
parents: 76
diff changeset
17 "/.emacs-machine.el")))
74
fd369b708cbe Better way of altering load-path, add support for local-to-machine emacs configs.
Augie Fackler <durin42@gmail.com>
parents: 65
diff changeset
18 (load (expand-file-name "~/.emacs-machine.el")))