From 792fb9fd7edfcdf176a53de9f6b7d0d6425538d4 Mon Sep 17 00:00:00 2001 From: Aleksandr Lebedev Date: Sun, 2 Feb 2025 18:34:31 +0100 Subject: [PATCH] Moved alert's use package --- config.org | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/config.org b/config.org index 37e499d..9733bb3 100644 --- a/config.org +++ b/config.org @@ -127,6 +127,12 @@ Copies to both kill ring and system clipboard (file-exists-p "/proc/sys/fs/binfmt_misc/WSLInterop"))) #+end_src ** Notifications +*** Alert package +#+begin_src emacs-lisp + (use-package alert + :ensure t + ) +#+end_src *** Android notifications Found the code [[https://www.reddit.com/r/emacs/comments/18xvtns/emacs_notifications_on_linux_and_android/][here]] #+begin_src emacs-lisp @@ -166,14 +172,11 @@ Using [[https://github.com/gkowzan/alert-toast][Alert toast]] #+end_src *** Setting notification backend #+begin_src emacs-lisp - (use-package alert - :ensure t - :config - (setq alert-default-style +(setq alert-default-style (cond ((eq system-type 'android) 'android-notifications) ((kylekrein/detect-wsl) 'toast) - (t 'libnotify)))) + (t 'libnotify))) #+end_src * App Launcher This code creates a menu to launch linux apps, that have Desktop entry.