From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: Right align a single line Date: Fri, 21 Aug 2009 16:36:47 +0200 Organization: Freie Universitaet Berlin Message-ID: <87ljld44jk.wl%anselm.helbig+news2009@googlemail.com> References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1250865836 8975 80.91.229.12 (21 Aug 2009 14:43:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2009 14:43:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 21 16:43:48 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MeVLI-0005Sa-3N for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Aug 2009 16:43:48 +0200 Original-Received: from localhost ([127.0.0.1]:33313 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeVLH-0005pQ-DL for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Aug 2009 10:43:47 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-X-Trace: news.uni-berlin.de glb3B5FwmcCWDFs171/CRg8Li59p3lqTudGHv6sF35ZbqOBUEMmCnV19Xr Cancel-Lock: sha1:fg87zb2vT11ve35EIuuGLW4C7S8= In-Reply-To: Mail-Followup-To: anselm.helbig+news2009@googlemail.com Original-Xref: news.stanford.edu gnu.emacs.help:172195 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67357 Archived-At: At Thu, 20 Aug 2009 20:38:23 +0100, Noah Slater 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