Compare commits

...

2 Commits

Author SHA1 Message Date
46581c8867
Fix some indentation 2022-12-19 10:19:06 +01:00
260840aa0a
Move Org mode link abbreviations to :init block
This allows to overwrite the default value via customization.
2022-12-19 10:18:15 +01:00

33
init.el
View File

@ -830,11 +830,12 @@
;; Keywords and Tags ;; Keywords and Tags
(setq org-todo-keywords (setq org-todo-keywords
'((sequence "TODO(t)" "CONT(n!)" "REFINE(f!)" "|" "DONE(d@/!)" "CANC(c@/!)" "MRGD(m@/!)") '((sequence "TODO(t)" "CONT(n!)" "REFINE(f!)"
"|" "DONE(d@/!)" "CANC(c@/!)" "MRGD(m@/!)")
(sequence "GOTO(g)" "ATTN(a!)" "|" "DONE(d@/!)") (sequence "GOTO(g)" "ATTN(a!)" "|" "DONE(d@/!)")
(sequence "READ(r)" "CONT(n!)" "|" "DONE(d@/!)") (sequence "READ(r)" "CONT(n!)" "|" "DONE(d@/!)")
(sequence "DELG(e@/!)" "WAIT(w@/!)" "HOLD(h@/!)" (sequence "DELG(e@/!)" "WAIT(w@/!)" "HOLD(h@/!)"
"|" "CANC(c@/!)")) "|" "CANC(c@/!)"))
org-todo-state-tags-triggers org-todo-state-tags-triggers
'(("WAIT" ("HOLD") ("WAIT" . t)) '(("WAIT" ("HOLD") ("WAIT" . t))
@ -903,10 +904,20 @@
org-outline-path-complete-in-steps nil org-outline-path-complete-in-steps nil
org-refile-target-verify-function 'db/verify-refile-target) org-refile-target-verify-function 'db/verify-refile-target)
;; Bable ;; Babel
(setq org-babel-load-languages '((shell . t) (setq org-babel-load-languages '((shell . t)
(emacs-lisp . t)))) (emacs-lisp . t)))
;; Link shortcuts (some taken from the documentation)
(setq org-link-abbrev-alist
'(("wpen" . "https://en.wikipedia.org/wiki/")
("wpde" . "https://de.wikipedia.org/wiki/")
("ddg" . "https://duckduckgo.com/?q=%s")
("omap" . "https://nominatim.openstreetmap.org/search?q=%s&polygon=1")
("github" . "https://github.com/")
("gitlab" . "https://gitlab.com/"))))
:config (progn :config (progn
;; Some hooks from text-mode-hook, Org mode does not seem to run those? ;; Some hooks from text-mode-hook, Org mode does not seem to run those?
@ -943,20 +954,6 @@
;; Link type for RFCs ;; Link type for RFCs
(org-link-set-parameters "rfc" :follow #'db/org-rfc-open) (org-link-set-parameters "rfc" :follow #'db/org-rfc-open)
;; Link shortcuts (some taken from the documentation)
(add-to-list 'org-link-abbrev-alist
'("wpen" . "https://en.wikipedia.org/wiki/"))
(add-to-list 'org-link-abbrev-alist
'("wpde" . "https://de.wikipedia.org/wiki/"))
(add-to-list 'org-link-abbrev-alist
'("ddg" . "https://duckduckgo.com/?q=%s"))
(add-to-list 'org-link-abbrev-alist
'("omap" . "https://nominatim.openstreetmap.org/search?q=%s&polygon=1"))
(add-to-list 'org-link-abbrev-alist
'("github" . "https://github.com/"))
(add-to-list 'org-link-abbrev-alist
'("gitlab" . "https://gitlab.com/"))
;; Some timers ;; Some timers
(unless (memq #'org-clock-save (unless (memq #'org-clock-save