Subject: Re: standard .el file to setup styles?
From: Jesper Skov (jskov@redhat.com)
Date: Sat Jan 27 2001 - 01:09:13 CST
>>>>> "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'.
Jesper
This archive was generated by hypermail 2b25 : Sat Jan 27 2001 - 01:09:18 CST