author | Luke Hoersten <Luke@Hoersten.org> |
Sun, 12 Dec 2010 22:39:16 -0600 | |
changeset 32 | 68b57950fa11 |
parent 31 | 27930e0310d6 |
child 33 | 3be3d7b4cae4 |
permissions | -rw-r--r-- |
21 | 1 |
;; ~/.emacs.d/init.el (~/.emacs) |
4
0fda818a8b6a
Added doxymacs and provides for requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
3
diff
changeset
|
2 |
;; Luke Hoersten <[email protected]> |
0 | 3 |
|
32
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
4 |
|
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
5 |
;;;; General ;;;; |
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
6 |
(add-to-list 'load-path "~/.emacs.d") ; set default emacs load path |
0 | 7 |
|
21 | 8 |
(setq-default |
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
9 |
ediff-split-window-function |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
10 |
'split-window-horizontally ; diff horizontally |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
11 |
x-select-enable-clipboard t ; paste from X buffer |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
12 |
inhibit-splash-screen t ; disable splash screen |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
13 |
truncate-lines t ; truncate, not wrap, lines |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
14 |
indent-tabs-mode nil ; only uses spaces for indentation |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
15 |
split-width-threshold 181) ; min width to split window horizontially |
0 | 16 |
|
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
17 |
(put 'set-goal-column 'disabled nil) ; enable goal column setting |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
18 |
(put 'narrow-to-region 'disabled nil) ; enable hiding |
21 | 19 |
(put 'narrow-to-page 'disabled nil) |
20 |
||
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
21 |
(menu-bar-mode -1) ; remove menu bar |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
22 |
(display-time-mode t) ; show clock |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
23 |
(column-number-mode t) ; show column numbers |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
24 |
(delete-selection-mode t) ; replace highlighted text |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
25 |
(windmove-default-keybindings) ; move between windows with shift-arrow |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
26 |
(fset 'yes-or-no-p 'y-or-n-p) ; replace yes/no prompts |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
27 |
|
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
28 |
;;; coding |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
29 |
(which-func-mode t) ; show current function |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
30 |
(show-paren-mode t) ; show matching paren |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
31 |
(transient-mark-mode t) ; show highlighting |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
32 |
(global-font-lock-mode t) ; syntax highlighting |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
33 |
(setq-default compile-command "scons ") ; compile command |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
34 |
(global-set-key (kbd "C-c c") 'compile) ; compile |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
35 |
(global-set-key (kbd "C-c r") 'recompile) ; recompile |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
36 |
(global-set-key |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
37 |
(kbd "C-c C-c") |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
38 |
'comment-or-uncomment-region) ; toggle region comment |
0 | 39 |
|
32
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
40 |
;;; Darwin |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
41 |
(if (string-match "darwin" (emacs-version)) |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
42 |
(progn |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
43 |
(setq-default ns-command-modifier 'control) |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
44 |
(tabbar-mode nil) |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
45 |
(menu-bar-mode t))) |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
46 |
|
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
47 |
;;; Xorg |
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
48 |
(if window-system |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
49 |
(progn |
32
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
50 |
(defun get-font () |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
51 |
"Get appropriate font based on system and hostname." |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
52 |
(cond |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
53 |
((string-match "darwin" (emacs-version)) "Menlo-12") |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
54 |
((string-match "HoldenCaulfield" (system-name)) "monospace-7") |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
55 |
("monospace-10"))) |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
56 |
|
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
57 |
(tool-bar-mode -1) ; remove tool bar |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
58 |
(scroll-bar-mode -1) ; remove scroll bar |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
59 |
(visual-line-mode t) ; word wrap break on whitespace |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
60 |
(global-hl-line-mode t) ; highlight current line |
32
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
61 |
(set-frame-font (get-font)) |
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
62 |
|
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
63 |
;; twilight theme |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
64 |
(require 'color-theme) |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
65 |
(load "color-theme-twilight") |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
66 |
(color-theme-twilight) |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
67 |
)) |
0 | 68 |
|
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
69 |
;;; terminal |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
70 |
(global-set-key (kbd "C-c s") 'eshell) ; start shell |
32
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
71 |
(add-hook 'eshell-mode-hook '(lambda () (setenv "TERM" "emacs"))) ; enable colors |
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
72 |
|
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
73 |
|
32
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
74 |
;;;; Mode-Specific ;;;; |
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
75 |
|
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
76 |
;;; linum-mode - line numbers |
21 | 77 |
(mapc |
78 |
(lambda (x) |
|
79 |
(add-hook x 'linum-mode)) |
|
80 |
'(text-mode-hook |
|
81 |
c-mode-common-hook |
|
82 |
python-mode-hook |
|
83 |
haskell-mode-hook |
|
84 |
emacs-lisp-mode-hook)) |
|
0 | 85 |
|
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
86 |
;;; text-mode |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
87 |
(add-hook 'text-mode-hook 'flyspell-mode t) ; spellcheck text |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
88 |
(add-hook 'text-mode-hook 'turn-on-auto-fill) ; autofill text |
28
8f4bd2f2cc06
Aquamacs comes with more features so I removed some mac stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
26
diff
changeset
|
89 |
|
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
90 |
;;; ido-mode |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
91 |
(ido-mode t) ; file/buffer selector |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
92 |
(setq-default |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
93 |
ido-enable-flex-matching t ; fuzzy matching for ido mode |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
94 |
ido-create-new-buffer 'always ; create new buffer without prompt |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
95 |
ido-everywhere t) ; use ido where possible |
21 | 96 |
|
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
97 |
;;; whitespace-mode |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
98 |
(global-whitespace-mode t) ; show whitespace |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
99 |
(add-hook 'before-save-hook 'whitespace-cleanup) ; cleanup whitespace on exit |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
100 |
(setq-default |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
101 |
whitespace-line-column 120 ; column width |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
102 |
whitespace-style ; whitespace to highlight |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
103 |
'(trailing lines-tail empty indentation |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
104 |
space-before-tab space-after-tab)) |
21 | 105 |
|
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
106 |
;;; python-mode |
21 | 107 |
(add-hook |
108 |
'python-mode-hook |
|
109 |
(lambda () |
|
110 |
(setq |
|
111 |
tab-width 3 |
|
112 |
python-indent 3 |
|
113 |
indent-tabs-mode t))) |
|
114 |
||
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
115 |
;;; haskell-mode |
25
303d1b762ccc
Added more haskell mode settings
Luke Hoersten <Luke@Hoersten.org>
parents:
23
diff
changeset
|
116 |
(add-hook |
303d1b762ccc
Added more haskell mode settings
Luke Hoersten <Luke@Hoersten.org>
parents:
23
diff
changeset
|
117 |
'haskell-mode-hook |
303d1b762ccc
Added more haskell mode settings
Luke Hoersten <Luke@Hoersten.org>
parents:
23
diff
changeset
|
118 |
(lambda () |
26
bd86fe64dfc8
Added OS specific configs.
Luke Hoersten <Luke@Hoersten.org>
parents:
25
diff
changeset
|
119 |
(haskell-indentation-mode nil) |
bd86fe64dfc8
Added OS specific configs.
Luke Hoersten <Luke@Hoersten.org>
parents:
25
diff
changeset
|
120 |
(haskell-indent-mode t) |
bd86fe64dfc8
Added OS specific configs.
Luke Hoersten <Luke@Hoersten.org>
parents:
25
diff
changeset
|
121 |
(capitalized-words-mode t) |
bd86fe64dfc8
Added OS specific configs.
Luke Hoersten <Luke@Hoersten.org>
parents:
25
diff
changeset
|
122 |
(haskell-doc-mode t) |
25
303d1b762ccc
Added more haskell mode settings
Luke Hoersten <Luke@Hoersten.org>
parents:
23
diff
changeset
|
123 |
(setq |
303d1b762ccc
Added more haskell mode settings
Luke Hoersten <Luke@Hoersten.org>
parents:
23
diff
changeset
|
124 |
haskell-font-lock-symbols 'unicode |
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
125 |
haskell-indent-offset 4 |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
126 |
whitespace-line-column 87)) |
32
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
127 |
t) ; append instead of prepend else haskell-mode overwrites these settings |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
128 |
|
25
303d1b762ccc
Added more haskell mode settings
Luke Hoersten <Luke@Hoersten.org>
parents:
23
diff
changeset
|
129 |
|
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
130 |
;;; org-mode |
21 | 131 |
(add-hook |
132 |
'org-mode-hook |
|
133 |
(lambda () |
|
134 |
(local-set-key (kbd "M-p") 'org-move-item-up) |
|
135 |
(local-set-key (kbd "M-S-p") 'org-move-subtree-up) |
|
136 |
(local-set-key (kbd "M-n") 'org-move-item-down) |
|
137 |
(local-set-key (kbd "M-S-n") 'org-move-subtree-down))) |
|
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
138 |
|
32
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
139 |
;;; ibuffer |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
140 |
(global-set-key (kbd "C-x C-b") 'ibuffer) ; better buffer browser |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
141 |
(setq-default |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
142 |
ibuffer-saved-filter-groups |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
143 |
'(("Hoersten" |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
144 |
("Emacs Configs" (saved . "Emacs Configs")))) |
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
145 |
|
32
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
146 |
ibuffer-saved-filters |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
147 |
'(("Emacs Configs" |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
148 |
((filename . "\\.emacs\\.d/.*\\.el$"))) |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
149 |
("gnus" ((or (mode . message-mode) (mode . mail-mode) (mode . gnus-group-mode) (mode . gnus-summary-mode) (mode . gnus-article-mode)))) |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
150 |
("programming" ((or (mode . emacs-lisp-mode) (mode . cperl-mode) (mode . c-mode) (mode . java-mode) (mode . idl-mode) (mode . lisp-mode)))) |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
151 |
)) |
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
152 |
|
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
153 |
|
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
154 |
;;;; Requires ;;;; |
31
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
155 |
|
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
156 |
(require 'hoersten-align-with-spaces) ; use only spaces for alignment |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
157 |
(require 'hoersten-pastebin-region) ; send selected text to pastebin |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
158 |
(require 'hoersten-c-style) ; load c specific lisp |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
159 |
(require 'vala-mode) ; vala programming language |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
160 |
|
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
161 |
;;; auto-complete-mode |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
162 |
(add-to-list 'load-path "~/.emacs.d/auto-complete-mode/") |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
163 |
(require 'auto-complete-config) |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
164 |
(add-to-list 'ac-dictionary-directories "~/.emacs.d/auto-complete-mode/ac-dict") |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
165 |
(ac-config-default) |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
166 |
(setq ac-modes (append ac-modes '(haskell-mode))) |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
167 |
|
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
168 |
;;; pretty-mode - unicode character replacement |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
169 |
(require 'pretty-mode) |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
170 |
(global-pretty-mode t) |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
171 |
|
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
172 |
;;; yasnippets |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
173 |
(add-to-list 'load-path "~/.emacs.d/yasnippet") |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
174 |
(require 'yasnippet) |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
175 |
(yas/initialize) |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
176 |
(yas/load-directory "~/.emacs.d/yasnippet/snippets") |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
177 |
(setq-default yas/prompt-functions '(yas/ido-prompt yas/dropdown-prompt)) ; use ido for multiple snippets |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
178 |
|
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
179 |
;;; zencoding-mode - html |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
180 |
(require 'zencoding-mode) |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
181 |
(add-hook 'sgml-mode-hook 'zencoding-mode) ; Auto-start on any markup modes |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
182 |
|
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
183 |
;;; unique buffer names with dirs |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
184 |
(require 'uniquify) |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
185 |
(setq |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
186 |
uniquify-buffer-name-style 'post-forward |
27930e0310d6
Reorganized a ton. Split into 3 main sections: General, Modes, and Requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
30
diff
changeset
|
187 |
uniquify-separator ":") |