1

I am currently running Doom Emacs and using org-mode. When I try to move a file to the front of the agenda file list (C-c [), It is updating the custom.el file, rather than the config.el file.

In my config.el file, I have it set up like so:

;; set up org mode
(after! org
(setq org-agenda-files '("~/Dropbox/org-roam/20210908114649-inbox.org" ))
)

Moving a file to the front of the agenda list works correctly in the current session, but because it's updating the custom.el file, when I restart emacs, the changes are not applied.

Any ideas?

6
  • If you are not saving customizations in your init file then you are supposed to load custom.el at the end of your init file. See Saving Customizations in the Emacs manual (available at your local Emacs with C-h i g(emacs)Saving customizations)
    – NickD
    Commented Dec 9, 2021 at 2:01
  • 1
    @NickD part of the config documentation in Doom Emacs says "Note: do not use M-x customize or the customize API in general. Doom is designed to be configured programmatically from your config.el, which can conflict with Customize’s way of modifying variables." I am not sure how this should all works. github.com/hlissner/doom-emacs/blob/develop/docs/…
    – sergio_101
    Commented Dec 9, 2021 at 2:51
  • Try it in any case: this is not you using customize, but Org mode itself. If it doesn't work, then there is an incompatibility between Doom and Org mode. But I suspect that they are being overcautious and that it is going to work.
    – NickD
    Commented Dec 9, 2021 at 12:25
  • @NickD yeah, i did try it. custom.el is in fact being written correctly. It's just not being read on startup.
    – sergio_101
    Commented Dec 9, 2021 at 14:19
  • Did you try loading from your config.el the way the manual suggests?
    – NickD
    Commented Dec 9, 2021 at 14:49

0

Your Answer

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

Browse other questions tagged or ask your own question.