annotate .elisp/settings/50.compilation-tweaks.el @ 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 1ba5a7b0a328
children b0264224e2ec
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
212
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
1 (require 'compile)
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
2
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
3 (pushnew
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
4 '(mercurial-test-output-tb
213
1947b2c08f29 compilation: adjust regexp for hg tracebacks
Augie Fackler <durin42@gmail.com>
parents: 212
diff changeset
5 "\+ File \".*/install/lib/python/\\([^\"]*\\)\", line \\([0-9]*\\)\\(, in .*\\)?$"
212
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
6 1 2) compilation-error-regexp-alist-alist)
242
1ba5a7b0a328 compilation mode: handle mercurial check-code output
Augie Fackler <durin42@gmail.com>
parents: 213
diff changeset
7 (pushnew
1ba5a7b0a328 compilation mode: handle mercurial check-code output
Augie Fackler <durin42@gmail.com>
parents: 213
diff changeset
8 '(mercurial-check-code-output-tb
1ba5a7b0a328 compilation mode: handle mercurial check-code output
Augie Fackler <durin42@gmail.com>
parents: 213
diff changeset
9 "\+\\(/[^:]+\\):\\([0-9]+\\):$"
1ba5a7b0a328 compilation mode: handle mercurial check-code output
Augie Fackler <durin42@gmail.com>
parents: 213
diff changeset
10 1 2) compilation-error-regexp-alist-alist)
212
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
11 ;; add to the end so this gets priority
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
12 (setq compilation-error-regexp-alist
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
13 (append compilation-error-regexp-alist '(mercurial-test-output-tb)))
242
1ba5a7b0a328 compilation mode: handle mercurial check-code output
Augie Fackler <durin42@gmail.com>
parents: 213
diff changeset
14 (setq compilation-error-regexp-alist
1ba5a7b0a328 compilation mode: handle mercurial check-code output
Augie Fackler <durin42@gmail.com>
parents: 213
diff changeset
15 (append compilation-error-regexp-alist '(mercurial-check-code-output-tb)))
212
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
16
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
17 ;; Use the next s-exp to remove the last list element if you need to
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
18 ;; live-edit this regex
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
19 ;; (setq compilation-error-regexp-alist-alist
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
20 ;; (cdr compilation-error-regexp-alist-alist))
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
21 ;; (setq compilation-error-regexp-alist
4716b238db2e emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
22 ;; (reverse (cdr (reverse compilation-error-regexp-alist))))