* Want to stop indenting when paragraph begins with tab
@ 2005-04-05 22:01 Tim Shippert
2005-04-06 4:40 ` Barry Margolin
0 siblings, 1 reply; 2+ messages in thread
From: Tim Shippert @ 2005-04-05 22:01 UTC (permalink / raw)
Guys:
I'm using emacs 21.2.1 on a linux box, although I've seen the
same behavior with 21.3.
In text and mail mode, I like to have the first line of my
paragraph start with a tab, while the rest of the paragraph starts at
column 0, just like the paragraphs I'm typing in this news message right
now. Up through emacs 20 or so, this worked fine with auto-fill on.
However, in recent emacses, auto-fill indents line two to match the first
line, so I'm stuck either indenting the whole paragraph or manually
deleting the tab on line two so lines three and on will match the
indentation and look like I want.
I can't figure out how to make emacs not indent the second line
of a paragraph like this. I've tried setting fill-prefix to nil, which
had no effect, and wrote my own version of indent-relative and set
indent-line-function to point to it in text-mode-hook. But I can't tell
if emacs is actually calling indent-line-function during do-auto-fill, or
really what it's doing at all during this whole fill-and-indent process.
Can somebody help me out here? I don't need a detailed solution,
I just need to know what functions or variables I should be working
with; I can probably hack up a solution that'll work for me if I can just
find out where to put it.
--
Tim Shippert
Whatever truculent means, if it's good, I'm that.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Want to stop indenting when paragraph begins with tab
2005-04-05 22:01 Want to stop indenting when paragraph begins with tab Tim Shippert
@ 2005-04-06 4:40 ` Barry Margolin
0 siblings, 0 replies; 2+ messages in thread
From: Barry Margolin @ 2005-04-06 4:40 UTC (permalink / raw)
In article <jfo8y3wsx1u.fsf@alumnus.caltech.edu>,
Tim Shippert <shippert@alumni.caltech.edu> wrote:
> Can somebody help me out here? I don't need a detailed solution,
> I just need to know what functions or variables I should be working
> with; I can probably hack up a solution that'll work for me if I can just
> find out where to put it.
See the variable adaptive-fill-mode, as well as all the other variables
that begin with "adaptive".
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-06 4:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-05 22:01 Want to stop indenting when paragraph begins with tab Tim Shippert
2005-04-06 4:40 ` Barry Margolin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).