From: Nick Chorley <nick@nospam.xyphias.com>
Subject: Re: Tab problem
Date: Mon, 06 Sep 2004 12:29:08 +0100 [thread overview]
Message-ID: <413c4a08$0$22753$db0fefd9@news.zen.co.uk> (raw)
In-Reply-To: <mailman.1642.1094465086.1998.help-gnu-emacs@gnu.org>
Kai Grossjohann wrote:
> Nick Chorley <nick@nospam.xyphias.com> writes:
>
>
>>I have a problem with Emacs which is that I can't seem to enter more
>>than 1 tab when in C++/Java mode (it does do the automatic indentation
>>like when you're using if statements though). When in the "normal" text
>>editing mode, I can't enter any tabs.
>
>
> Can you show why you need it? The responses you get might be
> unexpected and might give you some insight in how to use Emacs better.
>
> For example, if you wish to enter more tabs for indentation, then you
> act against Emacs' syntax-driven indenting code. Using syntax-driven
> indentation is a most valuable tool in finding typos. (A forgotten
> "}" will show up real quick because after that "}" the indentation is
> all wrong.)
>
> As another example, if you wish to enter tabs to align code, then you
> might be happy with marking the lines to align and then typing M-x
> align RET. This will produce things like:
>
> int x = 3;
> float longname = 3.14;
>
> Cool, isn't it?
>
> You can always type M-i to advance to the next tab stop. Advancing to
> the next tab stop does not always equate to inserting a tab character,
> but it's related.
>
> Kai
>
>
>
>
It was mainly so I could put comments in without simply entering a load
of spaces. Apart from that, well, I don't like the way it indents things
like switch statements (ie. the case x: bits go right underneath the
word switch, instead of being indented a bit, if you see what I mean).
There were a few other things too, but I've got it sorted now.
Thanks though :).
Nick
next prev parent reply other threads:[~2004-09-06 11:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-04 13:45 Tab problem Nick Chorley
2004-09-05 2:09 ` Michael Slass
2004-09-07 13:53 ` kgold
2004-09-05 8:26 ` Juraj Kubelka
[not found] ` <mailman.1551.1094373130.1998.help-gnu-emacs@gnu.org>
2004-09-05 16:42 ` Nick Chorley
2004-09-06 9:58 ` Kai Grossjohann
[not found] ` <mailman.1642.1094465086.1998.help-gnu-emacs@gnu.org>
2004-09-06 11:29 ` Nick Chorley [this message]
2004-09-06 12:16 ` Kai Grossjohann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='413c4a08$0$22753$db0fefd9@news.zen.co.uk' \
--to=nick@nospam.xyphias.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.