My Technical Notes

Tuesday, 6 June 2017

Emacs OrgMode: Logging Timestamps on state change

Add the following code to your `init.el`, which makes the state changes put into tidy logbooks.

(setq org-log-into-drawer t)

Then add the following code

 (setq org-todo-keywords
       '((sequence "TODO(t)" "DONE(d!)")))

Which give you fast access to these states (not really necessary as there are only two states), and when `DONE`, it adds a timestamp to the logbook.

Apparently all this can also be accomplished by adding the following in the `.org` file (the file may have to be reopened for changes to take effect):

#+STARTUP: logdrawer
#+TODO: TODO(t) DONE(d!)

No comments: