* Which mode for editing (ba)sh scripts
@ 2008-02-04 21:27 Alain Muls
2008-02-05 0:19 ` Peter Dyballa
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Alain Muls @ 2008-02-04 21:27 UTC (permalink / raw)
To: emacs list
[-- Attachment #1: Type: text/plain, Size: 102 bytes --]
Hi,
I cannot find a major mode to use for editing bash-scripts. Which one
can you advize?
Tx/Alain
[-- Attachment #2: alain_muls.vcf --]
[-- Type: text/x-vcard, Size: 242 bytes --]
begin:vcard
fn:Alain Muls
n:Muls;Alain
org:RMA;CISS
adr:;;Renaissance Avenue 30;Brussems;;1000;Belgium
email;internet:alain.muls@telenet.be
title:Prof
tel;work:+32.2.7376340
tel;cell:+32.477.675091
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Which mode for editing (ba)sh scripts
2008-02-04 21:27 Which mode for editing (ba)sh scripts Alain Muls
@ 2008-02-05 0:19 ` Peter Dyballa
[not found] ` <47A81DB8.6000900@telenet.be>
2008-02-05 7:19 ` Andreas Röhler
2008-02-05 8:45 ` Tassilo Horn
2 siblings, 1 reply; 8+ messages in thread
From: Peter Dyballa @ 2008-02-05 0:19 UTC (permalink / raw)
To: Alain Muls; +Cc: emacs list
Am 04.02.2008 um 22:27 schrieb Alain Muls:
> I cannot find a major mode to use for editing bash-scripts. Which
> one can you advize?
Shell-script. Looks good enough. Is built-in.
--
Greetings
Pete
The day Microsoft makes something that doesn't suck is the day they
start selling vacuum cleaners.
– Ernest Jan Plugge
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Which mode for editing (ba)sh scripts
[not found] <mailman.6978.1202170424.18990.help-gnu-emacs@gnu.org>
@ 2008-02-05 0:33 ` Carl
0 siblings, 0 replies; 8+ messages in thread
From: Carl @ 2008-02-05 0:33 UTC (permalink / raw)
To: help-gnu-emacs
Alain Muls <alain.muls@telenet.be> writes:
> Hi,
>
> I cannot find a major mode to use for editing bash-scripts. Which one
> can you advize?
>
> Tx/Alain
How about shell-script-mode?
--
Carl.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Which mode for editing (ba)sh scripts
2008-02-04 21:27 Which mode for editing (ba)sh scripts Alain Muls
2008-02-05 0:19 ` Peter Dyballa
@ 2008-02-05 7:19 ` Andreas Röhler
2008-02-05 8:45 ` Tassilo Horn
2 siblings, 0 replies; 8+ messages in thread
From: Andreas Röhler @ 2008-02-05 7:19 UTC (permalink / raw)
To: help-gnu-emacs
Am Montag, 4. Februar 2008 22:27 schrieb Alain Muls:
> Hi,
>
> I cannot find a major mode to use for editing bash-scripts. Which one
> can you advize?
>
> Tx/Alain
Maybe have a look at
sh-beg-end.el, which you can get at
http://lists.gnu.org/archive/html/gnu-emacs-sources/2008-02/msg00000.html
It delivers `sh-match-paren' and slightly changed
move-commands.
With thingatpt-utils you get additional facilities to
sort, transpose, copy, kill etc. functions in
Shell-script mode.
Andreas Röhler
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Which mode for editing (ba)sh scripts
2008-02-04 21:27 Which mode for editing (ba)sh scripts Alain Muls
2008-02-05 0:19 ` Peter Dyballa
2008-02-05 7:19 ` Andreas Röhler
@ 2008-02-05 8:45 ` Tassilo Horn
2 siblings, 0 replies; 8+ messages in thread
From: Tassilo Horn @ 2008-02-05 8:45 UTC (permalink / raw)
To: help-gnu-emacs
Alain Muls <alain.muls@telenet.be> writes:
Hi Alain,
> I cannot find a major mode to use for editing bash-scripts. Which one
> can you advize?
Theres `shell-script-mode' aka `sh-mode'. It's builtin and should be
switched on when a file has the ending ".sh" or ".bash".
Bye,
Tassilo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Which mode for editing (ba)sh scripts
[not found] ` <47A81DB8.6000900@telenet.be>
@ 2008-02-05 9:10 ` Peter Dyballa
[not found] ` <47A837A1.90602@telenet.be>
0 siblings, 1 reply; 8+ messages in thread
From: Peter Dyballa @ 2008-02-05 9:10 UTC (permalink / raw)
To: Alain Muls; +Cc: emacs list
Am 05.02.2008 um 09:26 schrieb Alain Muls:
> Is that by enabling
> M-x shell-mode?
No, by opening a shell script. For me it works automatically. All I
have to do is to open the shell script. Could you make a try with an
Emacs launched with -Q and shell scripts that start with:
#!/bin/bash
or
#!/bin/sh
or
#!/bin/csh
or
#!/bin/tcsh
or
#!/bin/ksh
or
#!/bin/zsh
or
...
and look at the mode-line?
--
Greetings
Pete
Only two things are infinite, the universe and human stupidity, and
I'm not sure about the former.
– Albert Einstein
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Which mode for editing (ba)sh scripts
[not found] ` <47A837A1.90602@telenet.be>
@ 2008-02-05 10:54 ` Peter Dyballa
[not found] ` <mailman.6993.1202208885.18990.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2008-02-05 10:54 UTC (permalink / raw)
To: Alain Muls; +Cc: emacs list
Am 05.02.2008 um 11:17 schrieb Alain Muls:
> if I select to insert eg an 'if' statement from the Insert menu,
> than I get the following error:
>
> Loading /home/amuls/emacs/elisp/skeleton.el (source)...done
> sh-if: Autoloading failed to define function skeleton-proxy-new
Launch GNU Emacs with -Q or -q to see whether this comes from some
customisation.
Modern Emacsen should display in mode-line "[(Shell-script[bash])]" –
maybe added by View.
To me it looks as if you have a problem with skeleton.
--
Greetings
Pete
Isn't vi that text editor with two modes... one that beeps and one
that corrupts your file?
– Dan Jacobson, on comp.os.linux.advocacy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Which mode for editing (ba)sh scripts
[not found] ` <mailman.6993.1202208885.18990.help-gnu-emacs@gnu.org>
@ 2008-02-06 15:03 ` Stefan Monnier
0 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2008-02-06 15:03 UTC (permalink / raw)
To: help-gnu-emacs
>> Loading /home/amuls/emacs/elisp/skeleton.el (source)...done
>> sh-if: Autoloading failed to define function skeleton-proxy-new
Obviously you have an old skeleton.el in /home/amuls/emacs/elisp/
which gets in the way.
Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-02-06 15:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-04 21:27 Which mode for editing (ba)sh scripts Alain Muls
2008-02-05 0:19 ` Peter Dyballa
[not found] ` <47A81DB8.6000900@telenet.be>
2008-02-05 9:10 ` Peter Dyballa
[not found] ` <47A837A1.90602@telenet.be>
2008-02-05 10:54 ` Peter Dyballa
[not found] ` <mailman.6993.1202208885.18990.help-gnu-emacs@gnu.org>
2008-02-06 15:03 ` Stefan Monnier
2008-02-05 7:19 ` Andreas Röhler
2008-02-05 8:45 ` Tassilo Horn
[not found] <mailman.6978.1202170424.18990.help-gnu-emacs@gnu.org>
2008-02-05 0:33 ` Carl
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).