blob: 88bb92fe864658c55942f8d2eb695366ea41c7aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
% /*@@
% @file Appendices.tex
% @date Wed Jan 12 14:38:29 2000
% @author Tom Goodale
% @desc
%
% @enddesc
% @version $Header$
% @@*/
\begin{cactuspart}{10}{Appendices}{$RCSfile$}{$Revision$}
\renewcommand{\thepage}{\Alph{part}\arabic{page}}
\chapter{XEmacs customisation}
Here's the relevent section from my .emacs file for the coding guidelines
\begin{verbatim}
(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)
\end{verbatim}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{cactuspart}
|