0

I use auto-capitalize-mode with org mode files and enabled it in my init.el as follows:

 (autoload 'auto-capitalize-mode "auto-capitalize"
      "Toggle `auto-capitalize' minor mode in this buffer." t)
    (autoload 'turn-on-auto-capitalize-mode "auto-capitalize"
   "Turn on `auto-capitalize' minor mode in this buffer." t)
    (autoload 'enable-auto-capitalize-mode "auto-capitalize"
      "Enable `auto-capitalize' minor mode in this buffer." t)

    (add-hook 'text-mode-hook 'turn-on-auto-capitalize-mode)

It's useful in writing text, but messes up code in code blocks. My question is:

Is there a way to let emacs only use auto-capitalize-mode outside of any code blocks?

Related:

Do not auto-capitalize when editing an equation in AUCTeX or org-mode

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.