Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(defun toggle-trans ()
(interactive)
(let* ((pair (or (frame-parameter nil 'alpha) '(100 100)))
(alpha (apply '+ pair)))
(set-frame-parameter nil 'alpha
(if (or (null alpha) (eq alpha 200) (eq alpha 2.0))
'(85 60) '(100 100)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment