   (org-agenda-todo "DONE")
   (org-agenda-switch-to)
   (org-capture 0 "t"))
-;; Override the key definition
-(define-key org-agenda-mode-map "X" 'sacha/org-agenda-mark-done-and-add-followup)
 
 (defun sacha/org-agenda-new ()
   "Create a new note or task at the current agenda item.

;; Time-stamp: <2014-06-18 16:47:25 kmodi>

;; Org Mode


the same tree node, and the headline of the tree node in the Org-mode file."
  (interactive "P")
  (org-agenda-todo "DONE"))

(defun sacha/org-agenda-mark-done-and-add-followup ()
  "Mark the current TODO as done and add another task after it.
