emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turning off all indentation in 9.4.4


From: TRS-80
Subject: Re: Turning off all indentation in 9.4.4
Date: Thu, 25 Feb 2021 09:18:08 -0500
User-agent: Roundcube Webmail/1.3.15

On 2021-02-24 15:58, TRS-80 wrote:
On 2021-02-16 23:30, Kyle Meyer wrote:
TRS-80 writes:

Unfortunately, unless I am doing something wrong, none of these options
seem to really restore the previous behavior.  I have set
~org-adapt-indentation~ to ~'headline-data~, and now pressing RET goes
to column 0.  However, unfortunately, TAB now no longer jumps to the
indentation level of the previous block (for example, so I can insert a
code block or other block structure into a plain list at the correct
level).

I think you're talking about the following behavior.

  * a
  <point>foo

With org-adapt-indentation at nil (or the new headline-data value), foo doesn't get indented. This behavior is not new to 9.4. If you try with 9.3.8 and org-adapt-indentation is set to nil, it also will not indent.
Step through org--get-expected-indentation to see how the different
values of org-adapt-indentation are handled.

So, if I'm reading your preferences correctly, it sounds like you want
just the first suggestion in the above snippet, leaving
org-adapt-indentation at its default value:

(add-hook 'org-mode-hook (lambda () (electric-indent-local-mode -1)))

OK, I just did eval-expression (M-:) with (electric-indent-local-mode
-1) in an Orgmode buffer. After very brief testing, it does indeed seem
to return the desired behavior.  So thanks a lot for that tip!

In the same timeframe, I have also noticed my Logbook entries not being
indented (when changing TODO states) which I think was also brought
about by this change (or rather, my changes to org-adapt-indentation).
I am not sure if I should make a separate thread about that, or not?

OK, so after that yesterday, I went ahead and added
(electric-indent-local-mode -1) to my org-mode hook.  Then today upon
re-starting Emacs, I am back to not working.

By not working I mean:  Pressing enter goes to column 0 as it should,
however then pressing <TAB> does nothing.  Where previously it would
jump to same level as indented above.

My settings are:

- electric-indent-local-mode nil (local in each Orgmode buffer, set via
hook)

- org-adapt-indentation 'headline-data

I am also using adaptive-wrap-prefix-mode to do a soft wrap on left
side, not sure if this is involved or not.

Any help is greatly appreciated, as this is maddeningly aggravating.

Cheers,
TRS-80



reply via email to

[Prev in Thread] Current Thread [Next in Thread]