Skip to content

Instantly share code, notes, and snippets.

@kootenpv
Created June 28, 2015 07:04
Show Gist options
  • Save kootenpv/d19f6a480184647fd810 to your computer and use it in GitHub Desktop.
Save kootenpv/d19f6a480184647fd810 to your computer and use it in GitHub Desktop.
(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