From f589a32f8bcdf6edb1c15a30096346e4e3d9d46f Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:47:56 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20meeting-nodes=20minor=20mode?= =?UTF-8?q?=20w/=20bg=20transparency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config.org b/config.org index 84608b5..c8558f6 100644 --- a/config.org +++ b/config.org @@ -549,6 +549,20 @@ Add a slight transparency to the frames. Code provided by David Wilson / System (add-to-list 'default-frame-alist `(alpha-background . ,mmk2410/alpha-background)) #+end_src +#+begin_src emacs-lisp +(setq meeting-nodes-alpha-background 40) + +(define-minor-mode meeting-nodes-mode + "Take meeting notes." + nil + :global t + :lighter " mn" + + (if meeting-nodes-mode + (set-frame-parameter nil 'alpha-background meeting-nodes-alpha-background) + (set-frame-parameter nil 'alpha-background mmk2410/frame-transparency))) +#+end_src + ** Switch theme During the last weeks I got used to using a light theme during daytime and a dark theme during nighttime. Luckily the themes based on Atom One are to my liking and the doom package provides a dark and light variant. One thing that was difficult with Emacs was actually switching theme since it involved disabling all current ones (for some reason on one machine there are two enabled while on the other machine its only one) and then loading the correct one. These functions try to make that process easier, at least for now. The long-term goal is to automatically change the theme based on the current system-wide setting.