mercurial/crew at 13301: 6 outgoing changesets
Matt Mackall
mpm at selenic.com
Wed Jan 26 12:02:21 CST 2011
On Wed, 2011-01-26 at 13:00 +0100, Mercurial Commits wrote:
> http://hg.intevation.org/mercurial/crew/rev/613b8bd2284e
> changeset: 13297:613b8bd2284e
> user: Martin Geisler <mg at aragost.com>
> date: Wed Jan 26 12:05:01 2011 +0100
> summary: specify C indention style using Emacs file local variables
Yuck.
I think it'd be better if people tweaked their .emacs with something
like this (untested):
(defun hg-c-mode ()
"C mode with adjusted defaults for use with Mercurial source."
(interactive)
(c-mode)
(c-set-style "linux")
(setq show-trailing-whitespace 't)
(setq c-basic-offset 8))
(setq auto-mode-alist (cons '("mercurial/.*\\.[ch]$" . hg-c-mode)
auto-mode-alist))
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list