Moved alert's use package
This commit is contained in:
parent
499cf19be4
commit
792fb9fd7e
1 changed files with 8 additions and 5 deletions
13
config.org
13
config.org
|
|
@ -127,6 +127,12 @@ Copies to both kill ring and system clipboard
|
||||||
(file-exists-p "/proc/sys/fs/binfmt_misc/WSLInterop")))
|
(file-exists-p "/proc/sys/fs/binfmt_misc/WSLInterop")))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Notifications
|
** Notifications
|
||||||
|
*** Alert package
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package alert
|
||||||
|
:ensure t
|
||||||
|
)
|
||||||
|
#+end_src
|
||||||
*** Android notifications
|
*** Android notifications
|
||||||
Found the code [[https://www.reddit.com/r/emacs/comments/18xvtns/emacs_notifications_on_linux_and_android/][here]]
|
Found the code [[https://www.reddit.com/r/emacs/comments/18xvtns/emacs_notifications_on_linux_and_android/][here]]
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
@ -166,14 +172,11 @@ Using [[https://github.com/gkowzan/alert-toast][Alert toast]]
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Setting notification backend
|
*** Setting notification backend
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package alert
|
(setq alert-default-style
|
||||||
:ensure t
|
|
||||||
:config
|
|
||||||
(setq alert-default-style
|
|
||||||
(cond
|
(cond
|
||||||
((eq system-type 'android) 'android-notifications)
|
((eq system-type 'android) 'android-notifications)
|
||||||
((kylekrein/detect-wsl) 'toast)
|
((kylekrein/detect-wsl) 'toast)
|
||||||
(t 'libnotify))))
|
(t 'libnotify)))
|
||||||
#+end_src
|
#+end_src
|
||||||
* App Launcher
|
* App Launcher
|
||||||
This code creates a menu to launch linux apps, that have Desktop entry.
|
This code creates a menu to launch linux apps, that have Desktop entry.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue