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 <jann...@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ®  http://AvatarAcademy.nl

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to