I read in the manual, and here that

#+STARTUP: overview
#+TASKS: nil

* TODO Config tasks                                                :tasklist:
** TODO todo1
   SCHEDULED: <2020-02-16 Sun>
** TODO todo2
   SCHEDULED: <2020-02-17 Mon>
   - State "TODO"       from              [2020-02-13 Thu 01:26]
   - State "TODO"       from              [2020-02-13 Thu 01:26]

#+tasks: nil should stop the exporting of todo items. It doesn't using the md backend. What am I doing wrong?

My org export config is as follows:-

** Self documenting config file
   #+begin_src emacs-lisp

    (use-package ox-gfm
      :defer 3 
      :after org
      (defun config-export-to-markdown()
        (if (and (eq major-mode 'org-mode) (file-exists-p (concat (file-name-sans-extension (buffer-file-name)) ".md")))

      (add-hook 'after-save-hook 'config-export-to-markdown))


1 Answer 1


The correct option to exclude task keywords is the following:

#+OPTIONS: todo:nil

See all export options here: https://orgmode.org/manual/Export-Settings.html

  • Many thanks. I had mistakenly opted for tasks:nil. I didn't rtfm properly.
    – RichieHH
    Dec 18, 2020 at 4:07
  • Also, mind that there are no spaces in the sequence todo:nil. Otherwise, you get an ugly error traceback. Mar 20, 2021 at 15:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.