[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

.emacs fix for dired with non-default font

From: Robert J. Chassell
Subject: .emacs fix for dired with non-default font
Date: Fri, 27 Jan 2006 15:41:27 +0000 (UTC)

Today's GNU Emacs CVS snapshot, Fri, 2006 Jan 27  11:39 UTC
GNU Emacs (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
    address@hidden                         GnuPG Key ID: 004B4AC8
    http://www.rattlesnake.com                  http://www.teak.cc

reply via email to

[Prev in Thread] Current Thread [Next in Thread]