help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Right align a single line


From: Anselm Helbig
Subject: Re: Right align a single line
Date: Fri, 21 Aug 2009 16:36:47 +0200

At Thu, 20 Aug 2009 20:38:23 +0100,
Noah Slater <nslater@gnu.org> wrote:
> 
> Hello,
> 
> How do I right align a single line, such as:
> 
> - foo
> 
> So that it is flush with the right margin, like:
> 
>                                                                           - 
> foo
> 
> If I run M-x set-justification-right, I end up with:
> 
> -                                                                           
> foo
> 
> Which is obviously not what I want.
> 
> Doing that also results in the rest of what I have to type being right 
> aligned.

Try to stick this in your .emacs:

  (setq adaptive-fill-mode nil)

Alternatively you can customize adaptive-fill-regexp to not include a
dash, so that fill-paragraph and friends still work properly for
e.g. email quotes.

HTH, 

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]