help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: font for dired mode?


From: David Reitter
Subject: Re: font for dired mode?
Date: Sun, 24 Apr 2005 08:53:07 +0100

Hi Kevin,

problem solved!

Why is the Dired buffer opened in a new frame?  Is it because you're
using `C-x 5 d', or is some other customization coming into play
(e.g. special-display-buffer-names)?

Yes, some other customizations are used; it's an option the user has.


(defvar dired-other-frame-alist nil)

(defadvice dired-other-frame (around frame-alist activate)

Doesn't work for me, I suspect dired-other-frame is not used.

(add-hook 'after-make-frame-functions


This is getting closer! The working code is:

 (add-hook  'after-make-frame-functions
          (lambda (frame)
            (select-frame frame)
            (when (eq major-mode 'dired-mode)
              (set-frame-font "fontset-monaco12"))))

Many thanks for setting me on the right track

-- David






reply via email to

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