135 lines
4.9 KiB
EmacsLisp
135 lines
4.9 KiB
EmacsLisp
(setq org-directory "~/data/org")
|
|
(setq org-agenda-files "~/data/org")
|
|
|
|
(setq org-catch-invisible-edits t)
|
|
|
|
;; (setq org-hide-emphasis-markers t)
|
|
;; (setq org-src-fontify-natively t
|
|
;; org-src-tab-acts-natively t)
|
|
(setq org-startup-indented t)
|
|
;;(setq org-hide-leading-stars t)
|
|
|
|
;; (setq org-export-with-smart-quotes t
|
|
;; org-export-backends '(beamer html md))
|
|
|
|
(setq org-tag-alist (quote (("irdeto" . ?i)
|
|
("nagra" . ?n)
|
|
("security" . ?s)
|
|
("admin" . ?a))))
|
|
|
|
;; (setq org-tag-alist (quote (("article" . ?a) ;; temporary
|
|
;; ("books" . ?b)
|
|
;; ("work" . ?w)
|
|
;; ("noexport" . ?x)
|
|
;; ("cash" . ?$))))
|
|
|
|
(setq org-todo-keywords
|
|
'((sequence "TODO(t)" "IN-PROGRESS(i)" "|" "DONE(d!)")
|
|
(sequence "WAITING(w@/!)" "|" "CANCELED(c@)")
|
|
(sequence "IN-REVIEW(r)"))
|
|
|
|
(setq org-todo-keyword-faces
|
|
(quote (("TODO" :foreground "red" :weight bold)
|
|
("NEXT" :foreground "blue" :weight bold)
|
|
("DONE" :foreground "forest green" :weight bold)
|
|
("WAITING" :foreground "orange" :weight bold)
|
|
("HOLD" :foreground "magenta" :weight bold)
|
|
("CANCELLED" :foreground "forest green" :weight bold)
|
|
("MEETING" :foreground "forest green" :weight bold)
|
|
("PHONE" :foreground "forest green" :weight bold))))
|
|
|
|
;; (setq org-use-fast-todo-selection t)
|
|
;; (setq org-treat-S-cursor-todo-selection-as-state-change nil)
|
|
|
|
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\)$" . org-mode))
|
|
|
|
;; (setq org-agenda-files (list
|
|
;; "~/data/org/notes.org"
|
|
;; "~/data/org/work.org"))
|
|
;; (setq org-default-notes-file "~/data/org/refile.org")
|
|
|
|
;; (setq org-deadline-warning-days 7
|
|
;; org-agenda-span 'fortnight
|
|
;; org-agenda-skip-scheduled-if-deadline-is-shown t)
|
|
|
|
;; (setq org-deadline-warning-days 7
|
|
;; org-agenda-span 'fortnight)
|
|
|
|
(setq org-capture-templates
|
|
'(
|
|
("n"
|
|
"Note"
|
|
entry
|
|
(file+headline "~/data/org/notes.org" "Notes")
|
|
"* %? %(org-set-tags) :note:\n:PROPERTIES:\n:Created: %U\n:Linked: %A\n:END:\n%i" ; template
|
|
:prepend t ; properties
|
|
:empty-lines 1 ; properties
|
|
:created t ; properties
|
|
:kill-buffer t ; properties
|
|
;; For notes or something regarding more work
|
|
)
|
|
;; (
|
|
;; "w" ; key
|
|
;; "Work" ; name
|
|
;; entry ; type
|
|
;; (file+headline "~/data/org/work.org" "Work") ; target
|
|
;; "* TODO %^{Todo} %(org-set-tags) :work:\n:PROPERTIES:\n:Created: %U\n:END:\n%i\n%?" ; template
|
|
;; :prepend t ; properties
|
|
;; :empty-lines 1 ; properties
|
|
;; :created t ; properties
|
|
;; :kill-buffer t ; properties
|
|
;; )
|
|
;; )
|
|
))
|
|
|
|
;; (setq org-refile-targets '((nil :maxlevel . 9)
|
|
;; (org-agenda-files :maxlevel . 9)))
|
|
;; (setq org-refile-use-outline-path t
|
|
;; org-outline-path-complete-in-steps nil)
|
|
|
|
;; (use-package org
|
|
;; :ensure org
|
|
;; :bind* (("M-m o a" . org-agenda)
|
|
;; ("M-m o c" . org-capture)
|
|
;; ("M-m o i" . org-insert-link)
|
|
;; ("M-m o s" . org-store-link)
|
|
;; ("M-m o S" . org-list-make-subtree)
|
|
;; ("M-m o A" . org-archive-subtree)
|
|
;; ("M-m o g" . org-goto)
|
|
;; ("M-m o l" . org-toggle-latex-fragment)
|
|
;; ("M-m o L" . org-toggle-link-display)
|
|
;; ("M-m o I" . org-toggle-inline-images)
|
|
;; ("M-m o k" . org-cut-subtree)
|
|
;; ("M-m o V" . org-reveal)
|
|
;; ("M-m o R" . org-refile)
|
|
;; ("M-m o y" . org-copy-subtree)
|
|
;; ("M-m o h" . org-toggle-heading)
|
|
;; ("M-m o H" . org-insert-heading-respect-content)
|
|
;; ("M-m o e" . org-export-dispatch)
|
|
;; ("M-m o u" . org-update-dblock)
|
|
;; ("M-m o U" . org-update-all-dblocks)
|
|
;; ("M-m o O" . org-footnote)
|
|
;; ("M-m o ]" . org-narrow-to-subtree)
|
|
;; ("M-m o [" . widen)
|
|
;; ("M-m o N" . org-add-note)
|
|
;; ("M-m o E" . org-set-effort)
|
|
;; ("M-m o B" . org-table-blank-field)
|
|
;; ("M-m o <" . org-date-from-calendar)
|
|
;; ("M-m o >" . org-goto-calendar)
|
|
;; ("M-m o d" . org-todo)
|
|
;; ("M-m o t" . org-set-tags-command)
|
|
;; ("M-m o w" . org-edit-special)
|
|
;; ("M-m o q" . org-edit-src-exit)
|
|
;; ("M-m o z" . clone-indirect-buffer-other-window)
|
|
;; ("M-m a s" . org-mark-subtree)
|
|
;; ("M-m o RET" . org-open-at-point))
|
|
;; :config
|
|
;; ;; More of those nice template expansion
|
|
;; (add-to-list 'org-structure-template-alist '("A" "#+DATE: ?")))
|
|
|
|
;; ;; (which-key-add-key-based-replacements
|
|
;; ;; "M-m o" "org mode prefix")
|
|
|
|
;; (global-set-key (kbd "<f12>") 'org-agenda)
|
|
;; (global-set-key (kbd "C-c c") 'org-capture)
|