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

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

how automatically to adjust the outer view of a new frame


From: Daneel Yaitskov
Subject: how automatically to adjust the outer view of a new frame
Date: Sun, 17 Aug 2008 15:46:58 +0400

Hi,

I have met with this problem when I started to use the vm mail
client. Starting vm creates the new frame which hasn't any feature
that is supply by the .emacs file. The same effect gives the
make-frame function.

I have scaned the elisp manual and have found the
after-make-frame-functions hook. It is called after make-frame creates
the frame. I use this hook so:

(add-hook 'after-make-frame-functions
          (lambda (n) 
          (frame-focus n)
          (set-foreground-color "white")
(set-background-color "black")
(set-frame-font "-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1")
))

These commands don't change the outer view of a new frame. But this
hook works, because it see result of such command as the "message".


Daneel




reply via email to

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