<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>When did Cygwin get ported to run on Linux? ;-)<br><br>Sent from my iPhone</div><div><br>On Oct 31, 2013, at 10:21 AM, Jonathan Meek <<a href="mailto:jonathan.l.meek@gmail.com">jonathan.l.meek@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><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>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Ale mailing list</span><br><span><a href="mailto:Ale@ale.org">Ale@ale.org</a></span><br><span><a href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a></span><br><span>See JOBS, ANNOUNCE and SCHOOLS lists at</span><br><span><a href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a></span><br></div></blockquote></body></html>