You are not logged in.

#1 2005-05-18 10:42:42

rafal
Member
From: Poland
Registered: 2005-05-18
Posts: 49

emacs and vim syntax colorization

Does anybody use an emacs or vim syntax colorization .el file for editing PKGBUILD files?

Offline

#2 2005-05-18 14:10:51

Vinny
Member
From: the fifth floor
Registered: 2005-04-25
Posts: 29

Re: emacs and vim syntax colorization

shell-script-mode works nicely.
PKGBUILD files are sourced by makepkg, which is a bash script.
:-)

Offline

#3 2005-05-21 06:14:29

miqorz
Member
Registered: 2004-12-31
Posts: 475

Re: emacs and vim syntax colorization

You mean kind of like this?

emacs-pkgbuild.png


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

#4 2005-05-21 15:58:37

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: emacs and vim syntax colorization

or this
pkgbuild0mh.th.png

(bam, same PKGBUILD, better editor - lol)

Offline

#5 2005-05-21 23:02:42

rafal
Member
From: Poland
Registered: 2005-05-18
Posts: 49

Re: emacs and vim syntax colorization

Yes, I meant both ot them:)
I have found the emacs PKGBUILD mode here:
http://www.hoetzel.info/Hacking/emacs/pkgbuild-mode.el
and where I can find the vim mode?

[Off topic]
By the way I'm at the stage of trying different editors and I have not decided yet. For now it's easier to write in emacs because i'm not get used to first write and then correct as vim forces me. And you, how do you use vim editor? First writing in insert mode and then correcting the text in command mode? Does it depend on the touch type skills and type errors number?

Thanks for help.

Offline

#6 2005-05-22 01:15:48

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: emacs and vim syntax colorization

rafal wrote:

Yes, I meant both ot them:)
I have found the emacs PKGBUILD mode here:
http://www.hoetzel.info/Hacking/emacs/pkgbuild-mode.el
and where I can find the vim mode?

for vim

set syntax=sh

a PKGBUILD is just a shell script

rafal wrote:

[Off topic]
By the way I'm at the stage of trying different editors and I have not decided yet. For now it's easier to write in emacs because i'm not get used to first write and then correct as vim forces me. And you, how do you use vim editor? First writing in insert mode and then correcting the text in command mode? Does it depend on the touch type skills and type errors number?

Thanks for help.

check here: http://bbs.archlinux.org/viewtopic.php?t=11988

Offline

Board footer

Powered by FluxBB