* Breaking indentation to the right side
@ 2024-12-02 4:31 Heime via Users list for the GNU Emacs text editor
2024-12-03 13:47 ` Stefan Monnier via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 2+ messages in thread
From: Heime via Users list for the GNU Emacs text editor @ 2024-12-02 4:31 UTC (permalink / raw)
To: Heime via Users list for the GNU Emacs text editor
Have been working on some code and with added transformations, checks, loops, and conditions,
I end up with code much shifted to the right.
Keeping with an 80 column width, would it be acceptable to change the indentation for section
to start from some left side position rather than continuing with the indentation towards the
right side?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Breaking indentation to the right side
2024-12-02 4:31 Breaking indentation to the right side Heime via Users list for the GNU Emacs text editor
@ 2024-12-03 13:47 ` Stefan Monnier via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2024-12-03 13:47 UTC (permalink / raw)
To: help-gnu-emacs
> Keeping with an 80 column width, would it be acceptable to change the
> indentation for section to start from some left side position rather
> than continuing with the indentation towards the right side?
That would be poor style.
The deeply indented code is usually a strong sign that you should cut
your code into smaller pieces that you place in separate functions.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-03 13:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-02 4:31 Breaking indentation to the right side Heime via Users list for the GNU Emacs text editor
2024-12-03 13:47 ` Stefan Monnier via Users list for the GNU Emacs text editor
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.