Skip to content

Instantly share code, notes, and snippets.

@benzap
Created March 15, 2015 18:58
Show Gist options
  • Save benzap/89759928060f4578c063 to your computer and use it in GitHub Desktop.
Save benzap/89759928060f4578c063 to your computer and use it in GitHub Desktop.
Emacs: Transparency Function that works in windows
(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)
@benzap
Copy link
Author

benzap commented Mar 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment