aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-lib.el
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2011-05-24 14:26:20 -0700
committerGravatar Carl Worth <cworth@cworth.org>2011-05-24 14:43:48 -0700
commitbc382902c10c7c39076a8c70da846317f505f527 (patch)
tree9bbe61732fd69cf09d2321d5404ce2ce57fe7ddb /emacs/notmuch-lib.el
parentd84e92709195d13a117d8f98847ff17f8ff2276c (diff)
emacs: Add an accessor function for emacs code to get at user.other_email
This is like the other notmuch-config accessor functions except that it converts the newline-separated string into an actual lisp list.
Diffstat (limited to 'emacs/notmuch-lib.el')
-rw-r--r--emacs/notmuch-lib.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 74b3d6d2..cc80fb29 100644
--- a/emacs/notmuch-lib.el
+++ b/emacs/notmuch-lib.el
@@ -87,6 +87,10 @@ the user hasn't set this variable with the old or new value."
"Return the user.primary_email value from the notmuch configuration."
(notmuch-config-get "user.primary_email"))
+(defun notmuch-user-other-email ()
+ "Return the user.primary_email value (as a list) from the notmuch configuration."
+ (split-string (notmuch-config-get "user.other_email") "\n"))
+
(defun notmuch-kill-this-buffer ()
"Kill the current buffer."
(interactive)