From 7b5195da89cdf6a34857286a31fe366bb683ce83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Ribeiro=20Mendes=20J=C3=BAnior?= Date: Tue, 31 Dec 2019 13:20:15 -0300 Subject: [PATCH] mu4e: define mu4e-view-actions with defcustom instead of defvar It allows the customization directly from Emacs Custom mode. It is done in a similar way as for `mu4e-view-attachment-actions'. --- mu4e/mu4e-view.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index c16b2f6c..6ceb2321 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -109,7 +109,7 @@ directory and saves all attachments in the chosen directory." :type 'boolean :group 'mu4e-view) -(defvar mu4e-view-actions +(defcustom mu4e-view-actions '( ("capture message" . mu4e-action-capture-message) ("view as pdf" . mu4e-action-view-as-pdf) ("show this thread" . mu4e-action-show-thread)) @@ -120,7 +120,9 @@ where: * NAME is the name of the action (e.g. \"Count lines\") * FUNC is a function which receives a message plist as an argument. -The first letter of NAME is used as a shortcut character.") +The first letter of NAME is used as a shortcut character." + :group 'mu4e-view + :type '(alist :key-type string :value-type function)) (defcustom mu4e-view-attachment-assoc nil "Alist of (EXTENSION . PROGRAM).