Chapter J1
XEmacs customisation
Here’s the relevent section from my .emacs file for the coding guidelines
(require ’grdoc)
; C-mode customisation
(defun my-c-mode-common-hook ()
;; my customizations for all of c-mode, c++-mode, objc-mode, java-mode
(c-set-offset ’substatement-open 0)
(c-set-offset ’case-label ’+)
;; other customizations can go here
(turn-on-grdoc-mode)
(font-lock-mode)
(setq indent-tabs-mode nil)
)
(add-hook ’c-mode-common-hook ’my-c-mode-common-hook)