2014-02-12 18:31:00 +01:00
|
|
|
;; Org mode config.
|
2014-09-22 17:03:29 +02:00
|
|
|
|
2014-02-12 18:31:00 +01:00
|
|
|
;; Move annoying babel folder. This move does not seem to work properly.
|
|
|
|
(setq org-babel-temporary-directory (concat emacs-cache-folder "babel"))
|
|
|
|
;; Disable line splitting on M-RET
|
|
|
|
(setq org-M-RET-may-split-line '((default)))
|
|
|
|
|
2014-09-22 17:03:29 +02:00
|
|
|
(setq org-deadline-warning-days 7)
|
|
|
|
(setq org-agenda-default-appointment-duration 60)
|
|
|
|
(setq org-agenda-columns-add-appointments-to-effort-sum t)
|
|
|
|
|
2014-09-23 09:36:39 +02:00
|
|
|
;; Agendas.
|
|
|
|
;; If you want to add other agendas in a local file, use the following code:
|
|
|
|
; (eval-after-load "org"
|
|
|
|
; '(progn
|
|
|
|
; (add-to-list 'org-agenda-files "/path/to/agenda.org")))
|
2016-10-12 09:43:26 +02:00
|
|
|
(add-to-list 'org-agenda-files "~/personal/todo/todo.org")
|
2014-09-23 09:36:39 +02:00
|
|
|
|
2014-02-13 17:42:13 +01:00
|
|
|
(setq org-enforce-todo-dependencies t)
|
2014-02-12 18:31:00 +01:00
|
|
|
;; Set PDF association in Org-mode (was Evince by default).
|
|
|
|
(eval-after-load "org"
|
|
|
|
'(progn
|
2014-10-31 13:06:03 +01:00
|
|
|
(setq indent-tab-mode nil) ; Org-mode aligns text.
|
2014-03-10 11:26:28 +01:00
|
|
|
(require 'tool-pdf)
|
2014-02-12 18:31:00 +01:00
|
|
|
;; Change .pdf association directly within the alist
|
2014-03-10 11:26:28 +01:00
|
|
|
(setcdr (assoc "\\.pdf\\'" org-file-apps)
|
|
|
|
(concat pdf-viewer " " (mapconcat 'identity pdf-viewer-args " ")))))
|
2014-02-12 18:31:00 +01:00
|
|
|
|
2015-05-03 08:55:08 +02:00
|
|
|
(add-hook-and-eval
|
2014-02-13 16:30:05 +01:00
|
|
|
'org-mode-hook
|
|
|
|
(lambda ()
|
2014-11-13 11:47:28 +01:00
|
|
|
(setq indent-tabs-mode nil)
|
2014-09-22 17:03:29 +02:00
|
|
|
(local-set-key (kbd "C-c C-a") 'org-agenda)
|
2014-03-10 11:26:28 +01:00
|
|
|
(auto-fill-mode -1)))
|
2014-02-13 16:30:05 +01:00
|
|
|
|
2014-02-12 18:31:00 +01:00
|
|
|
(provide 'mode-org)
|