Created
March 15, 2015 18:58
-
-
Save benzap/89759928060f4578c063 to your computer and use it in GitHub Desktop.
Emacs: Transparency Function that works in windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun set-transparency (alpha-level) | |
(interactive "p") | |
(message (format "Alpha level passed in: %s" alpha-level)) | |
(let ((alpha-level (if (< alpha-level 2) | |
(read-number "Opacity percentage: " 85) | |
alpha-level)) | |
(myalpha (frame-parameter nil 'alpha))) | |
(set-frame-parameter nil 'alpha alpha-level)) | |
(message (format "Alpha level is %d" (frame-parameter nil 'alpha)))) | |
;;(set-transparency 90) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Grabbed from http://gregorygrubbs.com/emacs/10-tips-emacs-windows/