[ale] [OT] Making Emacs transparent in Cywgin

Lightner, Jeff JLightner at water.com
Thu Oct 31 14:03:56 EDT 2013


I’d say Cygwin IS on topic for LInux – it just runs the Linux (or for the pedantic GNU utilities for Linux) install under Windoze without requiring a dual boot setup.

From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Jonathan Meek
Sent: Thursday, October 31, 2013 11:45 AM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] [OT] Making Emacs transparent in Cywgin

I understand that but also keep in mind that this trick will actually work for linux as well. This is why I flagged my message as OT since I knew it wasn't directly Linux but thought it might help someone else down the road. Some of us are stuck working in Windoze world and it is helpful to try to bring some of the comforts of Linux into our workplace as much as possible.

On Thu, Oct 31, 2013 at 11:27 AM, Michael Trausch <mbt at naunetcorp.com<mailto:mbt at naunetcorp.com>> wrote:
When did Cygwin get ported to run on Linux? ;-)

Sent from my iPhone

On Oct 31, 2013, at 10:21 AM, Jonathan Meek <jonathan.l.meek at gmail.com<mailto:jonathan.l.meek at gmail.com>> wrote:

Hey guys,

Came across a way to make Emacs transparent in Cywgin after a bit of research and wanted to share.

1) start up Emacs
2) Add the following code to the buffer:

         (defun djcb-opacity-modify (&optional dec)
  "modify the transparency of the emacs frame; if DEC is t,
    decrease the transparency, otherwise increase it in 10%-steps"
  (let* ((alpha-or-nil (frame-parameter nil 'alpha)) ; nil before setting
          (oldalpha (if alpha-or-nil alpha-or-nil 100))
          (newalpha (if dec (- oldalpha 10) (+ oldalpha 10))))
    (when (and (>= newalpha frame-alpha-lower-limit) (<= newalpha 100))
      (modify-frame-parameters nil (list (cons 'alpha newalpha))))))

 ;; C-8 will increase opacity (== decrease transparency)
 ;; C-9 will decrease opacity (== increase transparency
 ;; C-0 will returns the state to normal
(global-set-key (kbd "C-8") '(lambda()(interactive)(djcb-opacity-modify)))
(global-set-key (kbd "C-9") '(lambda()(interactive)(djcb-opacity-modify t)))
(global-set-key (kbd "C-0") '(lambda()(interactive)
                               (modify-frame-parameters nil `((alpha . 100)))))

3) save the file (C-x C-s) at ~/emacs.d/init.el
4) restart Emacs

Note: this sets that C-8 decrease transparency, C-9 to increase transparency and C-0 to set to normal

Resources to make this guide:
http://emacs-fu.blogspot.com/2009/02/transparent-emacs.html
http://www.cs.colostate.edu/helpdocs/emacs.html
http://www.emacswiki.org/emacs/InitFile

Regards,

Jonathan




_______________________________________________

Ale mailing list
Ale at ale.org<mailto:Ale at ale.org>
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo

_______________________________________________
Ale mailing list
Ale at ale.org<mailto:Ale at ale.org>
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo






Athena®, Created for the Cause™

Making a Difference in the Fight Against Breast Cancer





How and Why I Should Support Bottled Water!
Do not relinquish your right to choose bottled water as a healthy alternative to beverages that contain sugar, calories, etc. Your support of bottled water will make a difference! Your signatures count! Go to http://www.bottledwatermatters.org/luv-bottledwater-iframe/dswaters and sign a petition to support your right to always choose bottled water. Help fight federal and state issues, such as bottle deposits (or taxes) and organizations that want to ban the sale of bottled water. Support community curbside recycling programs. Support bottled water as a healthy way to maintain proper hydration. Our goal is 50,000 signatures. Share this petition with your friends and family today!



---------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20131031/6e534450/attachment-0001.html>


More information about the Ale mailing list