X-Git-Url: https://git.donarmstrong.com/?p=home-base.git;a=blobdiff_plain;f=.emacs;h=9fb542c3e1142a0a8c78f1fe64616478fa8865fb;hp=abf076154e436a72d4540a6c6eef921f2a77cb78;hb=edb409858b1422f40c61940f219721fb8c7b97b8;hpb=2b5ef98465df8228456af2906bd44d8f2eaabaa8 diff --git a/.emacs b/.emacs index abf0761..9fb542c 100644 --- a/.emacs +++ b/.emacs @@ -25,7 +25,7 @@ '(log-edit-keep-buffer t) '(mail-user-agent (quote sendmail-user-agent)) '(mutt-alias-file-list (quote ("~/.mutt/aliases" "~/.mail_aliases"))) - '(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"))) + '(org-agenda-files (quote ("~/projects/debbugs/notes.org" "~/projects/notes/notes.org" "~/projects/origins_of_life/paper/figure_list.org" "~/projects/origins_of_life/ool.org" "~/projects/sysadmin/sndservers/sndservers.org" "~/projects/chaim/chaim.org" "~/projects/fh/fh.org" "~/projects/notes/library_books.org"))) '(post-email-address "don@donarmstrong.com") '(post-kill-quoted-sig nil) '(post-mail-message "mutt\\(ng\\|\\)-[a-z0-9]+-[0-9]+-.*") @@ -43,7 +43,9 @@ '(sentence-end-double-space nil) '(show-paren-mode t) '(tool-bar-mode nil nil (tool-bar)) - '(user-mail-address "don@donarmstrong.com")) + '(user-mail-address "don@donarmstrong.com") + '(vc-delete-logbuf-window nil) + '(vc-follow-symlinks t)) (fset 'perl-mode 'cperl-mode) ;;(load-file "cperl-mode.el") (add-to-list 'load-path '"~/lib/emacs_el/") @@ -64,6 +66,8 @@ ;;(require 'fixme) (require 'google-weather) (require 'org-google-weather) +(setq org-google-weather-format "%i %c, [%l,%h] %s %C") + (global-set-key "\C-xp" 'server-edit) @@ -84,6 +88,9 @@ (add-to-list 'auto-mode-alist '("mutt-[a-z0-9]+-[0-9]+-" . post-mode)) (add-to-list 'auto-mode-alist '("muttrc" . muttrc-mode)) +(add-to-list 'auto-mode-alist '("\\.mdwn$" . markdown-mode)) + + (global-unset-key "\M-g") (global-set-key "\M-g" 'goto-line) @@ -161,6 +168,8 @@ (font-latex-match-reference-make) (add-to-list 'font-latex-match-function-keywords "DLA") (add-to-list 'font-latex-match-function-keywords "RZ") +(add-to-list 'font-latex-match-function-keywords "OM") +(add-to-list 'font-latex-match-function-keywords "DL") (add-to-list 'font-latex-match-function-keywords "fixme") (add-to-list 'font-latex-match-function-keywords "acs") (add-to-list 'font-latex-match-function-keywords "acsp") @@ -274,7 +283,31 @@ (add-hook 'c-mode-common-hook 'flyspell-prog-mode) (add-hook 'cperl-mode-hook 'flyspell-prog-mode) (add-hook 'tcl-mode-hook 'flyspell-prog-mode) +(add-hook 'ess-mode-hook 'flyspell-prog-mode) (defun turn-on-flyspell () "Force flyspell-mode on using a positive arg. For use in hooks." (interactive) - (flyspell-mode 1)) \ No newline at end of file + (flyspell-mode 1)) + +;;; outlining support for ess modes +(add-hook 'ess-mode-hook + '(lambda () + (outline-minor-mode) + (setq outline-regexp "\\(^#\\{4,5\\} \\)\\|\\(^[a-zA-Z0-9_\.]+ ?<- ?function(.*{\\)") + (defun outline-level + (lambda () (interactive) (cond ((looking-at "^##### ") 1)((looking-at "^#### ") 2)((looking-at "^[a-zA-Z0-9_\.]+ ?<- ?function(.*{") 3) (t 1000))) + ))) + +(defun my-org-mode-setup () + (when (and (buffer-file-name) + (file-exists-p (buffer-file-name))) + (load-library "reftex") + (and (buffer-file-name) + (file-exists-p (buffer-file-name)) + (reftex-parse-all)) + (reftex-set-cite-format + '((?b . "[[bib::%l]]") + (?n . "[[note::%l]]")))) + (define-key org-mode-map "\C-c\C-g" 'reftex-citation) +) +(add-hook 'org-mode-hook 'my-org-mode-setup)