[TriLUG] emacs question
Ed Hill
ed at eh3.com
Wed May 30 10:11:46 EDT 2007
On Wed, 30 May 2007 09:14:45 -0400 Brian Templeton wrote:
>
> You probably want to change CC Mode's C coding style to something
> other than the default of "gnu". Styles are documented in (info
> "(ccmode)Styles"), and the built-in styles are listed in (info
> "(ccmode)Built-in Styles"). From your example, it looks like you want
> to use the BSD style with a four-space indent; to do this by default
> in C mode, you can add the following form to your .emacs:
Another set of options that may be close to what you want:
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or
cut/paste it! ;; Your init file should contain only one such instance.
'(auto-compression-mode t nil (jka-compr))
'(c-basic-offset 4)
'(c-default-style (quote ((c-mode . "linux") (c++-mode .
"stroustrup"))))
'(c-indent-comments-syntactically-p t)
'(case-fold-search t)
'(current-language-environment "English")
'(fill-column 75)
'(global-font-lock-mode t nil (font-lock))
'(require-final-newline t)
'(show-paren-mode t nil (paren))
'(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)))
'(transient-mark-mode t))
Ed
--
Edward H. Hill III, PhD | ed at eh3.com | http://eh3.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://www.trilug.org/pipermail/trilug/attachments/20070530/785826e2/attachment.pgp>
More information about the TriLUG
mailing list