about hooks

about hooks

Post by Mark » Tue, 10 Feb 2009 11:12:23


trying to figure out this piece of code:

(defun my-c-mode-common-hook ()
(c-set-offset 'member-init-intro '++)
(setq tab-width 4)
(c-set-style "bsd")
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)

(setq-default c-default-style (quote ((java-mode . "java") (other .

My understanding is that "bsd" coding style, as well all the indentation
variables etc. defined in the hook above, are selected for _all_ languages
supported by CC-mode code , while for java files "java" gets selected,
otherwise "gnu"

Is that correct?

-- Mark