* defcustom for ^L display?
@ 2006-12-12 21:13 Drew Adams
2007-07-01 15:31 ` Drew Adams
0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2006-12-12 21:13 UTC (permalink / raw)
For possible consideration after the release - Let users customize how they
want ^L to appear in buffers.
Here is one approach, to give an idea:
(defcustom ^L-appearance-vector
(vconcat (make-vector 10 ?_) " Section (Printable Page) "
(make-vector 10 ?_))
"Vector determining how a Control-l character is displayed.
Either a vector of characters or nil. The characters are displayed in
place of the Control-l character. nil means `^L' is displayed.
Some possible values (evaluate the Lisp expressions first):
nil: ^L
(make-vector 50 ?_): Horizontal line
(vconcat (make-vector 10 ?_)
\" Section (Printable Page) \" (make-vector 10 ?_)): WYSIWYG"
:initialize 'custom-initialize-changed'
:set (lambda (symb val)
(set-default symb val)
(aset standard-display-table ?\014 ^L-appearance-vector))
:type '(choice
(const :tag "^L" nil)
(restricted-sexp :match-alternatives (vectorp)
:tag "Vector of characters to display"))
:group 'convenience :group 'wp)
(aset standard-display-table ?\014 ^L-appearance-vector)
Some people might prefer nil as the default value, but if newbies are the
target for the uncustomized value, then a default value something like that
shown here might be better.
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: defcustom for ^L display?
2006-12-12 21:13 defcustom for ^L display? Drew Adams
@ 2007-07-01 15:31 ` Drew Adams
0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2007-07-01 15:31 UTC (permalink / raw)
To: Emacs-Devel
Resending, since the release is now out.
> From: Drew Adams Sent: Tuesday, December 12, 2006 1:13 PM
> For possible consideration after the release - Let users
> customize how they want ^L to appear in buffers.
A library with a minor mode implementing such a feature is here:
http://www.emacswiki.org/cgi-bin/wiki/pp-c-l.el. Description:
http://www.emacswiki.org/cgi-bin/wiki/PrettyControlL.
> Here is one approach, to give an idea:
>
> (defcustom ^L-appearance-vector
> (vconcat (make-vector 10 ?_) " Section (Printable Page) "
> (make-vector 10 ?_))
> "Vector determining how a Control-l character is displayed.
> Either a vector of characters or nil. The characters are displayed in
> place of the Control-l character. nil means `^L' is displayed.
>
> Some possible values (evaluate the Lisp expressions first):
> nil: ^L
> (make-vector 50 ?_): Horizontal line
> (vconcat (make-vector 10 ?_)
> \" Section (Printable Page) \" (make-vector 10 ?_)): WYSIWYG"
>
> :initialize 'custom-initialize-changed'
> :set (lambda (symb val)
> (set-default symb val)
> (aset standard-display-table ?\014 ^L-appearance-vector))
> :type '(choice
> (const :tag "^L" nil)
> (restricted-sexp :match-alternatives (vectorp)
> :tag "Vector of characters to display"))
> :group 'convenience :group 'wp)
>
> (aset standard-display-table ?\014 ^L-appearance-vector)
>
> Some people might prefer nil as the default value, but if newbies
> are the target for the uncustomized value, then a default value
> something like that shown here might be better.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-01 15:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-12 21:13 defcustom for ^L display? Drew Adams
2007-07-01 15:31 ` Drew Adams
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.