]> git.donarmstrong.com Git - emacs.git/blobdiff - .emacs
move out org mode agenda files
[emacs.git] / .emacs
diff --git a/.emacs b/.emacs
index 0c1310d83148fa5d0cb3d4d3d4b89ec7d3d61dab..6ff129a5be7e8c1e0606ad47256606ca2deb91dc 100644 (file)
--- a/.emacs
+++ b/.emacs
@@ -27,7 +27,6 @@
  '(markdown-enable-math t)
  '(markdown-follow-wiki-link-on-enter nil)
  '(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/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]+-.*")
 (fset 'perl-mode 'cperl-mode)
 ;;(load-file "cperl-mode.el")
 (add-to-list 'load-path '"~/lib/emacs_el/")
-(add-to-list 'load-path '"~/lib/emacs_el/tiny-tools/tiny")
-(add-to-list 'load-path '"~/lib/emacs_el/tiny-tools/other")
+;; this is the tiny-tools module from https://github.com/jaalto/project--emacs-tiny-tools.git
+(add-to-list 'load-path '"~/lib/emacs_el/tiny-tools/lisp/tiny")
+(add-to-list 'load-path '"~/lib/emacs_el/tiny-tools/lisp/other")
 ;;(add-to-list 'Tex-style-path '"~/lib/emacs_el/auctex/")
 
-(require 'tiny-setup)
+; org mode agenda files
+(setq org-agenda-files (quote ("~/projects/debbugs/notes.org"
+                               "~/projects/notes/notes.org"
+                               "~/projects/origins_of_life/ool.org"
+                               "~/projects/sysadmin/sndservers/sndservers.org"
+                               "~/projects/chaim/chaim.org"
+                               "~/projects/fh/fh.org")))
+
+(setq tinyprocmail--procmail-version "v3.22")
+(add-hook 'tinyprocmail--load-hook 'tinyprocmail-install)
 (require 'tinyprocmail)
 
 (require 'tex-site)
 ;;(require 'fixme)
 (require 'google-weather)
 (require 'org-google-weather)
-(setq org-google-weather-format "%i %c, [%l,%h] %s %C")
+(setq-default org-google-weather-format "%i %c, [%l,%h] %s %C")
 
 
 (global-set-key "\C-xp" 'server-edit)
 
-(setq auto-mode-alist (cons '("\.wml$" . 
+(setq-default auto-mode-alist (cons '("\.wml$" . 
                              (lambda () (html-mode) (auto-fill-mode)))
                            auto-mode-alist))
 
 ;;   which really should be,
 ;;   if (-!-) {
 ;;   }
-(setq cperl-hairy t
+(setq-default cperl-hairy t
       cperl-indent-level 4
 ;;      cperl-auto-newline t
 ;;      cperl-auto-newline-after-colon t
 
 ;(load-library "php-mode")
 
-(setq c-indent-level 8)
-(setq c-brace-imaginary-offset 0)
-(setq c-brace-offset -8)
-(setq c-argdecl-indent 8)
-(setq c-label-offset -8)
-(setq c-continued-statement-offset 8)
-(setq indent-tabs-mode nil)
-(setq tab-width 8)
+(setq-default c-indent-level 8)
+(setq-default c-brace-imaginary-offset 0)
+(setq-default c-brace-offset -8)
+(setq-default c-argdecl-indent 8)
+(setq-default c-label-offset -8)
+(setq-default c-continued-statement-offset 8)
+; tabs are annoying
+(setq-default indent-tabs-mode nil)
+(setq-default tab-width 8)
 
 
 ;; (autoload 'php-mode "php-mode" "PHP editing mode" t)
 (add-to-list 'font-latex-match-function-keywords "aclu")
 (add-to-list 'font-latex-match-function-keywords "acused")
 (font-latex-match-function-make)
-(setq TeX-parse-self t)
-(setq TeX-auto-save t)
+(setq-default TeX-parse-self t)
+(setq-default TeX-auto-save t)
 (setq-default TeX-master nil)
 
 (defun insert-date ()
 ;(iswitchb-default-keybindings)
 
 (column-number-mode t)
-(setq reftex-plug-into-AUCTeX t)
+(setq-default reftex-plug-into-AUCTeX t)
 
 (server-start)
 
 (require 'mode-compile)
 
-(setq reftex-default-bibliography
+(setq-default reftex-default-bibliography
       '("references.bib"))
 
 (defadvice server-process-filter (after post-mode-message first activate)
                                        ; This is also needed to see the magic message.  Set to a higher
                                        ; number if you have a faster computer or read slower than me.
 '(font-lock-verbose 1000)
-;(setq server-temp-file-regexp "mutt\(-\|ng-\)")
+;(setq-default server-temp-file-regexp "mutt\(-\|ng-\)")
 ; (add-hook 'server-switch-hook 
 ;        (function (lambda()
 ;                    (cond ((string-match "Post" mode-name)
 (global-set-key "\C-cl" 'org-store-link)
 (global-set-key "\C-ca" 'org-agenda)
 (global-set-key "\C-cb" 'org-iswitchb)
-(setq org-log-done 'time)
-(setq org-agenda-ndays 5)
+(setq-default org-log-done 'time)
+(setq-default org-agenda-ndays 5)
 
 
 (autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t)
 )
 (add-hook 'org-mode-hook 'my-org-mode-setup)
 
-(setq org-mobile-directory "/rzlab.ucr.edu:/sites/dav.donarmstrong.com/root/org/")
-(setq org-directory "/home/don/org-mode/")
-(setq org-mobile-inbox-for-pull "/home/don/org-mode/from-mobile.org")
+(setq-default org-mobile-directory "/rzlab.ucr.edu:/sites/dav.donarmstrong.com/root/org/")
+(setq-default org-directory "/home/don/org-mode/")
+(setq-default org-mobile-inbox-for-pull "/home/don/org-mode/from-mobile.org")
 
 ; debian stuff
-(setq debian-changelog-mailing-address "don@debian.org")
-(setq debian-changelog-full-name "Don Armstrong")
+(setq-default debian-changelog-mailing-address "don@debian.org")
+(setq-default debian-changelog-full-name "Don Armstrong")
+
+; use iedit
+(require 'iedit)
+(define-key global-map (kbd "C-;") 'iedit-mode)
+
+(require 'multi-web-mode)
+(setq mweb-default-major-mode 'html-mode)
+(setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>")
+                  (js-mode "<script +\\(type=\"text/javascript\"\\|language=\"javascript\"\\)[^>]*>" "</script>")
+                  (css-mode "<style +type=\"text/css\"[^>]*>" "</style>")))
+(setq mweb-filename-extensions '("php" "htm" "html" "ctp" "phtml" "php4" "php5"))
+(multi-web-global-mode 1)