   (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.

  (interactive)
  (org-agenda-switch-to)
  (org-capture 0))
;; New key assignment
(define-key org-agenda-mode-map "N" 'sacha/org-agenda-new)


(setq setup-org-loaded t)

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.
