|
From: | Jan Nieuwenhuizen |
Subject: | Re: CG: describe new C++ formatting (GOP-PROP 3) (issue4760056) |
Date: | Mon, 25 Jul 2011 12:54:55 +0200 |
User-agent: | Gnus/5.110016 (No Gnus v0.16) Emacs/23.3 (cygwin) |
Graham Percival writes: > I have no clue how the .emacs is supposed to look...? Lisp is quite like scheme; like this (add-hook 'c++-mode-hook '(lambda () (setq indent-tabs-mode nil) (c-set-style "gnu"))) In fact, I have (add-hook 'c++-mode-hook '(lambda () (if (not c-indentation-style) (progn (c-set-style "gnu") (setq indent-tabs-mode nil))))) [and (setq auto-mode-alist (append '(("\\.texi$" . texinfo-mode) ("\\.make$" . makefile-mode) ("\\.py$" . python-mode) ("\\.cc$" . c++-mode) ("\\.icc$" . c++-mode) ("\\.tcc$" . c++-mode) ("\\.hh$" . c++-mode)) auto-mode-alist)) (add-hook 'python-mode-hook (lambda () (mapcar (function (lambda (x) (modify-syntax-entry (car x) (cdr x) py-mode-syntax-table))) '(( ?\_ . "_" ))) (setq indent-tabs-mode nil))) (setq py-indent-offset 4) ] Jan -- Jan Nieuwenhuizen <address@hidden> | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.nl
[Prev in Thread] | Current Thread | [Next in Thread] |