Mercurial > hg > dotemacs
annotate dotemacs.el @ 27:8763b5053360
Change default font
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Tue, 31 Aug 2010 14:53:20 -0500 |
parents | 67a96731dbab |
children | 214a64830015 |
rev | line source |
---|---|
0 | 1 (custom-set-variables |
2 ;; custom-set-variables was added by Custom. | |
3 ;; If you edit it by hand, you could mess it up, so be careful. | |
4 ;; Your init file should contain only one such instance. | |
5 ;; If there is more than one, they won't work right. | |
6 '(LaTeX-indent-level 2) | |
7 '(LaTeX-item-indent 0) | |
8 '(TeX-PDF-mode t) | |
9 '(TeX-brace-indent-level 2) | |
10 '(TeX-debug-bad-boxes t) | |
11 '(TeX-debug-warnings t) | |
12 '(TeX-display-help nil) | |
13 '(TeX-newline-function (quote reindent-then-newline-and-indent)) | |
14 '(TeX-output-view-style (quote (("^dvi$" ("^landscape$" "^pstricks$\\|^pst-\\|^psfrag$") "%(o?)dvips -t landscape %d -o && gv %f") ("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o && gv %f") ("^dvi$" ("^a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4$" "^landscape$") "%(o?)xdvi %dS -paper a4r -s 0 %d") ("^dvi$" "^a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4$" "%(o?)xdvi %dS -paper a4 %d") ("^dvi$" ("^a5\\(?:comb\\|paper\\)$" "^landscape$") "%(o?)xdvi %dS -paper a5r -s 0 %d") ("^dvi$" "^a5\\(?:comb\\|paper\\)$" "%(o?)xdvi %dS -paper a5 %d") ("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d") ("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d") ("^dvi$" "^legalpaper$" "%(o?)xdvi %dS -paper legal %d") ("^dvi$" "^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d") ("^dvi$" "." "%(o?)xdvi %dS %d") ("^pdf$" "." "evince %o %(outpage)") ("^html?$" "." "netscape %o")))) | |
15 '(auto-compression-mode t nil (jka-compr)) | |
7
2c6fced452ac
Don't indent in namespace blocks, don't follow symlinks in VC
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
6
diff
changeset
|
16 '(c-offsets-alist (quote ((substatement-open . 0) (innamespace . 0)))) |
0 | 17 '(case-fold-search t) |
3
f25df4483e30
Add column number mode, comment out manual inclusion of cmake-mode, make default font smaller
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
2
diff
changeset
|
18 '(column-number-mode t) |
0 | 19 '(comint-input-autoexpand (quote history)) |
20 '(comint-move-point-for-output (quote all)) | |
21 '(comint-prompt-read-only t) | |
22 '(comint-scroll-to-bottom-on-input (quote all)) | |
23 '(compilation-scroll-output t) | |
24 '(confirm-kill-emacs (quote yes-or-no-p)) | |
25 '(cperl-auto-newline nil) | |
26 '(cperl-close-paren-offset 0) | |
27 '(cperl-electric-backspace-untabify nil) | |
28 '(cperl-highlight-variables-indiscriminately t) | |
29 '(cperl-merge-trailing-else nil) | |
30 '(current-language-environment "UTF-8") | |
31 '(debian-changelog-full-name "Jordi Gutiérrez Hermoso") | |
32 '(debian-changelog-mailing-address "jordigh@gmail.com") | |
33 '(default-input-method "latin-1-prefix") | |
18
a48ef65db31f
Some ECB configs
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
17
diff
changeset
|
34 '(ecb-options-version "2.32") |
a48ef65db31f
Some ECB configs
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
17
diff
changeset
|
35 '(ecb-tip-of-the-day nil) |
0 | 36 '(ediff-split-window-function (quote split-window-horizontally)) |
9
31bf8e120ebf
Customize diff colours, thanks to #emacs quicksilver for the head start
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
8
diff
changeset
|
37 '(erc-input-line-position 0) |
20
d8cde0480aec
Add django and legalese modes
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
19
diff
changeset
|
38 '(erc-modules (quote (autojoin button completion fill irccontrols list match menu move-to-prompt netsplit networks noncommands readonly ring scrolltobottom stamp track))) |
0 | 39 '(global-font-lock-mode t nil (font-lock)) |
40 '(indent-tabs-mode nil) | |
16
b8eeda0a7bad
Inhibit startup buffer menu
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
15
diff
changeset
|
41 '(inhibit-startup-buffer-menu t) |
0 | 42 '(inhibit-startup-screen t) |
43 '(jde-jdk-registry (quote (("1.6.0" . "/usr/lib/jvm/java-6-openjdk")))) | |
44 '(js2-auto-indent-flag nil) | |
45 '(js2-bounce-indent-flag nil) | |
46 '(js2-enter-indents-newline nil) | |
47 '(js2-mirror-mode nil) | |
20
d8cde0480aec
Add django and legalese modes
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
19
diff
changeset
|
48 '(legalese-default-author "Jordi Gutiérrez Hermoso") |
d8cde0480aec
Add django and legalese modes
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
19
diff
changeset
|
49 '(legalese-default-copyright "Copyright © 2010 Jordi Gutiérrez Hermoso <jordigh@gmail.com>") |
0 | 50 '(make-backup-files nil) |
9
31bf8e120ebf
Customize diff colours, thanks to #emacs quicksilver for the head start
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
8
diff
changeset
|
51 '(menu-bar-mode t) |
25
67a96731dbab
Make ipython default in Python; don't open more than one window when starting up with multiple files; attempt to do comments in Django.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
24
diff
changeset
|
52 '(py-python-command "ipython") |
0 | 53 '(savehist-mode t nil (savehist)) |
54 '(show-paren-mode t) | |
55 '(smooth-scroll-margin 5) | |
56 '(tab-width 2) | |
57 '(tabbar-mode t nil (tabbar)) | |
58 '(text-mode-hook (quote (text-mode-hook-identify))) | |
59 '(tool-bar-mode nil) | |
60 '(transient-mark-mode nil) | |
61 '(uniquify-buffer-name-style (quote forward) nil (uniquify)) | |
7
2c6fced452ac
Don't indent in namespace blocks, don't follow symlinks in VC
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
6
diff
changeset
|
62 '(vc-follow-symlinks nil) |
0 | 63 '(w3m-default-display-inline-images t) |
64 '(w3m-use-cookies t)) | |
65 (custom-set-faces | |
66 ;; custom-set-faces was added by Custom. | |
67 ;; If you edit it by hand, you could mess it up, so be careful. | |
68 ;; Your init file should contain only one such instance. | |
69 ;; If there is more than one, they won't work right. | |
27
8763b5053360
Change default font
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
25
diff
changeset
|
70 '(default ((t (:inherit nil :stipple nil :background "grey20" :foreground "white" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 98 :width normal :foundry "unknown" :family "Liberation Mono")))) |
9
31bf8e120ebf
Customize diff colours, thanks to #emacs quicksilver for the head start
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
8
diff
changeset
|
71 '(diff-added ((t (:foreground "green")))) |
31bf8e120ebf
Customize diff colours, thanks to #emacs quicksilver for the head start
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
8
diff
changeset
|
72 '(diff-changed ((t (:foreground "orange")))) |
31bf8e120ebf
Customize diff colours, thanks to #emacs quicksilver for the head start
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
8
diff
changeset
|
73 '(diff-file-header ((((class color) (background light)) (:background "lightblue" :bold t)))) |
31bf8e120ebf
Customize diff colours, thanks to #emacs quicksilver for the head start
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
8
diff
changeset
|
74 '(diff-header ((nil (:foreground "skyblue")))) |
17
8e043fc0f396
Change the colour of highlighted tabs
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
16
diff
changeset
|
75 '(diff-removed ((t (:foreground "red")))) |
18
a48ef65db31f
Some ECB configs
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
17
diff
changeset
|
76 '(ecb-tag-header-face ((((class color) (background dark)) (:background "DarkGreen")))) |
17
8e043fc0f396
Change the colour of highlighted tabs
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
16
diff
changeset
|
77 '(show-ws-tab ((t (:background "Black"))))) |
0 | 78 |
1 | 79 (add-to-list 'load-path "~/.emacs.d/plugins/") |
0 | 80 |
81 (defalias 'perl-mode 'cperl-mode) | |
82 | |
8
04f1a90eca70
Restore ipython mode, remove manual inclusion of cmake-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
7
diff
changeset
|
83 (require 'ipython) |
0 | 84 |
20
d8cde0480aec
Add django and legalese modes
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
19
diff
changeset
|
85 (require 'legalese) |
d8cde0480aec
Add django and legalese modes
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
19
diff
changeset
|
86 |
23
3488f4f3a2b5
Add rainbow-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
21
diff
changeset
|
87 (require 'django-mode) |
3488f4f3a2b5
Add rainbow-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
21
diff
changeset
|
88 |
3488f4f3a2b5
Add rainbow-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
21
diff
changeset
|
89 (require 'rainbow-mode) |
3488f4f3a2b5
Add rainbow-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
21
diff
changeset
|
90 |
0 | 91 (server-start) |
92 | |
93 ;(define-derived-mode tabified-python-mode python-mode | |
94 ; "tabified Python" (setq indent-tabs-mode t)) | |
95 | |
96 ;; wtf is this crap? begone! | |
97 (setq transient-mark-mode nil) | |
98 | |
99 (global-set-key (kbd "C-S-n") 'tabbar-forward-tab) | |
100 (global-set-key (kbd "C-S-p") 'tabbar-backward-tab) | |
101 (global-set-key (kbd "C-c C-S-n") 'tabbar-forward-group) | |
102 (global-set-key (kbd "C-c C-S-p") 'tabbar-backward-group) | |
103 | |
104 (global-set-key (kbd "C-S-j") 'windmove-down) | |
105 (global-set-key (kbd "C-S-k") 'windmove-up) | |
106 (global-set-key (kbd "C-S-h") 'windmove-left) | |
107 (global-set-key (kbd "C-S-l") 'windmove-right) | |
108 | |
109 (global-set-key (kbd "M-s") 'backward-kill-word) | |
110 | |
13
24194e20af48
Make kill-buffer always kill current buffer
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
12
diff
changeset
|
111 ;; Only killing the current buffer is useful (thanks to madpickle of #emacs) |
15
b1a031281538
Fix the kill buffer keybinding
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
14
diff
changeset
|
112 (global-set-key (kbd "C-x k") |
13
24194e20af48
Make kill-buffer always kill current buffer
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
12
diff
changeset
|
113 (lambda () (interactive) (kill-buffer (current-buffer)))) |
24194e20af48
Make kill-buffer always kill current buffer
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
12
diff
changeset
|
114 |
0 | 115 (setq auto-mode-alist |
116 (append | |
117 '( | |
23
3488f4f3a2b5
Add rainbow-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
21
diff
changeset
|
118 ("\\.m\\'" . octave-mode) |
3488f4f3a2b5
Add rainbow-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
21
diff
changeset
|
119 ("\\.eml\\'" . mail-mode) |
3488f4f3a2b5
Add rainbow-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
21
diff
changeset
|
120 ("\\.pro\\'" . conf-mode) ;; Qt project files |
3488f4f3a2b5
Add rainbow-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
21
diff
changeset
|
121 ) |
0 | 122 auto-mode-alist)) |
123 | |
23
3488f4f3a2b5
Add rainbow-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
21
diff
changeset
|
124 |
0 | 125 ;(setq scroll-step 1) |
126 ;(setq scroll-conservatively 1) | |
127 (require 'smooth-scrolling) | |
128 | |
24 | 129 ;; This ido thing looks interesting... |
130 (ido-mode 1) | |
131 | |
0 | 132 (setq default-major-mode 'text-mode) |
133 (global-unset-key "\C-z") | |
134 | |
25
67a96731dbab
Make ipython default in Python; don't open more than one window when starting up with multiple files; attempt to do comments in Django.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
24
diff
changeset
|
135 ;; Don't like it when several windows open upon emacs startup |
67a96731dbab
Make ipython default in Python; don't open more than one window when starting up with multiple files; attempt to do comments in Django.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
24
diff
changeset
|
136 ;; (Thanks theseb of #emacs) |
67a96731dbab
Make ipython default in Python; don't open more than one window when starting up with multiple files; attempt to do comments in Django.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
24
diff
changeset
|
137 (add-hook 'window-setup-hook 'delete-other-windows) |
67a96731dbab
Make ipython default in Python; don't open more than one window when starting up with multiple files; attempt to do comments in Django.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
24
diff
changeset
|
138 (add-to-list 'same-window-buffer-names "*Buffer List*") |
67a96731dbab
Make ipython default in Python; don't open more than one window when starting up with multiple files; attempt to do comments in Django.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
24
diff
changeset
|
139 |
0 | 140 ;; Set auto-fill for all modes |
141 ;(setq-default auto-fill-function 'do-auto-fill) | |
142 | |
12
15824057b993
Make ibuffer default
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
11
diff
changeset
|
143 ;ibuffer is the only decent one |
15824057b993
Make ibuffer default
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
11
diff
changeset
|
144 (global-set-key (kbd "C-x C-b") 'ibuffer) |
15824057b993
Make ibuffer default
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
11
diff
changeset
|
145 |
11
228001e42997
GUD windows aren't that useful after all, hide them
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
10
diff
changeset
|
146 ;Make GUD put output in a different buffer |
0 | 147 (setq gdb-separate-io t) |
148 | |
5
317bd5a17fc2
Highlight TODO: in C and C++ modes, comment out ipython for now
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
2
diff
changeset
|
149 ;; Highlight "FIXME: and TODO:" |
0 | 150 (font-lock-add-keywords |
151 'c-mode | |
152 '(("\\<\\(FIXME\\)" 1 font-lock-warning-face t))) | |
153 | |
154 (font-lock-add-keywords | |
155 'c++-mode | |
156 '(("\\<\\(FIXME\\):" 1 font-lock-warning-face t))) | |
157 | |
5
317bd5a17fc2
Highlight TODO: in C and C++ modes, comment out ipython for now
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
2
diff
changeset
|
158 (font-lock-add-keywords |
317bd5a17fc2
Highlight TODO: in C and C++ modes, comment out ipython for now
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
2
diff
changeset
|
159 'c-mode |
317bd5a17fc2
Highlight TODO: in C and C++ modes, comment out ipython for now
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
2
diff
changeset
|
160 '(("\\<\\(TODO\\):" 1 font-lock-warning-face t))) |
317bd5a17fc2
Highlight TODO: in C and C++ modes, comment out ipython for now
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
2
diff
changeset
|
161 |
317bd5a17fc2
Highlight TODO: in C and C++ modes, comment out ipython for now
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
2
diff
changeset
|
162 (font-lock-add-keywords |
317bd5a17fc2
Highlight TODO: in C and C++ modes, comment out ipython for now
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
2
diff
changeset
|
163 'c++-mode |
317bd5a17fc2
Highlight TODO: in C and C++ modes, comment out ipython for now
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
2
diff
changeset
|
164 '(("\\<\\(TODO\\):" 1 font-lock-warning-face t))) |
317bd5a17fc2
Highlight TODO: in C and C++ modes, comment out ipython for now
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
2
diff
changeset
|
165 |
0 | 166 ;; Let auto-fill end lines with a full stop. |
167 (setq sentence-end-double-space nil) | |
168 | |
169 ;; Don't scroll off horizontally when splitting windows vertically. | |
170 (setq truncate-partial-width-windows nil) | |
171 | |
172 ;; Don't let ediff open a new frame | |
173 (setq ediff-window-setup-function 'ediff-setup-windows-plain) | |
174 | |
19
54767f6d121e
Disable electric mode in C-derived modes
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
175 ;; Don't like stuff to indent when I don't hit <TAB> |
54767f6d121e
Disable electric mode in C-derived modes
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
176 (add-hook 'c-mode-common-hook (lambda() (setq c-electric-flag nil))) |
54767f6d121e
Disable electric mode in C-derived modes
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
177 |
0 | 178 ;; Menus are for wimps |
2
2194965b6dab
Fix removal of menu bar
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
1
diff
changeset
|
179 (menu-bar-mode -1) |
0 | 180 |
181 ;; ;; Use plain tabs in text mode | |
182 ;; (add-hook 'text-mode-hook | |
183 ;; (lambda () (define-key | |
184 ;; text-mode-map (kbd "TAB") | |
185 ;; (lambda () | |
186 ;; (interactive) | |
187 ;; (let ((was-at-bol (bolp))) | |
188 ;; (save-excursion | |
189 ;; (goto-char (point-at-bol)) | |
190 ;; (insert " ")) | |
191 ;; (when was-at-bol | |
192 ;; (back-to-indentation ))))))) | |
193 | |
194 (put 'narrow-to-region 'disabled nil) | |
195 | |
196 ;;; Inserts a relative pathname interactively | |
197 (defun insert-relative-path (path) | |
198 (interactive (list (read-file-name "Path to insert relatively: "))) | |
199 (insert (file-relative-name path default-directory)) | |
200 ) | |
201 | |
202 ; Add cmake listfile names to the mode list. | |
203 (setq auto-mode-alist | |
23
3488f4f3a2b5
Add rainbow-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
21
diff
changeset
|
204 (append |
3488f4f3a2b5
Add rainbow-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
21
diff
changeset
|
205 '(("CMakeLists\\.txt\\'" . cmake-mode)) |
3488f4f3a2b5
Add rainbow-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
21
diff
changeset
|
206 '(("\\.cmake\\'" . cmake-mode)) |
3488f4f3a2b5
Add rainbow-mode
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
21
diff
changeset
|
207 auto-mode-alist)) |
0 | 208 |
209 (defun set-tab-width (width) | |
210 (interactive "nSet tab width: ") | |
211 (setq tab-width width)) | |
212 | |
213 ;; "Fix" the horrible asn1-mode mess | |
214 (add-hook 'asn1-mode-hook | |
215 (lambda () | |
216 (setq indent-line-function #'indent-relative) | |
217 (setq case-fold-search t))) | |
20
d8cde0480aec
Add django and legalese modes
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
19
diff
changeset
|
218 |