unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* .emacs fix for dired with non-default font
@ 2006-01-27 15:41 Robert J. Chassell
  0 siblings, 0 replies; only message in thread
From: Robert J. Chassell @ 2006-01-27 15:41 UTC (permalink / raw)
  Cc: bob

Today's GNU Emacs CVS snapshot, Fri, 2006 Jan 27  11:39 UTC
GNU Emacs 22.0.50.16 (i686-pc-linux-gnu, GTK+ Version 2.8.10)
started with

     /usr/local/src/emacs/src/emacs -Q -D \
     --eval '(setq-default mode-line-buffer-identification
                           (quote (#("%14b" 0 4 (face (:weight normal))))))' \
     -fn "-Misc-Fixed-Medium-R-Normal--20-200-75-75-C-100-ISO8859-1"

A person may prefer a larger font on a monitor with many pixels per
millimeter.  (The issue does not arise in a default Emacs started with

    /usr/local/src/emacs/src/emacs -Q -D

only, since that instance uses a conventional font.)

With a "10x20" font, find-file (`C-x C-f') displays the name with a
normal weight for the buffer identification face.

However, the `setq-default mode-line-buffer-identification' fails for
dired, since the `propertized-buffer-identification' function
definition in emacs/lisp/bindings.el sets the face to
`mode-line-buffer-id', which by default is bold.

A person who uses this font can reset `mode-line-buffer-id' by putting
the following expression in his .emacs file:

    (custom-set-faces '(mode-line-buffer-id ((t (:weight normal)))))

Since discovery is sufficiently difficult, and since additional people
will begin to use displays with more than the currently conventional
number of pixels per millimeter, unless people argue otherwise in the
next few days, I will add this as an example to emacs/man/custom.texi
in @node Init Examples

--
    Robert J. Chassell
    bob@rattlesnake.com                         GnuPG Key ID: 004B4AC8
    http://www.rattlesnake.com                  http://www.teak.cc

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-27 15:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-27 15:41 .emacs fix for dired with non-default font Robert J. Chassell

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).