mu4e: context: tweaks
Don't clear the caches when switch accounts. Fix some typos.
This commit is contained in:
@ -83,7 +83,6 @@ for the message replied to or forwarded, and nil otherwise. Before composing a n
|
|||||||
(mapc #'(lambda (cell)
|
(mapc #'(lambda (cell)
|
||||||
(set (car cell) (cdr cell)))
|
(set (car cell) (cdr cell)))
|
||||||
(mu4e-context-vars context)))
|
(mu4e-context-vars context)))
|
||||||
(mu4e-clear-caches)
|
|
||||||
(setq mu4e~context-current context)
|
(setq mu4e~context-current context)
|
||||||
(mu4e-message "Switched context to %s" (mu4e-context-name context))
|
(mu4e-message "Switched context to %s" (mu4e-context-name context))
|
||||||
context))
|
context))
|
||||||
|
|||||||
@ -2262,18 +2262,19 @@ example:
|
|||||||
|
|
||||||
It can be useful to be able to switch between different sets of settings
|
It can be useful to be able to switch between different sets of settings
|
||||||
in mu4e; typical examples include the case where you have different
|
in mu4e; typical examples include the case where you have different
|
||||||
e-mail accounts for private and work email.
|
e-mail accounts for private and work email, each with their own settings
|
||||||
|
for e-mail addresses, mailservers etc.
|
||||||
|
|
||||||
The @code{mu4e-context} system is a @t{mu4e}-specific mechanism to
|
The @code{mu4e-context} system is a @t{mu4e}-specific mechanism to allow
|
||||||
accomplish that; users can be define different contexts, and either
|
for that; users can be define different contexts, and either manually
|
||||||
manually switch between them, or let @t{mu4e} determine the right
|
switch between them, or let @t{mu4e} determine the right context when
|
||||||
context when composing a message.
|
composing a message.
|
||||||
|
|
||||||
Note, there are a number of existin ways to switch accounts in @t{mu4e},
|
Note, there are a number of existing ways to switch accounts in
|
||||||
for example using the method described in the @ref{Tips and Tricks}
|
@t{mu4e}, for example using the method described in the @ref{Tips and
|
||||||
section of this manual. Those keep on working - mu4e-context has the
|
Tricks} section of this manual. Those still work - but the new mechanism
|
||||||
benefit of being a core part of `mu4e`, thus allowing for deeper
|
has the benefit of being a core part of @code{mu4e}, thus allowing for
|
||||||
integration.
|
deeper integration.
|
||||||
|
|
||||||
@node Defining a context
|
@node Defining a context
|
||||||
@section Defining a context
|
@section Defining a context
|
||||||
@ -2296,14 +2297,14 @@ this context is the right one for this message, or @t{nil} otherwise.
|
|||||||
an alist of variable settings for this account.
|
an alist of variable settings for this account.
|
||||||
@end itemize
|
@end itemize
|
||||||
|
|
||||||
@t{mu4e} uses a variable @code{mu4e-contexts}, which is a list of those
|
@t{mu4e} uses a variable @code{mu4e-contexts}, which is a list of such
|
||||||
objects.
|
objects.
|
||||||
|
|
||||||
@node Contexts example
|
@node Contexts example
|
||||||
@section Example
|
@section Example
|
||||||
|
|
||||||
Let's look at an example; we define two contexts, 'Private' and 'Work'
|
Let's look at an example; we define two contexts, 'Private' and 'Work'
|
||||||
for our fictional user Alice Derleth.
|
for a fictional user Alice Derleth.
|
||||||
|
|
||||||
@lisp
|
@lisp
|
||||||
(setq mu4e-contexts
|
(setq mu4e-contexts
|
||||||
@ -2331,7 +2332,7 @@ for our fictional user Alice Derleth.
|
|||||||
( mu4e-compose-signature .
|
( mu4e-compose-signature .
|
||||||
(concat
|
(concat
|
||||||
"Prof. Alice Derleth\n"
|
"Prof. Alice Derleth\n"
|
||||||
"Miskatonic University, Dept. of Occult Sciences"))))))
|
"Miskatonic University, Dept. of Occult Sciences\n"))))))
|
||||||
@end lisp
|
@end lisp
|
||||||
|
|
||||||
@node Contexts notes
|
@node Contexts notes
|
||||||
|
|||||||
Reference in New Issue
Block a user