Update emacs.org
This commit is contained in:
parent
e57d9bd0e5
commit
4e667d927f
1 changed files with 119 additions and 116 deletions
|
@ -614,144 +614,147 @@ Cause emacs overlay lol
|
||||||
#+end_src
|
#+end_src
|
||||||
** Org-Mode
|
** Org-Mode
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package org
|
(use-package org
|
||||||
:hook (org-mode . org-indent-mode)
|
:hook (org-mode . org-indent-mode)
|
||||||
:config
|
:config
|
||||||
(setq org-ellipsis " ↓")
|
(setq org-ellipsis " ↓")
|
||||||
(setq org-agenda-start-with-log-mode t)
|
(setq org-agenda-start-with-log-mode t)
|
||||||
(setq org-log-done 'time)
|
(setq org-log-done 'time)
|
||||||
(setq org-log-into-drawer t)
|
(setq org-log-into-drawer t)
|
||||||
|
|
||||||
;; org habits thing
|
;; org habits thing
|
||||||
(require 'org-habit)
|
(require 'org-habit)
|
||||||
(add-to-list 'org-modules 'org-habit)
|
(add-to-list 'org-modules 'org-habit)
|
||||||
(setq org-habit-graph-column 60)
|
(setq org-habit-graph-column 60)
|
||||||
|
|
||||||
;; archive thingy i forgot
|
;; archive thingy i forgot
|
||||||
(setq org-refile-targets
|
(setq org-refile-targets
|
||||||
'(("archive.org" :maxlevel . 1)))
|
'(("archive.org" :maxlevel . 1)))
|
||||||
|
|
||||||
;; save org buffer before refile
|
;; save org buffer before refile
|
||||||
(advice-add 'org-refile :after 'org-save-all-org-buffers)
|
(advice-add 'org-refile :after 'org-save-all-org-buffers)
|
||||||
|
|
||||||
;; org agenda files
|
;; org agenda files
|
||||||
(setq org-agenda-files
|
(setq org-agenda-files
|
||||||
'("~/org/tasks.org"
|
'("~/org/tasks.org"
|
||||||
"~/org/school.org"
|
"~/org/school.org"
|
||||||
"~/org/daily.org"
|
"~/org/daily.org"
|
||||||
"~/org/irl.org"
|
"~/org/irl.org"
|
||||||
"~/org/work.org"))
|
"~/org/work.org"))
|
||||||
|
|
||||||
;; Following
|
;; Following
|
||||||
(setq org-return-follows-link t)
|
(setq org-return-follows-link t)
|
||||||
|
|
||||||
;; hide stars except for leader star
|
;; hide stars except for leader star
|
||||||
(setq org-hide-leading-stars t)
|
(setq org-hide-leading-stars t)
|
||||||
(setq org-hide-emphasis-markers nil)
|
(setq org-hide-emphasis-markers nil)
|
||||||
|
|
||||||
;; org mode src thing
|
;; make latex previews better
|
||||||
(require 'org-tempo)
|
(setq org-format-latex-options (:foreground default :background default :scale 2.0 :html-foreground "Black" :html-background "Transparent" :html-scale 2.0 :matchers ("begin" "$1" "$" "$$" "\\(" "\\[")))
|
||||||
|
|
||||||
(add-to-list 'org-structure-template-alist '("sh" . "src shell"))
|
;; org mode src thing
|
||||||
(add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp"))
|
(require 'org-tempo)
|
||||||
(add-to-list 'org-structure-template-alist '("py" . "src python"))
|
|
||||||
|
|
||||||
(setq org-todo-keywords
|
(add-to-list 'org-structure-template-alist '("sh" . "src shell"))
|
||||||
'((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)")
|
(add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp"))
|
||||||
(sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)" "WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANCELED(k@)")))
|
(add-to-list 'org-structure-template-alist '("py" . "src python"))
|
||||||
|
|
||||||
(setq org-refile-targets
|
(setq org-todo-keywords
|
||||||
'(("archive.org" :maxlevel . 1)
|
'((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)")
|
||||||
("tasks.org" :maxlevel . 1)))
|
(sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)" "WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANCELED(k@)")))
|
||||||
|
|
||||||
;; Save Org buffers after refiling!
|
(setq org-refile-targets
|
||||||
(advice-add 'org-refile :after 'org-save-all-org-buffers)
|
'(("archive.org" :maxlevel . 1)
|
||||||
|
("tasks.org" :maxlevel . 1)))
|
||||||
|
|
||||||
(setq org-startup-with-inline-images t)
|
;; Save Org buffers after refiling!
|
||||||
|
(advice-add 'org-refile :after 'org-save-all-org-buffers)
|
||||||
|
|
||||||
(setq org-tag-alist
|
(setq org-startup-with-inline-images t)
|
||||||
'((:startgroup)
|
|
||||||
; Put mutually exclusive tags here
|
|
||||||
(:endgroup)
|
|
||||||
("@errand" . ?E)
|
|
||||||
("@home" . ?H)
|
|
||||||
("@work" . ?W)
|
|
||||||
("agenda" . ?a)
|
|
||||||
("planning" . ?p)
|
|
||||||
("publish" . ?P)
|
|
||||||
("batch" . ?b)
|
|
||||||
("note" . ?n)
|
|
||||||
("idea" . ?i)))
|
|
||||||
|
|
||||||
;; Configure custom agenda views
|
(setq org-tag-alist
|
||||||
(setq org-agenda-custom-commands
|
'((:startgroup)
|
||||||
'(("d" "Dashboard"
|
; Put mutually exclusive tags here
|
||||||
((agenda "" ((org-deadline-warning-days 7)))
|
(:endgroup)
|
||||||
(todo "NEXT"
|
("@errand" . ?E)
|
||||||
((org-agenda-overriding-header "Next Tasks")))
|
("@home" . ?H)
|
||||||
(tags-todo "agenda/ACTIVE" ((org-agenda-overriding-header "Active Projects")))))
|
("@work" . ?W)
|
||||||
|
("agenda" . ?a)
|
||||||
|
("planning" . ?p)
|
||||||
|
("publish" . ?P)
|
||||||
|
("batch" . ?b)
|
||||||
|
("note" . ?n)
|
||||||
|
("idea" . ?i)))
|
||||||
|
|
||||||
("n" "Next Tasks"
|
;; Configure custom agenda views
|
||||||
((todo "NEXT"
|
(setq org-agenda-custom-commands
|
||||||
((org-agenda-overriding-header "Next Tasks")))))
|
'(("d" "Dashboard"
|
||||||
|
((agenda "" ((org-deadline-warning-days 7)))
|
||||||
|
(todo "NEXT"
|
||||||
|
((org-agenda-overriding-header "Next Tasks")))
|
||||||
|
(tags-todo "agenda/ACTIVE" ((org-agenda-overriding-header "Active Projects")))))
|
||||||
|
|
||||||
("W" "Work Tasks" tags-todo "+work-email")
|
("n" "Next Tasks"
|
||||||
|
((todo "NEXT"
|
||||||
|
((org-agenda-overriding-header "Next Tasks")))))
|
||||||
|
|
||||||
;; Low-effort next actions
|
("W" "Work Tasks" tags-todo "+work-email")
|
||||||
("e" tags-todo "+TODO=\"NEXT\"+Effort<15&+Effort>0"
|
|
||||||
((org-agenda-overriding-header "Low Effort Tasks")
|
|
||||||
(org-agenda-max-todos 20)
|
|
||||||
(org-agenda-files org-agenda-files)))
|
|
||||||
|
|
||||||
("w" "Workflow Status"
|
;; Low-effort next actions
|
||||||
((todo "WAIT"
|
("e" tags-todo "+TODO=\"NEXT\"+Effort<15&+Effort>0"
|
||||||
((org-agenda-overriding-header "Waiting on External")
|
((org-agenda-overriding-header "Low Effort Tasks")
|
||||||
(org-agenda-files org-agenda-files)))
|
(org-agenda-max-todos 20)
|
||||||
(todo "REVIEW"
|
(org-agenda-files org-agenda-files)))
|
||||||
((org-agenda-overriding-header "In Review")
|
|
||||||
(org-agenda-files org-agenda-files)))
|
|
||||||
(todo "PLAN"
|
|
||||||
((org-agenda-overriding-header "In Planning")
|
|
||||||
(org-agenda-todo-list-sublevels nil)
|
|
||||||
(org-agenda-files org-agenda-files)))
|
|
||||||
(todo "BACKLOG"
|
|
||||||
((org-agenda-overriding-header "Project Backlog")
|
|
||||||
(org-agenda-todo-list-sublevels nil)
|
|
||||||
(org-agenda-files org-agenda-files)))
|
|
||||||
(todo "READY"
|
|
||||||
((org-agenda-overriding-header "Ready for Work")
|
|
||||||
(org-agenda-files org-agenda-files)))
|
|
||||||
(todo "ACTIVE"
|
|
||||||
((org-agenda-overriding-header "Active Projects")
|
|
||||||
(org-agenda-files org-agenda-files)))
|
|
||||||
(todo "COMPLETED"
|
|
||||||
((org-agenda-overriding-header "Completed Projects")
|
|
||||||
(org-agenda-files org-agenda-files)))
|
|
||||||
(todo "CANC"
|
|
||||||
((org-agenda-overriding-header "Cancelled Projects")
|
|
||||||
(org-agenda-files org-agenda-files)))))
|
|
||||||
|
|
||||||
("1" "Events" agenda "display deadlines and exclude scheduled" (
|
("w" "Workflow Status"
|
||||||
(org-agenda-span 'month)
|
((todo "WAIT"
|
||||||
(org-agenda-time-grid nil)
|
((org-agenda-overriding-header "Waiting on External")
|
||||||
(org-agenda-show-all-dates nil)
|
(org-agenda-files org-agenda-files)))
|
||||||
(org-agenda-entry-types '(:deadline)) ;; this entry excludes :scheduled
|
(todo "REVIEW"
|
||||||
(org-deadline-warning-days 0) ))))
|
((org-agenda-overriding-header "In Review")
|
||||||
|
(org-agenda-files org-agenda-files)))
|
||||||
|
(todo "PLAN"
|
||||||
|
((org-agenda-overriding-header "In Planning")
|
||||||
|
(org-agenda-todo-list-sublevels nil)
|
||||||
|
(org-agenda-files org-agenda-files)))
|
||||||
|
(todo "BACKLOG"
|
||||||
|
((org-agenda-overriding-header "Project Backlog")
|
||||||
|
(org-agenda-todo-list-sublevels nil)
|
||||||
|
(org-agenda-files org-agenda-files)))
|
||||||
|
(todo "READY"
|
||||||
|
((org-agenda-overriding-header "Ready for Work")
|
||||||
|
(org-agenda-files org-agenda-files)))
|
||||||
|
(todo "ACTIVE"
|
||||||
|
((org-agenda-overriding-header "Active Projects")
|
||||||
|
(org-agenda-files org-agenda-files)))
|
||||||
|
(todo "COMPLETED"
|
||||||
|
((org-agenda-overriding-header "Completed Projects")
|
||||||
|
(org-agenda-files org-agenda-files)))
|
||||||
|
(todo "CANC"
|
||||||
|
((org-agenda-overriding-header "Cancelled Projects")
|
||||||
|
(org-agenda-files org-agenda-files)))))
|
||||||
|
|
||||||
;; TODO Setup template for school
|
("1" "Events" agenda "display deadlines and exclude scheduled" (
|
||||||
|
(org-agenda-span 'month)
|
||||||
|
(org-agenda-time-grid nil)
|
||||||
|
(org-agenda-show-all-dates nil)
|
||||||
|
(org-agenda-entry-types '(:deadline)) ;; this entry excludes :scheduled
|
||||||
|
(org-deadline-warning-days 0) ))))
|
||||||
|
|
||||||
(setq org-capture-templates
|
;; TODO Setup template for school
|
||||||
`(("t" "Tasks / Projects")
|
|
||||||
("tt" "Task" entry (file+olp "~/org/tasks.org" "captured")
|
|
||||||
"* TODO %?\n %U\n %a\n %i" :empty-lines 1)
|
|
||||||
|
|
||||||
("j" "Journal Entries")
|
(setq org-capture-templates
|
||||||
("jj" "Journal" entry
|
`(("t" "Tasks / Projects")
|
||||||
(file+olp+datetree "~/org/journal.org")
|
("tt" "Task" entry (file+olp "~/org/tasks.org" "captured")
|
||||||
"\n* %<%I:%M %p> - Journal :journal:\n\n%?\n\n"
|
"* TODO %?\n %U\n %a\n %i" :empty-lines 1)
|
||||||
;; ,(dw/read-file-as-string "~/Notes/Templates/Daily.org")
|
|
||||||
:clock-in :clock-resume
|
("j" "Journal Entries")
|
||||||
:empty-lines 1))))
|
("jj" "Journal" entry
|
||||||
|
(file+olp+datetree "~/org/journal.org")
|
||||||
|
"\n* %<%I:%M %p> - Journal :journal:\n\n%?\n\n"
|
||||||
|
;; ,(dw/read-file-as-string "~/Notes/Templates/Daily.org")
|
||||||
|
:clock-in :clock-resume
|
||||||
|
:empty-lines 1))))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Org Mode Beautifers
|
** Org Mode Beautifers
|
||||||
*** Olivetti
|
*** Olivetti
|
||||||
|
|
Loading…
Reference in a new issue