(setq org-agenda-files
(quote ("~/projects/org-notes/debbugs.org"
"~/projects/org-notes/notes.org"
+ "~/projects/org-notes/holidays.org"
"~/projects/org-notes/refile.org"
"~/projects/org-notes/diary.org"
"~/projects/org-notes/ool.org"
(setq org-default-notes-file "~/projects/org-notes/notes.org")
(setq org-id-link-to-org-use-id t)
(setq org-capture-templates ;; mail-specific note template, identified by "m"
- '(("m" "Mail" entry (file+headline "~/projects/org-notes/refile.org" "Mail")
- "* %?\n\n Source: %u, %c\n %i")
+ '(("m" "Mail" entry (file "~/projects/org-notes/refile.org")
+ "* %?\n\n Source: %u, [[%:link][%:description]]\n %:initial")
("t" "todo" entry (file "~/projects/org-notes/refile.org")
"* TODO %?\n :PROPERTIES:\n :END:\n :LOGBOOK:\n :END:\n%U\n%a\n" :clock-in t :clock-resume t)
("r" "respond" entry (file "~/projects/org-notes/refile.org")
(setq-default org-mobile-directory "/linnode.donarmstrong.com:/sites/dav.donarmstrong.com/root/org/")
-(when (string= system-name "linnode.donarmstrong.com")
+(when (string= system-name "linnode")
(setq-default org-mobile-directory "/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")
;; Originally taken from Bruno Tavernier: http://thread.gmane.org/gmane.emacs.orgmode/31150/focus=31432
;; but adapted to use latexmk 4.22 or higher.
-(setq org-latex-pdf-process '("latexmk -pdflatex=xelatex -bibtex -use-make -pdf %f"))
+(setq org-latex-pdf-process '("latexmk -f -pdflatex=xelatex -bibtex -use-make -pdf %f"))
;; Default packages included in /every/ tex file, latex, pdflatex or xelatex
(setq org-latex-default-packages-alist
- '(("" "amsmath" t)))
+ '(("" "amsmath" t)
+ ("" "unicode-math" t)
+ ))
(setq org-latex-packages-alist
'(("" "graphicx" t)
("" "fontspec" t)
(add-hook 'org-babel-after-execute-hook 'my/fix-inline-images)
+;; use xelatex to preview with imagemagick
+(add-to-list 'org-preview-latex-process-alist
+ '(xelateximagemagick
+ :programs ("xelatex" "convert")
+ :description "pdf > png"
+ :message "you need to install xelatex and imagemagick"
+ :use-xcolor t
+ :image-input-type "pdf"
+ :image-output-type "png"
+ :image-size-adjust (1.0 . 1.0)
+ :latex-compiler ("xelatex -interaction nonstopmode -output-directory %o %f")
+ :image-converter ("convert -density %D -trim -antialias %f -quality 100 %O"))
+ )
+;; use xelatex by default
+(setq org-preview-latex-default-process 'xelateximagemagick)
+
; from http://orgmode.org/Changes.html
(defun my/org-repair-property-drawers ()
"Fix properties drawers in current buffer.
(min (1+ (match-end 0)) end)))
(unless (bolp) (insert "\n"))))))))))))
+; from https://emacs.stackexchange.com/questions/909/how-can-i-have-an-agenda-timeline-view-of-multiple-files
+(defun org-agenda-timeline-all (&optional arg)
+ (interactive "P")
+ (with-temp-buffer
+ (dolist (org-agenda-file org-agenda-files)
+ (insert-file-contents org-agenda-file nil)
+ (end-of-buffer)
+ (newline))
+ (write-file "/tmp/timeline.org")
+ (org-agenda arg "L")))
+(define-key org-mode-map (kbd "C-c t") 'org-agenda-timeline-all)
+
(provide 'org-mode-configuration)