[Top][All Lists]

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

Mode-specific font setting?

From: David Reitter
Subject: Mode-specific font setting?
Date: Mon, 25 Apr 2005 19:35:43 +0100

How do I set a mode-specific font?
I've tried this hack:

 (add-hook 'after-change-major-mode-hook        
          (lambda ()
          (case major-mode
                (set-frame-font "fontset-lucida14")

Unfortunately it doesn't work, obviously because the selected frame is a different one when the hook is called (find-file-other-frame was used to open a file), so the font gets set in the wrong frame.

Maybe there is a more elegant way (customization?) than using a hook, anyways.


reply via email to

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