summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--init.el5
-rw-r--r--lib/eos/jao-ednc.el4
-rw-r--r--lib/eos/jao-notify.el6
-rw-r--r--lib/media/jao-spt.el4
4 files changed, 11 insertions, 8 deletions
diff --git a/init.el b/init.el
index 7801d5e..e11c742 100644
--- a/init.el
+++ b/init.el
@@ -547,7 +547,10 @@
alert-hide-all-notifications nil))
;;;; jao-notify
-(require 'jao-notify)
+(use-package jao-notify
+ :demand t
+ :init (setq jao-notify-use-messages t))
+
;;;; tracking
(use-package tracking
:demand t
diff --git a/lib/eos/jao-ednc.el b/lib/eos/jao-ednc.el
index 5750ea7..3f7638d 100644
--- a/lib/eos/jao-ednc.el
+++ b/lib/eos/jao-ednc.el
@@ -1,6 +1,6 @@
;;; jao-ednc.el --- Minibuffer notifications using EDNC -*- lexical-binding: t; -*-
-;; Copyright (C) 2020, 2021 jao
+;; Copyright (C) 2020, 2021, 2024 jao
;; Author: jao <mail@jao.io>
;; Keywords: tools, abbrev
@@ -93,7 +93,7 @@
;;;###autoload
(defun jao-ednc-setup (minibuffer-order)
- (setq jao-notify-use-messages-p t)
+ (setq jao-notify-use-messages t)
(with-eval-after-load "tracking"
(when jao-ednc-use-tracking
(add-to-list 'tracking-faces-priorities 'jao-ednc-tracking)
diff --git a/lib/eos/jao-notify.el b/lib/eos/jao-notify.el
index a3ea474..623b8cc 100644
--- a/lib/eos/jao-notify.el
+++ b/lib/eos/jao-notify.el
@@ -1,6 +1,6 @@
;; jao-notify.el -- Interacting with notification daemon
-;; Copyright (c) 2017, 2019, 2020, 2021 Jose Antonio Ortega Ruiz
+;; Copyright (c) 2017, 2019, 2020, 2021, 2024 Jose Antonio Ortega Ruiz
;; Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
;; Start date: Sun Jan 08, 2017 20:24
@@ -12,7 +12,7 @@
;;; Code:
-(defvar jao-notify-use-messages-p nil)
+(defvar jao-notify-use-messages nil)
(defvar jao-notify-timeout 5000)
(defvar jao-notify-audio-icon (jao-data-file "music-player-icon.png"))
@@ -23,7 +23,7 @@
(defun jao-notify (msg &optional title icon)
(let ((title (when (and title (not (string-blank-p title))) title)))
- (if jao-notify-use-messages-p
+ (if jao-notify-use-messages
(message "%s%s%s" (or title "") (if title ": " "") (or msg ""))
(let* ((args `(:timeout ,jao-notify-timeout))
(args (append args
diff --git a/lib/media/jao-spt.el b/lib/media/jao-spt.el
index 4065905..ba5d104 100644
--- a/lib/media/jao-spt.el
+++ b/lib/media/jao-spt.el
@@ -1,6 +1,6 @@
;;; jao-spt.el --- Access to the spotify-tui CLI -*- lexical-binding: t; -*-
-;; Copyright (C) 2021, 2022 jao
+;; Copyright (C) 2021, 2022, 2024 jao
;; Author: jao <mail@jao.io>
;; Keywords: multimedia
@@ -119,7 +119,7 @@
;;;###autoload
(defun jao-spt-echo-current ()
(interactive)
- (let ((jao-notify-use-messages-p t))
+ (let ((jao-notify-use-messages t))
(jao-notify (jao-spt-update-status))))
;;;###autoload