From ddb0d99acaf031f860926754afa9f676488980d0 Mon Sep 17 00:00:00 2001 From: tchernobog Date: Thu, 20 Jul 2006 22:12:08 +0000 Subject: [PATCH] - Add note about indentation in Emacs (how to get it right) - Add deletor.tcc to Makefile.am git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@788 3ecf2c5c-341e-0410-92b4-d18e462d057c --- Makefile.am | 1 + doc/sgpem2dman.texi | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index c03ad82..e3fd02d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -304,6 +304,7 @@ glade_DATA = \ # ############################################################ pkginclude_HEADERS += \ + src/templates/deletor.tcc \ src/templates/parameter.tcc \ src/templates/singleton.hh \ src/templates/singleton.tcc \ diff --git a/doc/sgpem2dman.texi b/doc/sgpem2dman.texi index 82f5b15..cfbbceb 100644 --- a/doc/sgpem2dman.texi +++ b/doc/sgpem2dman.texi @@ -681,11 +681,16 @@ it is only if no binary files are present in the current directory!): for i in *; do tr -d '\r' < $i > $i.d; mv $i@{.d,@}; done @end example -``Emacs-style'' indentation is useful to ensure that your file will -be correctly indented if another developer on another machine +Using spaces instead of tabs in indentation is useful to ensure +that your file will be correctly shown if another developer on another machine opens it with Emacs, Vim, Notepad, or what else he likes. A good idea is to use an editor which substitutes the @key{TAB} character -with spaces. Most UNIX editors indent text files cleverly. +with spaces. Most UNIX editors indent text files cleverly. The tab size is set +to 2, the Emacs default. + +You may want to set @code{indent-tabs-mode} to @code{nil} in your +@file{$HOME/.emacs} initialization file. It's an option you can find via +@key{M-x} @command{customize-group fill}. @acronym{GNU} Emacs has another nice property: it can automatically indent code in a whole region for you, with @kbd{M-x indent-region}.