-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacos-init.el
51 lines (41 loc) · 1.59 KB
/
macos-init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; macos-init.el -- Set up macOS specific things.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Grumble.
(when nil
;; I used to do this to set the PATH that programs run under emacs got.
;; I'm keeping it as an example of how to do this, not because it is used
;; currently.
(let ((old-path (split-string (getenv "PATH") ":")))
(mapc (λ (e) (add-to-list 'old-path e))
`(;;"/sw/versions/docutils/snapshot/2009-10-09/bin"
"/opt/local/bin"
"/opt/local/sbin"
;; FIXME: do we need the following any more, since python is in
;; /opt/local/bin?
;;"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin"
,@(mapcar #'expand-file-name
'("~/local/bin"
"~/local/unix/bin"
"~/local/unix/rndbin"))
"/sw/versions/mew/6.7/bin"
;; "/sw/versions/m64/sbcl/cvs/bin"
;; "/sw/versions/32bits/clisp/cvs/bin"
"/sw/versions/nmh/1.3/bin"
;; "/sw/versions/m64/go/rc/bin"
;;"/usr/texbin"
))
;; Plan 9
(add-to-list 'old-path "/usr/local/plan9/bin" 'append)
(setenv "PLAN9PORT" "/usr/local/plan9")
(setenv "PATH" (mapconcat #'identity old-path ":"))))
;; Do we still need to do this?
(when nil
(mapc (λ (e) (add-to-list 'exec-path e))
(reverse (split-string (getenv "PATH") ":"))))
(if (executable-find "gls")
(progn
(setq insert-directory-program "gls")
(setq dired-listing-switches "-lFaGh1v --group-directories-first"))
(setq dired-listing-switches "-ahlF"))
;;; end of macos-init.el