Re: standard .el file to setup styles?


Subject: Re: standard .el file to setup styles?
From: Sam TH (sam@uchicago.edu)
Date: Sat Jan 27 2001 - 15:26:54 CST


On Sat, Jan 27, 2001 at 08:09:13AM +0100, Jesper Skov wrote:
> >>>>> "Sam" == Sam TH <sam@uchicago.edu> 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
        sam@uchicago.edu
        http://www.abisource.com/~sam/
        GnuPG Key:
        http://www.abisource.com/~sam/key




This archive was generated by hypermail 2b25 : Sat Jan 27 2001 - 15:27:39 CST