* sh-script-mode
@ 2006-05-29 15:41 Cai Qian
2006-05-29 18:06 ` sh-script-mode David Hansen
0 siblings, 1 reply; 2+ messages in thread
From: Cai Qian @ 2006-05-29 15:41 UTC (permalink / raw)
Hi,
I would like to change the behaviour of default sh-script-mode through
.emacs about the following,
1) Here document,
When input <<, it should not automatically add EOF here document for
me, as I may want to use <<< instead. Therefore, I want to disable
this feature.
2) Case statement,
At the moment the default indention style is,
case $1 in
-h)
usage
;;
I want to change to
case $1 in
-h)
usage
;;
3) Highlight for quota string
I want to disable syntax highlight for quota string, as it is a mess
when embed double or single quota inside quota, such as,
echo "$(echo "hello 'world'")"
Thanks,
Qian
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sh-script-mode
2006-05-29 15:41 sh-script-mode Cai Qian
@ 2006-05-29 18:06 ` David Hansen
0 siblings, 0 replies; 2+ messages in thread
From: David Hansen @ 2006-05-29 18:06 UTC (permalink / raw)
On Mon, 29 May 2006 16:41:47 +0100 Cai Qian wrote:
> Hi,
>
> I would like to change the behaviour of default sh-script-mode through
> .emacs about the following,
>
> 1) Here document,
> When input <<, it should not automatically add EOF here document for
> me, as I may want to use <<< instead. Therefore, I want to disable
> this feature.
Not tested:
(add-hook 'sh-mode-hook
(lambda () (local-set-key ?< 'self-insert-command)))
David
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-29 18:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-29 15:41 sh-script-mode Cai Qian
2006-05-29 18:06 ` sh-script-mode David Hansen
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).