This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
init.el
61 lines (51 loc) · 1.99 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
; env
(setq explicit-shell-file-name "/bin/bash")
(setq exec-path (append '(
"~/bin"
"/usr/local/sbin"
"/usr/local/bin"
"~/.rbenv/shims/"
"/sbin"
"/opt/local/bin"
"/usr/local/share/npm/bin"
"~/.cabal/bin"
"/usr/local/MacGPG2/bin"
"~/src/mygo/bin"
)
exec-path))
(setenv "PATH"
(mapconcat 'identity exec-path path-separator))
(setenv "PAGER" "cat")
(setenv "EDITOR" "emacsclient")
(setenv "ALTERNATE_EDITOR" "emacs")
(setenv "PROMPT_COMMAND" "")
(setenv "PS1" "${debian_chroot:+($debian_chroot)}\\u@\\h:\\w \\$ ")
(setenv "GIT_EDITOR" "emacsclient")
(setenv "GIT_COMMITTER_NAME" "Alex Payne")
(setenv "GIT_COMMITTER_EMAIL" "al3x@al3x.net")
(setenv "GIT_AUTHOR_NAME" "Alex Payne")
(setenv "GIT_AUTHOR_EMAIL" "al3x@al3x.net")
(setq default-directory "~/src")
; load custom themeing
(setq custom-file "~/.emacs.d/custom.el")
(load custom-file)
; add directories to the load path
(add-to-list 'load-path "~/.emacs.d/customizations")
(add-to-list 'load-path "~/.emacs.d/utilities")
(add-to-list 'load-path "~/.emacs.d/vendor")
; handy function to load all elisp files in a directory
(load-file "~/.emacs.d/utilities/load-directory.el")
; load all utility functions
(mapc 'load-directory '("~/.emacs.d/utilities"))
; load personal customizations (keybindings, colors, etc.)
(mapc 'load-directory '("~/.emacs.d/customizations"))
; per-OS customizations
(if (string-equal system-type "gnu/linux")
(mapcar 'load-directory '("~/.emacs.d/linux-customizations"))
(mapcar 'load-directory '("~/.emacs.d/mac-customizations")))
; load packages via Pallet and Cask
(require 'cask "/usr/local/Cellar/cask/0.7.3/cask.el")
(cask-initialize)
(require 'pallet)
; initialize modes
(mapc 'load-directory '("~/.emacs.d/mode-inits"))