all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to whip Emacs into weird indentation rules with tabs+spaces?
@ 2008-07-18  0:35 Juanma
  2008-07-18 16:51 ` Alan Mackenzie
  0 siblings, 1 reply; 7+ messages in thread
From: Juanma @ 2008-07-18  0:35 UTC (permalink / raw)
  To: help-gnu-emacs

Hi ... again.

The question is, for C++ code, how to make Emacs insert tabs for "main
indentation" and spaces for "sub-indentation". Example:

|---| = tab     . = space

|---|while ( something &&
|---|........some_else )
|---|---|then_do_something();

The idea is that tab goes one level further, but for same-level adjustments
only spaces should be used.

How to force Emacs into that insanity? (no, it's not my personal choice)

Many thanks.
-- 
Juanma

"Having a smoking section in a restaurant is like
 having a peeing section in a swimming pool."
       -- Edward Burr








^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <mailman.14916.1216341367.18990.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2008-07-20 22:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18  0:35 How to whip Emacs into weird indentation rules with tabs+spaces? Juanma
2008-07-18 16:51 ` Alan Mackenzie
2008-07-18 21:53   ` Nikolaj Schumacher
2008-07-19  1:56     ` Juanma
2008-07-19 18:18   ` Juanma
2008-07-20 22:13     ` Nikolaj Schumacher
     [not found] <mailman.14916.1216341367.18990.help-gnu-emacs@gnu.org>
2008-07-18 10:04 ` Xah

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.