Raoul Comninos <revr...@mweb.co.za> writes: > Org-mode has been included by default from Emacs 22.1 onward. When, if ever, > then is it required to add `(require 'org)` to one's dot emacs? > > Is it only if one updates Org to its latest release version? Or are there > other use-cases?
(require 'org) is necessary when you want to load Org (and make *all* the main Org commands available) at startup by force. This may or may not be needed, depending on what you want. If you just need to open .org files, no require is needed, regardless of the Org version. Org will be autoloaded when opening an Org file. Same for commands line M-x org-mode - it is also autoloaded. If your question is about examples we have in WORG and that generally say (require 'org) <do something> then it is mostly to make Org functions available immediately for the next Elisp code lines. The same snippets can as well be written via (eval-after-load 'org (progn <do something>)) -- 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>