X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.emacs;h=350375cf61d01d4697e385535893b15447f62ae3;hb=92847f2b2a6a083695ebfad994170fab8f7f8d72;hp=65a31cacae7119b9640cf43687c72992ed105d9a;hpb=f0a56ff81b965eea7d78cef833f0fb19e1970329;p=emacs.git diff --git a/.emacs b/.emacs index 65a31ca..350375c 100644 --- a/.emacs +++ b/.emacs @@ -604,6 +604,25 @@ Argument DESCRIPTION MIME description." (setq-default org-directory "/home/don/org-mode/") (setq-default org-mobile-inbox-for-pull "/home/don/org-mode/from-mobile.org") +;; org mode ical export +(setq org-icalendar-timezone "America/Los_Angeles") +(setq org-icalendar-use-scheduled '(todo-start event-if-todo)) +(setq org-icalendar-store-UID t) + +;; org babel support +(org-babel-do-load-languages + 'org-babel-load-languages + '((emacs-lisp . t ) + (R . t) + (latex . t))) +;; org-babel-by-backend +(defmacro org-babel-by-backend (&rest body) + `(case (if (boundp 'backend) + (org-export-backend-name backend) + nil) ,@body)) + + + ;; org latex ;; stolen from http://kieranhealy.org/esk/kjhealy.html (require 'org-latex) @@ -645,6 +664,15 @@ Argument DESCRIPTION MIME description." ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) +(add-to-list 'org-latex-classes + '("letter" + "\\documentclass[11pt]{letter}" + ("\\section{%s}" . "\\section*{%s}") + ("\\subsection{%s}" . "\\subsection*{%s}") + ("\\subsubsection{%s}" . "\\subsubsection*{%s}") + ("\\paragraph{%s}" . "\\paragraph*{%s}") + ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) + ;; Originally taken from Bruno Tavernier: http://thread.gmane.org/gmane.emacs.orgmode/31150/focus=31432 ;; but adapted to use latexmk 4.22 or higher. (defun my-auto-tex-cmd ()