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 '(bibtex-user-optional-fields (quote (("annote" "Personal annotation (ignored)") ("abstract" "") ("pmid" "") ("doi" ""))))
7 '(calendar-latitude [33 57 north])
8 '(calendar-longitude [117 24 west])
10 '(confirm-kill-emacs (quote y-or-n-p))
11 '(cperl-lazy-help-time nil)
12 '(debian-changelog-mailing-address "don@debian.org")
14 '(display-time-24hr-format t)
15 '(display-time-day-and-date t)
16 '(display-time-mode t)
17 '(font-latex-fontify-script nil)
18 '(font-latex-fontify-sectioning (quote color))
19 '(font-latex-script-display (quote (nil)))
20 '(global-auto-revert-mode t)
21 '(global-font-lock-mode t nil (font-lock))
22 '(global-set-key "\347" t)
24 '(iswitchb-prompt-newbuffer nil)
25 '(log-edit-keep-buffer t)
26 '(mail-user-agent (quote sendmail-user-agent))
27 '(mutt-alias-file-list (quote ("~/.mutt/aliases" "~/.mail_aliases")))
28 '(org-agenda-files (quote ("~/projects/debbugs/notes.org" "~/projects/notes/notes.org" "~/projects/origins_of_life/paper/figure_list.org" "~/projects/origins_of_life/notes.org" "~/projects/sysadmin/sndservers/notes.org" "~/projects/chaim/notes.org" "~/projects/fh/notes.org")))
29 '(post-email-address "don@donarmstrong.com")
30 '(post-kill-quoted-sig nil)
31 '(post-mail-message "mutt\\(ng\\|\\)-[a-z0-9]+-[0-9]+-.*")
32 '(post-uses-fill-mode nil)
33 '(ps-footer-font-size (quote (8 . 10)))
34 '(ps-header-font-size (quote (8 . 10)))
35 '(ps-header-title-font-size (quote (10 . 10)))
36 '(ps-line-number-color "blue")
38 '(ps-print-footer-frame nil)
39 '(ps-print-only-one-header t)
40 '(safe-local-variable-values (quote ((auto-save-default) (make-backup-files))))
41 '(sentence-end "[.?!][]\"')]*\\($\\| \\| \\)[
43 '(sentence-end-double-space nil)
45 '(tool-bar-mode nil nil (tool-bar))
46 '(user-mail-address "don@donarmstrong.com")
47 '(vc-delete-logbuf-window nil)
48 '(vc-follow-symlinks t))
49 (fset 'perl-mode 'cperl-mode)
50 ;;(load-file "cperl-mode.el")
51 (add-to-list 'load-path '"~/lib/emacs_el/")
52 (add-to-list 'load-path '"~/lib/emacs_el/tiny-tools/tiny")
53 (add-to-list 'load-path '"~/lib/emacs_el/tiny-tools/other")
54 ;;(add-to-list 'Tex-style-path '"~/lib/emacs_el/auctex/")
57 (require 'tinyprocmail)
63 ;;(require 'emacs-wiki)
67 (require 'google-weather)
68 (require 'org-google-weather)
70 (global-set-key "\C-xp" 'server-edit)
72 (setq auto-mode-alist (cons '("\.wml$" .
73 (lambda () (html-mode) (auto-fill-mode)))
76 ;; Use c-mode for perl .xs files
77 (add-to-list 'auto-mode-alist '("\\.xs\\'" . c-mode))
78 (add-to-list 'auto-mode-alist '("\\.\\([pP][Llm]\\|al\\)\\'" . cperl-mode))
79 (add-to-list 'interpreter-mode-alist '("perl" . cperl-mode))
80 (add-to-list 'interpreter-mode-alist '("perl5" . cperl-mode))
81 (add-to-list 'interpreter-mode-alist '("miniperl" . cperl-mode))
83 (add-to-list 'auto-mode-alist '("muttng-[a-z0-9]+-[0-9]+-" . post-mode))
84 (add-to-list 'auto-mode-alist '("muttngrc" . muttrc-mode))
86 (add-to-list 'auto-mode-alist '("mutt-[a-z0-9]+-[0-9]+-" . post-mode))
87 (add-to-list 'auto-mode-alist '("muttrc" . muttrc-mode))
90 (global-unset-key "\M-g")
91 (global-set-key "\M-g" 'goto-line)
93 ;;(autoload 'perl-mode "cperl-mode"
94 ;; "alternate mode for editing Perl programs" t)
96 ;; self-insert-command hack.
97 ;; Without this, "if<SP>" expands to
100 ;; which really should be,
105 ;; cperl-auto-newline t
106 ;; cperl-auto-newline-after-colon t
107 cperl-continued-statement-offset 4
108 cperl-brace-offset -4
109 cperl-label-offset -4
110 cperl-highlight-variables-indiscriminately t
111 cperl-electric-lbrace-space nil
113 (add-hook 'cperl-mode-hook (lambda () (cperl-set-style "PerlStyle")))
117 ;(load-library "php-mode")
119 (setq c-indent-level 8)
120 (setq c-brace-imaginary-offset 0)
121 (setq c-brace-offset -8)
122 (setq c-argdecl-indent 8)
123 (setq c-label-offset -8)
124 (setq c-continued-statement-offset 8)
125 (setq indent-tabs-mode nil)
129 ;; (autoload 'php-mode "php-mode" "PHP editing mode" t)
130 ;; (add-to-list 'auto-mode-alist '("\\.php3?\\'" . php-mode))
131 ;; (add-to-list 'auto-mode-alist '("\\.phtml?\\'" . php-mode))
132 ;; (add-to-list 'auto-mode-alist '("\\.php?\\'" . php-mode))
133 ;; (add-to-list 'auto-mode-alist '("\\.php4?\\'" . php-mode))
135 ;; REFTEX (much enhanced management of cross-ref, labels, etc)
136 ;; http://www.strw.leidenuniv.nl/~dominik/Tools/reftex/
137 (autoload 'reftex-mode "reftex" "RefTeX Minor Mode" t)
138 (autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil)
139 (autoload 'reftex-citation "reftex-cite" "Make citation" nil)
140 (autoload 'reftex-index-phrase-mode "reftex-index" "Phrase mode" t)
141 (add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
142 (add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode
143 (add-hook 'LaTeX-mode-hook 'outline-minor-mode) ; with AUCTeX LaTeX mode
144 (add-hook 'latex-mode-hook 'outline-minor-mode) ; with Emacs latex mode
146 ;; (TeX-add-style-hook
151 ;; (custom-set-variables
152 ;; '(font-latex-user-keyword-classes
155 ;; font-lock-function-name-face 2 (command 1 t))))
158 (require 'font-latex)
159 (add-to-list 'font-latex-match-reference-keywords "fref")
160 (add-to-list 'font-latex-match-reference-keywords "Fref")
161 (add-to-list 'font-latex-match-reference-keywords "citep")
162 (add-to-list 'font-latex-match-reference-keywords "citet")
163 (font-latex-match-reference-make)
164 (add-to-list 'font-latex-match-function-keywords "DLA")
165 (add-to-list 'font-latex-match-function-keywords "RZ")
166 (add-to-list 'font-latex-match-function-keywords "OM")
167 (add-to-list 'font-latex-match-function-keywords "DL")
168 (add-to-list 'font-latex-match-function-keywords "fixme")
169 (add-to-list 'font-latex-match-function-keywords "acs")
170 (add-to-list 'font-latex-match-function-keywords "acsp")
171 (add-to-list 'font-latex-match-function-keywords "ac")
172 (add-to-list 'font-latex-match-function-keywords "acp")
173 (add-to-list 'font-latex-match-function-keywords "acl")
174 (add-to-list 'font-latex-match-function-keywords "aclp")
175 (add-to-list 'font-latex-match-function-keywords "acsu")
176 (add-to-list 'font-latex-match-function-keywords "aclu")
177 (add-to-list 'font-latex-match-function-keywords "acused")
178 (font-latex-match-function-make)
179 (setq TeX-parse-self t)
180 (setq TeX-auto-save t)
181 (setq-default TeX-master nil)
183 (defun insert-date ()
184 "Insert date at point."
186 (insert (format-time-string "%A, %B %e, %Y %k:%M:%S %Z")))
187 (global-set-key "\C-[d" 'insert-date)
189 (defun unfill-paragraph (arg)
190 "Pull this whole paragraph up onto one line."
192 (let ((fill-column 10000))
193 (fill-paragraph arg))
196 ;(iswitchb-default-keybindings)
198 (column-number-mode t)
199 (setq reftex-plug-into-AUCTeX t)
203 (require 'mode-compile)
205 (setq reftex-default-bibliography
208 (defadvice server-process-filter (after post-mode-message first activate)
209 "If the buffer is in post mode, overwrite the server-edit
210 message with a post-save-current-buffer-and-exit message."
211 (if (eq major-mode 'post-mode)
213 (substitute-command-keys "Type \\[describe-mode] for help composing; \\[post-save-current-buffer-and-exit] when done."))))
214 ; This is also needed to see the magic message. Set to a higher
215 ; number if you have a faster computer or read slower than me.
216 '(font-lock-verbose 1000)
217 ;(setq server-temp-file-regexp "mutt\(-\|ng-\)")
218 ; (add-hook 'server-switch-hook
219 ; (function (lambda()
220 ; (cond ((string-match "Post" mode-name)
222 ; set-buffer-file-coding-system 'utf-8
226 (add-hook 'post-mode-hook
230 (fset 'insert-function-documentation
231 [?\C-x ?i home ?\C-k ?/ ?h ?o ?m ?e ?/ ?d ?o ?n ?/ ?l ?i ?b ?/ ?t ?e ?m ?p ?l ?a ?t ?e ?s ?/ ?p ?e ?r ?l ?_ ?f ?u ?n ?c ?t ?i ?o ?n ?_ ?d ?o ?c ?u ?m ?e ?n ?t ?a ?t ?i ?o ?n return])
232 (global-set-key "\M-f" 'insert-function-documentation)
234 (eval-after-load "lilypond-mode"
236 (load-library "lyqi-mode")
237 (define-key LilyPond-mode-map "\C-cq" 'lyqi-mode)))
239 (autoload 'spamassassin-mode "spamassassin-mode" nil t)
241 (desktop-load-default)
245 ;; custom-set-faces was added by Custom.
246 ;; If you edit it by hand, you could mess it up, so be careful.
247 ;; Your init file should contain only one such instance.
248 ;; If there is more than one, they won't work right.
249 '(menu ((((type x-toolkit)) (:background "black" :foreground "grey90")))))
251 (defun ess-change-directory (path)
252 "Set the current working directory to PATH for both *R* and Emacs."
253 (interactive "DDirectory to change to: ")
255 (when (file-exists-p path)
256 (ess-command (concat "setwd(\"" path "\")\n"))
257 ;; use file-name-as-directory to ensure it has trailing /
258 (setq default-directory (file-name-as-directory path))))
260 (put 'upcase-region 'disabled nil)
262 (put 'downcase-region 'disabled nil)
264 ;; The following lines are always needed. Choose your own keys.
265 (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
266 (add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when global-font-lock-mode is on
267 (global-set-key "\C-cl" 'org-store-link)
268 (global-set-key "\C-ca" 'org-agenda)
269 (global-set-key "\C-cb" 'org-iswitchb)
270 (setq org-log-done 'time)
271 (setq org-log-done 'note)
272 (setq org-agenda-ndays 5)
275 (autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t)
276 (add-hook 'message-mode-hook 'turn-on-flyspell)
277 (add-hook 'text-mode-hook 'turn-on-flyspell)
278 (add-hook 'c-mode-common-hook 'flyspell-prog-mode)
279 (add-hook 'cperl-mode-hook 'flyspell-prog-mode)
280 (add-hook 'tcl-mode-hook 'flyspell-prog-mode)
281 (add-hook 'ess-mode-hook 'flyspell-prog-mode)
282 (defun turn-on-flyspell ()
283 "Force flyspell-mode on using a positive arg. For use in hooks."
287 ;;; outlining support for ess modes
288 (add-hook 'ess-mode-hook
291 (setq outline-regexp "\\(^#\\{4,5\\} \\)\\|\\(^[a-zA-Z0-9_\.]+ ?<- ?function(.*{\\)")
293 (lambda () (interactive) (cond ((looking-at "^##### ") 1)((looking-at "^#### ") 2)((looking-at "^[a-zA-Z0-9_\.]+ ?<- ?function(.*{") 3) (t 1000)))