2017-06-03 12:44:50 +02:00
|
|
|
;;; Org mode
|
2014-09-22 17:03:29 +02:00
|
|
|
|
2017-06-16 16:29:52 +02:00
|
|
|
(define-key org-mode-map (kbd "C-c C-a") 'org-agenda)
|
2017-05-15 07:46:20 +02:00
|
|
|
|
2017-06-16 16:29:52 +02:00
|
|
|
(setq
|
|
|
|
;; Move annoying babel folder.
|
|
|
|
org-babel-temporary-directory (concat emacs-cache-folder "babel")
|
|
|
|
;; Disable line splitting on M-RET.
|
|
|
|
org-M-RET-may-split-line '((default))
|
|
|
|
org-insert-heading-respect-content t
|
|
|
|
org-enforce-todo-dependencies t
|
|
|
|
org-deadline-warning-days 7
|
|
|
|
org-agenda-default-appointment-duration 60
|
|
|
|
org-agenda-columns-add-appointments-to-effort-sum t
|
|
|
|
;; Org-mode aligns text.
|
|
|
|
indent-tab-mode nil)
|
2014-09-22 17:03:29 +02:00
|
|
|
|
2017-06-03 12:44:50 +02:00
|
|
|
;;; Agendas.
|
|
|
|
;;; If you want to add other agendas in a local file, use the following code:
|
|
|
|
;; (with-eval-after-load "org"
|
|
|
|
;; (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
|
|
|
|
2017-06-03 12:44:50 +02:00
|
|
|
;;; Set PDF association in Org-mode (was Evince by default).
|
2017-06-16 16:29:52 +02:00
|
|
|
(require 'tool-pdf)
|
|
|
|
(setcdr (assoc "\\.pdf\\'" org-file-apps)
|
|
|
|
(concat pdf-viewer " " (mapconcat 'identity pdf-viewer-args " ")))
|
2014-02-12 18:31:00 +01:00
|
|
|
|
2017-06-16 16:29:52 +02:00
|
|
|
;;; Hooks.
|
|
|
|
(dolist (fun '(turn-off-linum turn-off-indent-tabs turn-off-auto-fill))
|
|
|
|
(add-hook 'org-mode-hook fun))
|
2014-02-13 16:30:05 +01:00
|
|
|
|
2014-02-12 18:31:00 +01:00
|
|
|
(provide 'mode-org)
|