* script requires \ after | just to get correct indentation
@ 2014-06-24 1:17 Samuel Wales
2014-06-24 1:44 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Wales @ 2014-06-24 1:17 UTC (permalink / raw)
To: help-gnu-emacs
this has correct indentation for my style, but is ugly and can't have comments.
example-forced-to-do () {
command1 | \
command2 | \
command3
}
this shows comments.
example-of-comments-not-working () {
echo useless use of cat because i am a badass | \
# african cat
# these can be kind of big
cat | \
# house cat
cat | \
cat
}
this is good but emacs does not indent correctly. is it possible?
example-i-want-this () {
command1 |
# african cat
# these can be kind of big
command2 |
# house cat
command3
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: script requires \ after | just to get correct indentation
2014-06-24 1:17 script requires \ after | just to get correct indentation Samuel Wales
@ 2014-06-24 1:44 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2014-06-24 1:44 UTC (permalink / raw)
To: help-gnu-emacs
> this has correct indentation for my style, but is ugly and can't have comments.
> example-forced-to-do () {
> command1 | \
> command2 | \
> command3
> }
Emacs-24.4 indents this correctly, with or without backslashes.
Which version of Emacs do you use? What value of sh-use-smie do you use?
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-24 1:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-24 1:17 script requires \ after | just to get correct indentation Samuel Wales
2014-06-24 1:44 ` Stefan Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).