Skip to content

Instantly share code, notes, and snippets.

@omps
Created March 2, 2016 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omps/e8f2e8f26267f241048a to your computer and use it in GitHub Desktop.
Save omps/e8f2e8f26267f241048a to your computer and use it in GitHub Desktop.
org-capture and time clocking misbehaving
Org-mode version 8.3.3 (8.3.3-51-g30bcff-elpa). Before the update, it was already working on my Emacs 24.4 (Linux OS, built from sources), thanks to the answer from user2053036.
Looks like the extra parameter is no longer needed in this version. My working init file now looks like:
(defun bh/remove-empty-drawer-on-clock-out ()
(interactive)
(save-excursion
(beginning-of-line 0)
(org-remove-empty-drawer-at (point))))
(add-hook 'org-clock-out-hook 'bh/remove-empty-drawer-on-clock-out 'append)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment