I use a literate configuration, so my init.el file gets overwritten every time I tangle; how does this play together with org-agenda-file-to-front?;)

Maybe add a separate file to hold the included org files?

1 Answer 1


I don't know about org-agenda-file-to-front but instead of tangling from your org file, you could put the following code in your .emacs. Where PATH is the path to your org file.

(require 'org)
(org-babel-load-file "PATH")

Read this question for more details.

  • I used to do that, but I'd rather tangle externally, because then emacs starts up with an .el file that I can debug. With org-babel-load-file, it's impossible for it to say which line it has trouble with. Commented Mar 26, 2023 at 7:55
  • Of, course, maybe a solution is to tangle to another file, then keep init.el, so that it can write that information there. Commented Mar 26, 2023 at 7:56
  • To debug/test, you can use another Emacs instance with emacs -q -l PATH/init.el
    – crocefisso
    Commented Mar 26, 2023 at 13:15

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.