From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: usability problem of emacs describe-mode Date: Sun, 1 Mar 2009 17:46:32 -0800 (PST) Organization: http://groups.google.com Message-ID: <8b86b73e-7084-4ca9-b075-a664468b0510@a5g2000pre.googlegroups.com> References: <76fcf833-ad89-44f2-b227-e18295317ca2@p13g2000yqc.googlegroups.com> <3c82f009-0676-4e26-bd58-d6b8c1921935@n33g2000pri.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1235987961 5592 80.91.229.12 (2 Mar 2009 09:59:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Mar 2009 09:59:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 02 11:00:37 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 1Le4wu-0000Zb-9V for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 11:00:37 +0100 Original-Received: from localhost ([127.0.0.1]:47954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Le4vZ-0002fu-BT for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 04:59:13 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!a5g2000pre.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 84 Original-NNTP-Posting-Host: 24.6.175.142 Original-X-Trace: posting.google.com 1235958392 32376 127.0.0.1 (2 Mar 2009 01:46:32 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 2 Mar 2009 01:46:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a5g2000pre.googlegroups.com; posting-host=24.6.175.142; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167203 X-Mailman-Approved-At: Mon, 02 Mar 2009 04:57:56 -0500 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:62510 Archived-At: Drew Adams wrote: > Description:http://www.emacswiki.org/emacs/PrettyControlL > Yes, and it's described in the file and the doc strings of the user optio= ns. To > quote: > > ------8<------------------- > * Option `pp^L-^L-string': > > Highlighted string displayed in place of each Control-l (^L) character. > If `pp^L-^L-string-function' is non-nil, then the string that function > returns is used instead of `pp^L-^L-string'. > > * Option `pp^L-^L-string-function': > > Function to produce string displayed in place of each Control-l (^L) char= . > If this is non-nil, then option `pp^L-^L-string' is not used. > You can use this option to have a dynamically defined display string. > For example, with `foo' as the value, and this definition, a > window-width horizontal line is displayed. > > (defun foo () (make-string (window-width) ?_)) > > In the library's Commentary: > > Note: If you use option `pp^L-^L-string-function' to define the ^L > appearance based on the current window (e.g. its width), then you > might want to add command `refresh-pretty-control-l' to variable > `window-configuration-change-hook', to automatically update the ^L > display whenever you resize the window: > > (add-hook 'window-configuration-change-hook > 'refresh-pretty-control-l) > ------8<------------------- > > So: > > * If you want a different static string from the default, > " Section (Printable Page) ", then just > customize `pp^L-^L-string'. > > * If you want a dynamic string, such as a horizontal line for the > full window width, even as the window is resized, then use > `pp^L-^L-string-function'. That option can have a function value. > If it does, then whatever string that function returns is used. > > You can also customize the face used, and prefix and suffix strings to bo= okend > the basic string. Hi Drew, i'm having some problem customize this. Basically, all i want is a single horizontal bar, in complete black, that's about 60 chars long. (which is a bit longer than the default) I tried to customize the string, or the font... basically now and then spend some 30 min but can't achieve this. i use customize-group. Each time, i have to reload pretty-control-l- mode, then call describe-mode again to see. The pp^l string i tried 60 spaces, to make it longer. The pp^l highlight i tried adjust the box, but then i got 2 bars. Then i tried turn off the box and use strick-through... but it became too thin. Also, i think when box is off and strike thru is on and string is spaces, it doesn't show the strike thru. Can you tell me what's the setting to use to get what i want? And, would you consider this as default? i.e. just a simple black horizontal line that's about 60 char long. Thanks Xah =E2=88=91 http://xahlee.org/ =E2=98=84