Matteo Valsasina <[email protected]> writes: > When i start emacs and try to launch agenda or refile a captured tasks i > encounter this kind of error: > org-refile-get-targets: Major mode in refile target buffer > "/home/org/file.org" must be ‘org-mode’ > > some info on the error: > - it does not occur every time i start emacs (1 on 3 times more or less) > - when it occur is always on 1 file not more > - the file seems to change every time (all the files involved have .org > extension) > - to resolve i just visit the file and launch M-x org-mode (saving the file > is not needed)
That sounds like maybe some kind of bug in one of mode hooks. Either org-mode-hook, or something more general. What you observe may happen when Org mode loading is interrupted by an error. Usually, such things come from user hooks. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
