unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* longlines-mode and newline-and-indent
@ 2006-11-19 16:32 todd
  0 siblings, 0 replies; 2+ messages in thread
From: todd @ 2006-11-19 16:32 UTC (permalink / raw)



I'm trying to get some functionality using longlines-mode and newline- 
and-indent. Essentially, I want to write text under longlines-mode  
(soft returns at the fill column) but still be able to automatically  
indent my 5-spaces on line (hard) returns via the return key. I  
believe newline-and-indent is seeing the soft return from longlines- 
mode as the last indentation, and not indenting at all. Any help  
would be appreciated... also, if this is the incorrect approach for  
this behavior, please let me know ;-)

Thanks-
T

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: longlines-mode and newline-and-indent
       [not found] <mailman.838.1163957195.2155.help-gnu-emacs@gnu.org>
@ 2006-11-19 18:08 ` roodwriter
  0 siblings, 0 replies; 2+ messages in thread
From: roodwriter @ 2006-11-19 18:08 UTC (permalink / raw)


"todd@monkeybytes.org" <todd@monkeybytes.org> writes:

> I'm trying to get some functionality using longlines-mode and
newline-
> and-indent. Essentially, I want to write text under longlines-mode
> (soft returns at the fill column) but still be able to automatically
> indent my 5-spaces on line (hard) returns via the return key. I
> believe newline-and-indent is seeing the soft return from longlines-
> mode as the last indentation, and not indenting at all. Any help
> would be appreciated... also, if this is the incorrect approach for
> this behavior, please let me know ;-)
> 
> Thanks-
> T
> 
> 
> 

I've found that using longlines.el with paragraph-indent-text-mode
will give you the classic tabbed paragraph using M-i to tab. (There
are also C-q C-i and C-q tab).

You could use a macro, I suppose, to return and then tab. I one time
tried to redefine the tab key to M-i but found it made some of my
macros act strange. You'd need to use some keystroke command that
isn't already in use.

That said, as a full-time writer who uses longlines.el, I've found it
easier to use the block paragraph style when writing--a blank line
between paragraphs. There are many Emacs commands dealing with
paragraphs that won't work correctly with tabbed paragraphs. It's easy
to make a macro--I have a permanent one because I do this all the
time--that converts back and forth.

Block paragraphs also allow you to use regular text mode, which seems
to work better for me when I use outline-mode, which is all the time.

Hope this helps.

--Rod
______________________
Author of "Linux for Non-Geeks--Clear-eyed Answers for Practical
Consumers" and "Boring Stories from Uncle Rod." To reply by e-mail
take the second "o" out of the e-mail address.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-19 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.838.1163957195.2155.help-gnu-emacs@gnu.org>
2006-11-19 18:08 ` longlines-mode and newline-and-indent roodwriter
2006-11-19 16:32 todd

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).