* how automatically to adjust the outer view of a new frame
@ 2008-08-17 11:46 Daneel Yaitskov
0 siblings, 0 replies; only message in thread
From: Daneel Yaitskov @ 2008-08-17 11:46 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-17 11:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-17 11:46 how automatically to adjust the outer view of a new frame Daneel Yaitskov
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.