From 8609220c4070a633f10796f67ff4f73563d3904e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Mon, 18 Nov 2019 07:27:45 -0800 Subject: remove logbook hook --- .emacs.local.d/modes/org.el | 9 --------- 1 file changed, 9 deletions(-) (limited to '.emacs.local.d/modes') diff --git a/.emacs.local.d/modes/org.el b/.emacs.local.d/modes/org.el index ff9ed9c..ed51f40 100644 --- a/.emacs.local.d/modes/org.el +++ b/.emacs.local.d/modes/org.el @@ -84,15 +84,6 @@ ("h" "Habit" entry (file "~/src/git/org/refile.org") "* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \"%<<%Y-%m-%d %a .+1d/3d>>\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n")))) -;; Remove empty LOGBOOK drawers on clock out -(defun bh/remove-empty-drawer-on-clock-out () - (interactive) - (save-excursion - (beginning-of-line 0) - (org-remove-empty-drawer-at "LOGBOOK" (point)))) - -(add-hook 'org-clock-out-hook 'bh/remove-empty-drawer-on-clock-out 'append) - (add-hook 'org-capture-mode-hook 'delete-other-windows) (setq my-org-protocol-flag nil) (defadvice org-capture-finalize (after delete-frame-at-end activate) -- cgit v1.2.3