unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: font for dired mode?
@ 2005-04-22  6:29 David Reitter
  2005-04-22 13:57 ` Joe Corneli
  0 siblings, 1 reply; 8+ messages in thread
From: David Reitter @ 2005-04-22  6:29 UTC (permalink / raw)


Joe Corneli <jcorneli <at> math.utexas.edu> writes:

  >    I'm trying to set a different font for the dired mode. I would 
like to
 >    make everything appear in "fontset-monaco12". I've tried setting 
the
 >    faces (like dired-header), but that didn't work at all.
 >
 > Hm... Did you customize the faces, or just mess around with them by
 > hand?  You should be able to type M-x customize-face

I can customize a whole bunch of dired-* faces, and when I deselect 
some "inherit"
flag, the faces a even used in the buffer. However, and that is still 
my main problem,
I can't find the face for meta  information for a file except for the 
file name.
Everything that's marked in [ ] here:

[-rw-r--r--    1 dr  admin    16716 19 Apr 11:09 ] ansi-color.elc

This still appears in the proportional default face.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: font for dired mode?
@ 2005-04-24  7:53 David Reitter
  0 siblings, 0 replies; 8+ messages in thread
From: David Reitter @ 2005-04-24  7:53 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* font for dired mode?
@ 2005-04-21 23:07 David Reitter
  2005-04-21 23:29 ` Joe Corneli
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: David Reitter @ 2005-04-21 23:07 UTC (permalink / raw)


Hi,

I'm trying to set a different font for the dired mode. I would like to 
make everything appear in "fontset-monaco12". I've tried setting the 
faces (like dired-header), but that didn't work at all.

Then I've tried this:

(add-hook 'dired-mode-hook	      (lambda () (set-frame-font 
"fontset-monaco12")))

but the result was only that the buffer from which i called dired was 
displayed in monaco, but not the newly opened frame for dired. It's 
like the hook is called from the wrong context, with a different frame 
being the selected frame.

So I don't know what to do -- anyone have an idea?
Many thanks!

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-04-24  7:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-22  6:29 font for dired mode? David Reitter
2005-04-22 13:57 ` Joe Corneli
  -- strict thread matches above, loose matches on Subject: below --
2005-04-24  7:53 David Reitter
2005-04-21 23:07 David Reitter
2005-04-21 23:29 ` Joe Corneli
2005-04-22  9:23 ` Peter Dyballa
2005-04-22  9:33   ` David Reitter
2005-04-22 16:04 ` Kevin Rodgers

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).