- 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
This commit is contained in:
tchernobog 2006-07-20 22:12:08 +00:00
parent 19ee5c1884
commit ddb0d99aca
2 changed files with 9 additions and 3 deletions

View File

@ -304,6 +304,7 @@ glade_DATA = \
# ############################################################ # ############################################################
pkginclude_HEADERS += \ pkginclude_HEADERS += \
src/templates/deletor.tcc \
src/templates/parameter.tcc \ src/templates/parameter.tcc \
src/templates/singleton.hh \ src/templates/singleton.hh \
src/templates/singleton.tcc \ src/templates/singleton.tcc \

View File

@ -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 for i in *; do tr -d '\r' < $i > $i.d; mv $i@{.d,@}; done
@end example @end example
``Emacs-style'' indentation is useful to ensure that your file will Using spaces instead of tabs in indentation is useful to ensure
be correctly indented if another developer on another machine 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 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 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 @acronym{GNU} Emacs has another nice property: it can automatically indent
code in a whole region for you, with @kbd{M-x indent-region}. code in a whole region for you, with @kbd{M-x indent-region}.