diff --git a/home/alex/programs/emacs/doom/config.el b/home/alex/programs/emacs/doom/config.el index e53ac2e..b1761ad 100644 --- a/home/alex/programs/emacs/doom/config.el +++ b/home/alex/programs/emacs/doom/config.el @@ -56,6 +56,17 @@ (add-to-list 'lsp-file-watch-ignored-directories "[/\\\\]target\\'") ) +(defun set-frame-alpha (arg &optional active) + "Interactively set the transparency of the active frame" + (interactive "nEnter alpha value (1-100): \np") + (let* ((elt (assoc 'alpha default-frame-alist)) + (old (frame-parameter nil 'alpha)) + (new (cond ((atom old) `(,arg ,arg)) + ((eql 1 active) `(,arg ,(cadr old))) + (t `(,(car old) ,arg))))) + (if elt (setcdr elt new) (push `(alpha ,@new) default-frame-alist)) + (set-frame-parameter nil 'alpha new))) + (defun my/org-id-update-id-current-file () "Scan the current buffer for Org-ID locations and update them." (interactive)