From: kai.grossjohann@gmx.net (Kai Großjohann)
Subject: Re: Understanding Emacs and Tabs
Date: Sat, 17 May 2003 22:02:39 +0200 [thread overview]
Message-ID: <84smrdl4tc.fsf@lucy.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: 227a55e9.0305161206.1ec75044@posting.google.com
pemente@northpark.edu (Eric Pement) writes:
> kai.grossjohann@gmx.net (Kai Großjohann) wrote in message news:<848yteq43p.fsf@lucy.is.informatik.uni-duisburg.de>...
>> pemente@northpark.edu (Eric Pement) writes:
>>
>> > Hi! I've just posted a web page entitled "Understanding GNU Emacs
>> > and Tabs", which I hope to be of help to other users
> [ ... ]
>
>> I wish it explained better about syntax-driven indentation. The key
>> issue, I think, is that syntax-driven indentation can usually be
>> configured to the user's liking. And once that has happened, it is a
>> useful time-saver.
>
> That's something that I need to learn more about, but I haven't
> got enough experience to understand it well enough to explain it
> to others. My main experience is with web programming languages
> (HTML, XML, Perl, PHP, JavaScript, etc.).
Hm, okay. Indentation of HTML and XML is a thorny issue, because
there are at least three different modes out there and each of them
handles indentation differently.
The key thing to remember about syntax-driven indentation is that it
works differently in each mode, because the syntax is different in
each mode.
>> Another detail that might be useful is the variable
>> c-tab-always-indent.
>
> I will try to work it in there, but my thought was that perhaps
> this variable is used only for C programming?
For Perl, there are also two modes, perl-mode and cperl-mode, and
cperl-mode has a variable cperl-tab-always-indent. Not sure about
perl-mode.
So there are some modes which have similar variables.
> I use Emacs more frequently for HTML, outline-mode, plain text, so I
> assumed that maybe c-tab-always-indent was not used that often.
I see. Well, C programmers will have a different opinion :-)
> My more frequent frustrations happen when I'm editing my .emacs file
> (Lisp-mode) and the TAB key doesn't seem to work like I expect. So
> I've developed a habit of just using the spacebar to do all my
> indentation.
What do you expect from the TAB key? And what does it do?
FWIW, I use TAB for syntax driven indentation in all modes, and I use
M-i to advance to the next tab stop. For me, tab-stop-list contains
multiples of 8, so M-i conveniently inserts a tab character if
indent-tabs-mode is t.
Then if in some modes TAB in the middle of a line does not indent, I
try to find out how to make it so. And if that is not possible, I
just use TAB at the beginning of the line in those modes.
--
This line is not blank.
next prev parent reply other threads:[~2003-05-17 20:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-06 15:28 Understanding Emacs and Tabs Eric Pement
2003-05-06 17:41 ` Paul D. Smith
2003-05-16 18:56 ` Eric Pement
2003-05-10 14:16 ` Kai Großjohann
2003-05-16 20:06 ` Eric Pement
2003-05-17 20:02 ` Kai Großjohann [this message]
2003-05-17 22:27 ` Stefan Monnier
2003-05-18 8:30 ` Kai Großjohann
-- strict thread matches above, loose matches on Subject: below --
2003-05-16 19:24 Bingham, Jay
[not found] <mailman.6321.1053113095.21513.help-gnu-emacs@gnu.org>
2003-05-16 19:44 ` Paul D. Smith
2003-05-16 21:35 ` Kevin Rodgers
2003-05-17 19:57 ` Kai Großjohann
2003-05-19 14:51 Bingham, Jay
2003-05-19 16:37 ` Kai Großjohann
2003-05-19 19:49 Bingham, Jay
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=84smrdl4tc.fsf@lucy.is.informatik.uni-duisburg.de \
--to=kai.grossjohann@gmx.net \
/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.