<p dir="ltr">Hey guys,</p>
<p dir="ltr">Came across a way to make Emacs transparent in Cywgin after a bit of research and wanted to share. </p>
<p dir="ltr">1) start up Emacs <br>
2) Add the following code to the buffer: </p>
<p dir="ltr"> (defun djcb-opacity-modify (&optional dec)<br>
"modify the transparency of the emacs frame; if DEC is t,<br>
decrease the transparency, otherwise increase it in 10%-steps"<br>
(let* ((alpha-or-nil (frame-parameter nil 'alpha)) ; nil before setting<br>
(oldalpha (if alpha-or-nil alpha-or-nil 100))<br>
(newalpha (if dec (- oldalpha 10) (+ oldalpha 10))))<br>
(when (and (>= newalpha frame-alpha-lower-limit) (<= newalpha 100))<br>
(modify-frame-parameters nil (list (cons 'alpha newalpha))))))</p>
<p dir="ltr"> ;; C-8 will increase opacity (== decrease transparency)<br>
;; C-9 will decrease opacity (== increase transparency<br>
;; C-0 will returns the state to normal<br>
(global-set-key (kbd "C-8") '(lambda()(interactive)(djcb-opacity-modify)))<br>
(global-set-key (kbd "C-9") '(lambda()(interactive)(djcb-opacity-modify t)))<br>
(global-set-key (kbd "C-0") '(lambda()(interactive)<br>
(modify-frame-parameters nil `((alpha . 100)))))</p>
<p dir="ltr">3) save the file (C-x C-s) at ~/emacs.d/init.el <br>
4) restart Emacs </p>
<p dir="ltr">Note: this sets that C-8 decrease transparency, C-9 to increase transparency and C-0 to set to normal </p>
<p dir="ltr">Resources to make this guide: <br>
<a href="http://emacs-fu.blogspot.com/2009/02/transparent-emacs.html">http://emacs-fu.blogspot.com/2009/02/transparent-emacs.html</a><br>
<a href="http://www.cs.colostate.edu/helpdocs/emacs.html">http://www.cs.colostate.edu/helpdocs/emacs.html</a><br>
<a href="http://www.emacswiki.org/emacs/InitFile">http://www.emacswiki.org/emacs/InitFile</a></p>
<p dir="ltr">Regards,</p>
<p dir="ltr">Jonathan</p>