mirror of
https://github.com/fscotto/infra.git
synced 2026-05-31 15:59:56 +00:00
Align Org styling and templates
This commit is contained in:
@@ -12,15 +12,63 @@
|
|||||||
(defvar org-calendar-file (expand-file-name "calendar.org" org-directory)
|
(defvar org-calendar-file (expand-file-name "calendar.org" org-directory)
|
||||||
"Default Org calendar file.")
|
"Default Org calendar file.")
|
||||||
|
|
||||||
|
(defface +org-todo-active
|
||||||
|
'((t (:foreground "#51afef" :weight bold)))
|
||||||
|
"Face for active Org TODO states.")
|
||||||
|
|
||||||
|
(defface +org-todo-project
|
||||||
|
'((t (:foreground "#c678dd" :weight bold)))
|
||||||
|
"Face for project Org TODO states.")
|
||||||
|
|
||||||
|
(defface +org-todo-onhold
|
||||||
|
'((t (:foreground "#ECBE7B" :weight bold)))
|
||||||
|
"Face for waiting Org TODO states.")
|
||||||
|
|
||||||
|
(defface +org-todo-cancel
|
||||||
|
'((t (:foreground "#ff6c6b" :weight bold)))
|
||||||
|
"Face for cancelled Org TODO states.")
|
||||||
|
|
||||||
(use-package org
|
(use-package org
|
||||||
:init
|
:init
|
||||||
(setq org-clock-mode-line-total 'today
|
(setq org-clock-mode-line-total 'today
|
||||||
|
org-fontify-done-headline t
|
||||||
org-fontify-quote-and-verse-blocks t
|
org-fontify-quote-and-verse-blocks t
|
||||||
org-indent-mode t
|
org-indent-mode t
|
||||||
org-agenda-skip-unavailable-files t
|
org-agenda-skip-unavailable-files t
|
||||||
org-return-follows-link t
|
org-return-follows-link t
|
||||||
org-startup-folded 'content
|
org-startup-folded 'content
|
||||||
org-todo-keywords '((sequence "🆕(t)" "▶️(s)" "⏳(w)" "🔎(p)" "|" "✅(d)" "🗑(c)" "👨(g)"))
|
org-todo-keywords
|
||||||
|
'((sequence
|
||||||
|
"TODO(t)"
|
||||||
|
"PROJ(p)"
|
||||||
|
"LOOP(r)"
|
||||||
|
"STRT(s)"
|
||||||
|
"WAIT(w)"
|
||||||
|
"HOLD(h)"
|
||||||
|
"IDEA(i)"
|
||||||
|
"|"
|
||||||
|
"DONE(d)"
|
||||||
|
"KILL(k)")
|
||||||
|
(sequence
|
||||||
|
"[ ](T)"
|
||||||
|
"[-](S)"
|
||||||
|
"[?](W)"
|
||||||
|
"|"
|
||||||
|
"[X](D)")
|
||||||
|
(sequence
|
||||||
|
"|"
|
||||||
|
"OKAY(o)"
|
||||||
|
"YES(y)"
|
||||||
|
"NO(n)"))
|
||||||
|
org-todo-keyword-faces
|
||||||
|
'(("[-]" . +org-todo-active)
|
||||||
|
("STRT" . +org-todo-active)
|
||||||
|
("[?]" . +org-todo-onhold)
|
||||||
|
("WAIT" . +org-todo-onhold)
|
||||||
|
("HOLD" . +org-todo-onhold)
|
||||||
|
("PROJ" . +org-todo-project)
|
||||||
|
("NO" . +org-todo-cancel)
|
||||||
|
("KILL" . +org-todo-cancel))
|
||||||
org-export-backends '(html latex odt md ascii icalendar)
|
org-export-backends '(html latex odt md ascii icalendar)
|
||||||
org-latex-pdf-process '("pdflatex -interaction nonstopmode %f"
|
org-latex-pdf-process '("pdflatex -interaction nonstopmode %f"
|
||||||
"pdflatex -interaction nonstopmode %f")
|
"pdflatex -interaction nonstopmode %f")
|
||||||
@@ -34,7 +82,7 @@
|
|||||||
org-capture-templates
|
org-capture-templates
|
||||||
'(("t" "Task" entry
|
'(("t" "Task" entry
|
||||||
(file org-default-notes-file)
|
(file org-default-notes-file)
|
||||||
"* 🆕 %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n")
|
"* TODO %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n")
|
||||||
("n" "Note" entry
|
("n" "Note" entry
|
||||||
(file org-notes-file)
|
(file org-notes-file)
|
||||||
"* %U %?\n")
|
"* %U %?\n")
|
||||||
@@ -42,8 +90,13 @@
|
|||||||
(file org-calendar-file)
|
(file org-calendar-file)
|
||||||
"* %?\nSCHEDULED: %^T\n")))
|
"* %?\nSCHEDULED: %^T\n")))
|
||||||
:config
|
:config
|
||||||
|
(require 'org-tempo)
|
||||||
(add-hook 'org-mode-hook 'org-indent-mode))
|
(add-hook 'org-mode-hook 'org-indent-mode))
|
||||||
|
|
||||||
|
(use-package org-appear
|
||||||
|
:ensure t
|
||||||
|
:hook (org-mode . org-appear-mode))
|
||||||
|
|
||||||
(use-package org-bullets
|
(use-package org-bullets
|
||||||
:ensure t
|
:ensure t
|
||||||
:init
|
:init
|
||||||
@@ -77,6 +130,6 @@
|
|||||||
'((mermaid . t)
|
'((mermaid . t)
|
||||||
(scheme . t))))
|
(scheme . t))))
|
||||||
|
|
||||||
(provide 'org)
|
(provide 'lang/org)
|
||||||
|
|
||||||
;;; org.el ends here
|
;;; org.el ends here
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#name : insert a source (BASH) declaration
|
#name : insert a source block
|
||||||
# --
|
# --
|
||||||
#+begin_src markdown
|
#+begin_src ${1:emacs-lisp}
|
||||||
$0
|
$0
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|||||||
Reference in New Issue
Block a user