I'm new to emacs, org-mode. I have an org file which, every time I open, I have to enable the minor modes: visual-line-mode
and org-indent-mode
by hand using the M-x
command.
I saw this question in stackoverflow and tried the following code in my .emacs
file only to see an error when emacs loads.
Code
(require 'org-mode) (defun turn-on-visual-line-mode () (visual-line-mode 1)) (add-hook 'org-mode-hook 'turn-on-visual-line-mode)
Error
Warning (initialization): An error occurred while loading ‘c:/Users/Prasanna Rajaram/AppData/Roaming/.emacs’: File error: Cannot open load file, No such file or directory, org-mode To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the ‘--debug-init’ option to view a complete error backtrace.
I did not try the org-indent-mode
as I did not know how to turn on multiple minor modes with defun()
.
(require 'org-mode)
instead of(require 'org)
.