org-roam not respecting `org-todo-keywords`

Created on 9 Jul 2020  路  5Comments  路  Source: org-roam/org-roam

Description

Steps to Reproduce

  1. Load Emacs
  2. Open a roam file
  3. Hit org-todo to change TODO to DEFERRED (from my org-todo-keywords)
  4. org-roam pulls up another set of keywords (Doom Emacs default?)

Backtrace

No backtrace because it does not break things apart.

Expected Results

My org-todo-keywords appearing for selection. In not-roam org files it works perfectly.

Actual Results

Another set of keywords, probably Doom Emacs' default ones.

Environment

  • Emacs: GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) of 2020-05-19
  • Framework: Doom
  • Org: Org mode version 9.4 (nil @ /home/cantao/.emacs.d/.local/straight/build/org-mode/)
  • Org-roam: 1.2.0

Thank you very much!

Most helpful comment

Well, I have used everything as usual (mu4e, org-roam, etc) and the problem is gone. It seems Emacs got lost somehow. Thanks for your time guys, specially for the excelent work!

All 5 comments

I cannot reproduce (it's using my set of org-todo-keywords)

How are you customizing org-todo-keywords? Are they file specific?

In .doom.d/config.el:

For org-mode:

(use-package! org
  :defer t
  :config
  (setq org-agenda-files (list my-org-dir my-roam-dir)
        ;; ... lots of org mode configuration ...
        org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "WAITING(w@)" "|" "DONE(d@)" "CANCELLED(c@)" "DEFERRED(r@)"))
        ;; ... lots more ....
))

For org-roam:

(use-package! org-roam
  :defer t
  :config
  (setq org-roam-directory my-roam-dir
        org-roam-index-file (concat my-roam-dir "roam-index.org")))

I have similar sections for org-ref, org-roam-bibtex, deft and so on. Variables starting with my- refer to directories or files.

Are you sure the problem is caused by Org-roam? Could you comment out the use-package block for Org-roam and try again?

Very strange. It must be something with the order packages are loaded. I tried commenting everything except org-mode and org-roam. Tried uncommenting one block at a time and now I can't reproduce the problem :-|

I'll make some more tests and close the bug if cannot reproduce it.

Well, I have used everything as usual (mu4e, org-roam, etc) and the problem is gone. It seems Emacs got lost somehow. Thanks for your time guys, specially for the excelent work!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fkgruber picture fkgruber  路  4Comments

Donkeyfish87 picture Donkeyfish87  路  4Comments

rasendubi picture rasendubi  路  3Comments

kadircancetin picture kadircancetin  路  5Comments

progfolio picture progfolio  路  3Comments