From 58673f3f0f83cc6bedd2f7e792013678c6ea6afb Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Mon, 21 Jan 2019 12:53:42 -0500 Subject: [PATCH] add keybinding for clock ranges --- conf.org | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/conf.org b/conf.org index 1e75f2f..cc6d331 100644 --- a/conf.org +++ b/conf.org @@ -930,7 +930,7 @@ and reverts all todo keywords to TODO." (delete-region (point) (+ 1 (save-excursion (org-end-of-subtree))))) (defun nd/org-clock-range () - "Add a complete clock entry to the current heading. + "Add a completed clock entry to the current heading. Does not touch the running clock." (interactive) (let* ((t1 (-> (org-read-date t t) float-time)) @@ -3650,6 +3650,11 @@ These are for mode-specific bindings that can/should be outside of the evil maps ;; this is just a useful function I made (actually I think I stole) (local-set-key (kbd "C-c C-x x") 'nd/mark-subtree-done) + ;; this actually overrides org-clock-report (which I never use) + ;; with a function to insert full clock entries for those times + ;; I forget to clock in (often) + (local-set-key (kbd "C-c C-x C-r") 'nd/org-clock-range) + ;; override default org subtree cloning with something that clones and resets (local-set-key (kbd "C-c C-x c") 'nd/org-clone-subtree-with-time-shift)))