* cc mode feature request
@ 2016-11-10 3:09 Rusi
2016-11-10 16:15 ` skip.montanaro
0 siblings, 1 reply; 2+ messages in thread
From: Rusi @ 2016-11-10 3:09 UTC (permalink / raw
To: help-gnu-emacs
I posted this on python list (mostly as a joke):
https://twitter.com/UdellGames/status/788690145822306304
Skip Montanaro made the interesting suggestion that an emacs mode could do it.
Expanding a bit on that:
Have two indent-region commands
- one which does it the conventional way
- one which flips to this way
Feasible?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: cc mode feature request
2016-11-10 3:09 cc mode feature request Rusi
@ 2016-11-10 16:15 ` skip.montanaro
0 siblings, 0 replies; 2+ messages in thread
From: skip.montanaro @ 2016-11-10 16:15 UTC (permalink / raw
To: help-gnu-emacs
Thanks for the hat tip. Note that for the record I wouldn't recommend using such a tool except as a check. One issue with brace-filled languages like Java is that you can indent code any old way you want. Leaving out braces might allow bugs in which aren't readily apparent visually. Pretending your code is indentation-sensitive like Python, as Rustom's Twitter post showed, might actually be a useful visual aid...
Skip
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-10 16:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-10 3:09 cc mode feature request Rusi
2016-11-10 16:15 ` skip.montanaro
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.