Skip to main content
edited title; edited tags
Link
Drew
  • 79.1k
  • 10
  • 123
  • 257

org-mode remove indent How to turn off automatic indenting for Org files in a specific folder?

added 20 characters in body; edited tags
Source Link
Drew
  • 79.1k
  • 10
  • 123
  • 257

I am using doom emacsDoom Emacs. I like having indentionindentation for most of my org files, but I have one folder where I want to have org files without indenting, to use for writing documents. 

I have already tested adding #+STARTUP noindent, and that works per file, but I'm trying to find a way to make it the default for the folder. 

I used add-dir-local-variable, to set org-indent-mode to nilnil, and I can see that was written to a .dir_locals.el.dir_locals.el in the folder I want to make the change for, but. But when I open an orgOrg file it is still indented. If, after the file is open, I manually toggle org-indent-mode, I can turn the indenting on and off. Seems like maybe a matter of the sequence or I'm going about this the wrong way. If it helps, here is the .dir_locals.el.dir_locals.el

;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((org-mode
  (org-indent-mode nil)))

I am using doom emacs. I like having indention for most of my org files, but I have one folder where I want to have org files without indenting to use for writing documents. I have already tested adding #+STARTUP noindent and that works per file but I'm trying to find a way to make it the default for the folder. I used add-dir-local-variable to set org-indent-mode to nil and I can see that was written to a .dir_locals.el in the folder I want to make the change for, but when I open an org file it is still indented. If, after the file is open, I manually toggle org-indent-mode I can turn the indenting on and off. Seems like maybe a matter of the sequence or I'm going about this the wrong way. If it helps, here is the .dir_locals.el

;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((org-mode
  (org-indent-mode nil)))

I am using Doom Emacs. I like having indentation for most of my org files, but I have one folder where I want to have org files without indenting, to use for writing documents. 

I have already tested adding #+STARTUP noindent, and that works per file, but I'm trying to find a way to make it the default for the folder. 

I used add-dir-local-variable, to set org-indent-mode to nil, and I can see that was written to a .dir_locals.el in the folder I want to make the change for. But when I open an Org file it is still indented. If, after the file is open, I manually toggle org-indent-mode, I can turn the indenting on and off. Seems like maybe a matter of the sequence or I'm going about this the wrong way. If it helps, here is the .dir_locals.el

;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((org-mode
  (org-indent-mode nil)))
Source Link
Matt W
  • 53
  • 1
  • 5

org-mode remove indent for a folder

I am using doom emacs. I like having indention for most of my org files, but I have one folder where I want to have org files without indenting to use for writing documents. I have already tested adding #+STARTUP noindent and that works per file but I'm trying to find a way to make it the default for the folder. I used add-dir-local-variable to set org-indent-mode to nil and I can see that was written to a .dir_locals.el in the folder I want to make the change for, but when I open an org file it is still indented. If, after the file is open, I manually toggle org-indent-mode I can turn the indenting on and off. Seems like maybe a matter of the sequence or I'm going about this the wrong way. If it helps, here is the .dir_locals.el

;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((org-mode
  (org-indent-mode nil)))