<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 &lt;<a href="mailto:jonathan.l.meek@gmail.com">jonathan.l.meek@gmail.com</a>&gt; 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.&nbsp;</p>
<p dir="ltr">1) start up Emacs&nbsp;<br>
2) Add the following code to the buffer:&nbsp;</p>
<p dir="ltr">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(defun djcb-opacity-modify (&amp;optional dec)<br>
&nbsp; "modify the transparency of the emacs frame; if DEC is t,<br>
&nbsp; &nbsp; decrease the transparency, otherwise increase it in 10%-steps"<br>
&nbsp; (let* ((alpha-or-nil (frame-parameter nil 'alpha)) ; nil before setting<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (oldalpha (if alpha-or-nil alpha-or-nil 100))<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (newalpha (if dec (- oldalpha 10) (+ oldalpha 10))))<br>
&nbsp; &nbsp; (when (and (&gt;= newalpha frame-alpha-lower-limit) (&lt;= newalpha 100))<br>
&nbsp; &nbsp; &nbsp; (modify-frame-parameters nil (list (cons 'alpha newalpha))))))</p>
<p dir="ltr">&nbsp;;; C-8 will increase opacity (== decrease transparency)<br>
&nbsp;;; C-9 will decrease opacity (== increase transparency<br>
&nbsp;;; 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>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(modify-frame-parameters nil `((alpha . 100)))))</p>
<p dir="ltr">3) save the file (C-x C-s) at ~/emacs.d/init.el&nbsp;<br>
4) restart Emacs&nbsp;</p>
<p dir="ltr">Note: this sets that C-8 decrease transparency, C-9 to increase transparency and C-0 to set to normal&nbsp;</p>
<p dir="ltr">Resources to make this guide:&nbsp;<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>