Tory S. Anderson writes: > In any case, I keep having org-occur-next-match set away from nil, and > I'm actually having trouble figuring out which hook will fix it, since > org-mode-hook doesn't seem to be doing it. Instead I end up manually > evaluating =(setq next-error-function nil)= every time I need > next-error. > > Any suggestions?
next-error-function is set in the define-derived-mode body for org-mode, so something like (add-hook 'org-mode-hook (lambda () (setq next-error-function nil))) should work, and it appears to on my end.