On Sat, Jan 27, 2001 at 08:09:13AM +0100, Jesper Skov wrote:
> >>>>> "Sam" == Sam TH <[EMAIL PROTECTED]> writes:
> Sam> tabs). Then, we add the following at the end of all the source
> Sam> files:
>
> I like the idea of an emacs spec file in the repo.
>
> I don't like cluttering all the files with the reference to it though.
> Rather we do it like:
>
> abiword.el:
> ---------------------------------------------------------------
> (defun abi-c-mode ()
> "C mode with adjusted defaults for use with the AbiWord sources."
> (interactive)
> (c++-mode)
> (c-set-style "K&R")
> (setq c-basic-offset 4)
> (setq indent-tabs-mode t)
> (show-paren-mode 1)
> (setq tab-width 4)
>
> (setq auto-mode-alist
> (cons '(".*/abiword/.*\\.[ch].*$" . abi-c-mode)
> auto-mode-alist))
> ---------------------------------------------------------------
>
> And tell people to check out the sources in a directory named
> 'abiword'.
Well, aside from prefering Aaron's regexp, the major problem with this
is that it requires referencing the abiword.el file in the users
.emacs file. The goal of my suggestion is to avoid the user having to
do anything to get the desired results.
sam th
[EMAIL PROTECTED]
http://www.abisource.com/~sam/
GnuPG Key:
http://www.abisource.com/~sam/key
PGP signature