mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add doom/set-frame-opacity command
I use this to play videos behind Emacs while I work.
This commit is contained in:
@ -150,6 +150,17 @@ set."
|
||||
(set-frame-font doom-font t))
|
||||
(doom|init-fonts))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/set-frame-opacity (opacity)
|
||||
"Interactively change the current frame's opacity.
|
||||
|
||||
OPACITY is an integer between 0 to 100, inclusive."
|
||||
(interactive
|
||||
(list (read-number "Opacity (0-100): "
|
||||
(or (frame-parameter nil 'alpha)
|
||||
100))))
|
||||
(set-frame-parameter nil 'alpha opacity))
|
||||
|
||||
|
||||
;;
|
||||
;; Modes
|
||||
|
Reference in New Issue
Block a user