mu4e-notification: use mu icon
Use the new mu icon for notifications.
This commit is contained in:
@ -27,7 +27,8 @@ mu4e_meta = configure_file(
|
|||||||
'VERSION' : meson.project_version(),
|
'VERSION' : meson.project_version(),
|
||||||
'MU_VERSION_EXTRA' : version_extra,
|
'MU_VERSION_EXTRA' : version_extra,
|
||||||
'MU_DOC_DIR' : datadir / 'doc' / 'mu',
|
'MU_DOC_DIR' : datadir / 'doc' / 'mu',
|
||||||
})
|
'MU_ICON_PATH' : muiconpath
|
||||||
|
})
|
||||||
|
|
||||||
mu4e_pkg_desc = configure_file(
|
mu4e_pkg_desc = configure_file(
|
||||||
input: 'mu4e-pkg.el.in',
|
input: 'mu4e-pkg.el.in',
|
||||||
|
|||||||
@ -1,8 +1,27 @@
|
|||||||
;;; mu4e-config.el --- configuration values -*- lexical-binding: t -*-
|
;;; mu4e-config.el --- configuration values -*- lexical-binding: t -*-
|
||||||
|
|
||||||
;;; Commentary:
|
;; Copyright (C) 2023-2026 Dirk-Jan C. Binnema
|
||||||
|
|
||||||
;; Auto-generated configuration values
|
;; Author: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
|
;; Maintainer: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
|
|
||||||
|
;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
;; mu4e is free software: you can redistribute it and/or modify
|
||||||
|
;; it under the terms of the GNU General Public License as published by
|
||||||
|
;; the Free Software Foundation, either version 3 of the License, or
|
||||||
|
;; (at your option) any later version.
|
||||||
|
|
||||||
|
;; mu4e is distributed in the hope that it will be useful,
|
||||||
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
;; GNU General Public License for more details.
|
||||||
|
|
||||||
|
;; You should have received a copy of the GNU General Public License
|
||||||
|
;; along with mu4e. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
;;; Commentary:
|
||||||
|
;;; Generic support for showing new-mail notifications.
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
@ -13,5 +32,8 @@ mu4e's version must agree with this.")
|
|||||||
(defconst mu4e-doc-dir "@MU_DOC_DIR@"
|
(defconst mu4e-doc-dir "@MU_DOC_DIR@"
|
||||||
"Directory for mu4e documentation.")
|
"Directory for mu4e documentation.")
|
||||||
|
|
||||||
|
(defconst mu4e-icon-path "@MU_ICON_PATH@"
|
||||||
|
"Path to the mu/mu4e icon.")
|
||||||
|
|
||||||
(provide 'mu4e-config)
|
(provide 'mu4e-config)
|
||||||
;;; mu4e-config.el.in ends here
|
;;; mu4e-config.el.in ends here
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
;;; mu4e-notification.el --- Mail notifications -*- lexical-binding: t-*-
|
;;; mu4e-notification.el --- Mail notifications -*- lexical-binding: t-*-
|
||||||
|
|
||||||
;; Copyright (C) 2023-2025 Dirk-Jan C. Binnema
|
;; Copyright (C) 2023-2026 Dirk-Jan C. Binnema
|
||||||
|
|
||||||
;; Author: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
;; Author: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
;; Maintainer: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
;; Maintainer: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
@ -110,10 +110,7 @@ support."
|
|||||||
:body body
|
:body body
|
||||||
:app-name "mu4e@emacs"
|
:app-name "mu4e@emacs"
|
||||||
:replaces-id mu4e--notification-id
|
:replaces-id mu4e--notification-id
|
||||||
;; a custom mu4e icon would be nice...
|
:app-icon mu4e-icon-path
|
||||||
;; :app-icon (ignore-errors
|
|
||||||
;; (image-search-load-path
|
|
||||||
;; "gnus/gnus.png"))
|
|
||||||
:actions '("Show" "Favorite bookmark"
|
:actions '("Show" "Favorite bookmark"
|
||||||
"default" "Favorite bookmark")
|
"default" "Favorite bookmark")
|
||||||
:on-action (lambda (_1 _2) (mu4e-jump-to-favorite)))))
|
:on-action (lambda (_1 _2) (mu4e-jump-to-favorite)))))
|
||||||
|
|||||||
Reference in New Issue
Block a user