Hi,

Since alpha is a frame parameter, there is a standard way:

 (add-to-list 'default-frame-alist '(alpha . (90 85)))


Seiji

2007/6/1, popeketric <[EMAIL PROTECTED]>:
>
> Greetings.
>
> I've been trying to come up with a way to keep my transparency
> settings when opening new frames (Using C-x 5 f and C-x 5 b). I wasn't
> able to find any help online, so I thought I would post what I got
> working here.
>
> ;;; Set the opacity of new frames.
> (add-hook 'after-make-frame-functions '(lambda (frame)
>                                          (set-frame-parameter frame
> 'alpha '(90 85))))
>
> Hope this helps someone,
> --Chris

--~--~---------~--~----~------------~-------~--~----~
"Carbon Emacs" group mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/carbon-emacs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to