- 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:
parent
19ee5c1884
commit
ddb0d99aca
|
@ -304,6 +304,7 @@ glade_DATA = \
|
|||
# ############################################################
|
||||
|
||||
pkginclude_HEADERS += \
|
||||
src/templates/deletor.tcc \
|
||||
src/templates/parameter.tcc \
|
||||
src/templates/singleton.hh \
|
||||
src/templates/singleton.tcc \
|
||||
|
|
|
@ -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}.
|
||||
|
|
Loading…
Reference in New Issue