From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: CHENG Gao Newsgroups: gmane.emacs.help Subject: Re: emacs 23 whitespace-mode, change newline display glyph Date: Wed, 12 Aug 2009 20:44:14 +0800 Organization: cyberhut.org Message-ID: References: <3cf016b2-6cfc-4898-9ffc-7ace62268be9@z4g2000prh.googlegroups.com> <87ljlw6ro3.fsf@lola.goethe.zz> <2a9a261c-bcd4-411b-9038-912cf5627ba1@y10g2000prf.googlegroups.com> <20090812110617$355d@prunille.vinc17.org> <87eirhb75k.fsf@iki.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1250084449 487 80.91.229.12 (12 Aug 2009 13:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Aug 2009 13:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 12 15:40:42 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 1MbE4H-0006Ta-By for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Aug 2009 15:40:41 +0200 Original-Received: from localhost ([127.0.0.1]:52707 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbE4F-0005gA-5Y for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Aug 2009 09:40:39 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsgate.cuhk.edu.hk!news.cn99.com!mb.cyberhut.org!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: 58.240.106.46 Original-X-Trace: news.cn99.com 1250081666 18191 58.240.106.46 (12 Aug 2009 12:54:26 GMT) Original-X-Complaints-To: news@news.cn99.com Original-NNTP-Posting-Date: Wed, 12 Aug 2009 12:54:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (darwin) Cancel-Lock: sha1:3xEvAworx/810geNY2r95whldQ8= Original-Xref: news.stanford.edu comp.emacs:98573 gnu.emacs.help:171905 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:67079 Archived-At: *On Wed, 12 Aug 2009 05:21:00 -0700 (PDT) * Also sprach Xah Lee : > On Aug 12, 4:31 am, Teemu Likonen wrote: >> On 2009-08-12 11:23 (UTC), Vincent Lefevre wrote: >> >> > Otherwise one can still use the Long Lines mode (longlines-mode, that >> > was already present in Emacs 22), which shows the logical lines in >> > some other way: with a character ("|" in Emacs 22, "¶" in Emacs 23) in >> > a different color at the end of the logical line (but with the >> > longlines mode, the show-trailing-whitespace variable has no effect). >> >> One can pretty much replace longlines-mode with this: >> >> (visual-line-mode 1) >> (whitespace-newline-mode 1) >> (setq fill-column 999999) >> >> This is nicer because longlines-mode is a hack which actually modifies >> the buffer in order to differentiate between hard and soft newlines. >> Emacs 23 has this proper way of doing it. > > in my emacs 23 both on Windows and Mac, the white space shows as $, > not ¶, when in whitespace-mode or whitespace-newline-mode. > > How to make it show line breaks using ¶ ? > > i tried to read the doc... which took me too See also `whitespace- > style', `whitespace-newline' and `whitespace-display-mappings', and > customize... but its rather confusing. > > Xah > ∑ http://xahlee.org/ > > ☄ Through reading whitespace-mode source, I found this works: ,---- | (setq whitespace-display-mappings '( | (newline-mark 10 | [182 10]))) `----