emacs: customize org clocking

This commit is contained in:
Julian Mutter 2023-06-22 09:36:19 +02:00
parent 69e5d4f1cd
commit b6c9946cd9
2 changed files with 13 additions and 29 deletions

View File

@ -76,7 +76,7 @@
org-roam-directory "~/Nextcloud/org/roam") org-roam-directory "~/Nextcloud/org/roam")
;; Make all org files agenda files ;; Make all org files agenda files
(setq org-agenda-files (list org-directory)) (setq org-agenda-files (list org-directory "~/dev/bachelor-thesis/notes"))
(setq org-export-allow-bind-keywords t) (setq org-export-allow-bind-keywords t)
@ -86,34 +86,18 @@
(add-hook 'org-clock-in-hook #'save-buffer) (add-hook 'org-clock-in-hook #'save-buffer)
(add-hook 'org-clock-out-hook #'save-buffer) (add-hook 'org-clock-out-hook #'save-buffer)
(setq org-agenda-clockreport-parameter-plist '(:link t :maxlevel 2 :fileskip0 t)) ;; :stepskip0 t (setq org-pomodoro-manual-break t)
(after! org (setq org-agenda-custom-commands
(setq org-capture-templates '(("t" "Personal todo" entry '(("." "Clocking today" agenda ""
(file+headline +org-capture-todo-file "Inbox") ((org-agenda-span 1)
"* TODO %?\n%i\n%a" :prepend t) (org-agenda-start-day "today")
("n" "Personal notes" entry (org-agenda-start-with-clockreport-mode t)
(file+headline +org-capture-notes-file "Inbox") (org-agenda-start-with-log-mode 'clockcheck)
"* %u %?\n%i\n%a" :prepend t) ))))
("j" "Journal" entry
(file+olp+datetree +org-capture-journal-file) (setq org-agenda-clockreport-parameter-plist '(:link t :maxlevel 2 :fileskip0 t)) ;; :stepskip0 t
"* %U %?\n%i\n%a" :prepend t) (setq org-clock-mode-line-total 'today)
("p" "Templates for projects")
("pt" "Project-local todo" entry
(file+headline +org-capture-project-todo-file "Inbox")
"* TODO %?\n%i\n%a" :prepend t)
("pn" "Project-local notes" entry
(file+headline +org-capture-project-notes-file "Inbox")
"* %U %?\n%i\n%a" :prepend t)
("pc" "Project-local changelog" entry
(file+headline +org-capture-project-changelog-file "Unreleased")
"* %U %?\n%i\n%a" :prepend t)
("b" "Bachelor Idea" entry
(file+headline "bachelorarbeit-ideen.org" "Inbox")
"* IDEA %?\n%i\n%T\n%a" :prepend t)
))
)
;; (map! :nv "SPC r" "SPC n r")
(map! :map org-mode-map :nvi "C-k" #'org-backward-element) (map! :map org-mode-map :nvi "C-k" #'org-backward-element)
(map! :map org-mode-map :nvi "C-j" #'org-forward-element) (map! :map org-mode-map :nvi "C-j" #'org-forward-element)

View File

@ -153,7 +153,7 @@
;;nim ; python + lisp at the speed of c ;;nim ; python + lisp at the speed of c
nix ; I hereby declare "nix geht mehr!" nix ; I hereby declare "nix geht mehr!"
;;ocaml ; an objective camel ;;ocaml ; an objective camel
(org +dragndrop +pandoc +pretty +roam2 +noter) ; organize your plain life in plain text (org +dragndrop +pandoc +pretty +roam2 +pomodoro +noter) ; organize your plain life in plain text
;;php ; perl's insecure younger brother ;;php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more ;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional ;;purescript ; javascript, but functional