Commit graph

54 commits

Author SHA1 Message Date
Henrik Lissner
ad6a3d0f33
refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
Jonathan Reeve
00f3928052 fix(mu4e): add missing icons for mu 1.8.X 2022-08-03 18:23:47 +02:00
TEC
b07614037f fix(mu4e): support mu 1.8
Thanks to some combination of ignorance and obstinance, mu4e has thrown
compatibility to the wind and completely ignored the exitance of
define-obsolete-function-alias. Coupled with the inconsistent/partial
function renaming, this has made the mu4e 1.6⟶1.8 change particularly
annoying to deal with.

By suffering the pain of doing the mu4e author's work for them, we can
use defalias to give backwards compatibility a good shot for about 60
functions. Some mu4e~x functions are now mu4e--x, others are unchanged,
and then you've got a few odd changes like mu4e~proc -> mu4e--server and
mu4e-search-rerun. The form of message :from entries has also changed,
and a new (mu4e) entrypoint added supplanting mu4e~start.

Fix: #6511
Close: #6549
Co-authored-by: Rahguzar <aikrahguzar@gmail.com>
2022-07-23 14:02:59 +02:00
TEC
13163888a1 fix(mu4e): incorrect access of from addr slot
Within +mu4e/capture-msg-to-agenda, the from address is stored in the
cdar not the cadr.
2021-11-18 19:05:57 +01:00
Henrik Lissner
3b0eeb104b revert: fix(mu4e): reflect upstream naming changes (#5620)
Revert 390fd1a7b0
Ref #5620
2021-10-18 14:53:32 +02:00
Dylan Barker
390fd1a7b0
fix(mu4e): reflect upstream naming changes (#5620) 2021-10-18 01:36:21 +02:00
Ralf Beckmann
451afea47b docs(mu4e): clarify impact of user-full-name
The variable is not really required. It seems to be only used by mu4e
to determine the contents of the FROM field when composing mail.
2021-08-03 23:04:38 -04:00
TEC
896f7dd3df
Mu4e: Select reply account when multiple addrs set
Modify +mu4e-set-from-address-h to account for messages with multiple
to/from headers by finding the intersection between the headers and
registered accounts.

While I'm at it, there was a rather silly typo in the when-let line
that's been corrected.
2021-07-31 01:32:57 +08:00
TEC
6915490d21
Mu4e: Better adhere to Doom naming conventions 2021-07-31 01:10:54 +08:00
Liam Hupfer
ffaed9f5d7
Mu4e: Fix typos 2021-07-31 01:10:14 +08:00
Liam Hupfer
2fd89a7eca
Mu4e: More contextual +mu4e-set-from-address-h
This hook should only be used when users define email aliases, or no
contexts are defined (in which case the list of personal addresses
should be used). Otherwise, the `:match-func` contexts feature is
sufficient.
2021-07-31 01:07:52 +08:00
Liam Hupfer
a75dea6281
Mu4e: Ignore case when matching mu4e context
This allows users to have different casing in their mu4e context names
and the corresponding directories. Since mu4e's context switching
automatically selects the letter from the context name, this allows
users to set two contexts starting with the same letter to uppercase and
lowercase variants, while leaving the directories lowercase.
2021-07-30 23:44:59 +08:00
Liam Hupfer
3d54471b2a
Mu4e: Fix setting default context
The default-p argument to `set-email-account!` now works as intended.
mu4e checks the first context on startup to determine the default and
uses functions for that, so we can't really get around it by setting
the bare mu4e~context-current variable.
2021-07-30 23:44:56 +08:00
TEC
2efeaa3bf2
Mu4e: re-indent advice.el and fix docstring typo 2021-07-30 01:56:54 +08:00
TEC
e5c8cb747b
Mu4e: Remove spurious autoloads
None of these functions are called outside the file they're defined in.
2021-07-30 01:56:53 +08:00
TEC
fadc5f1b35
Mu4e: Add header line to dired buff when attaching 2021-07-30 01:56:53 +08:00
TEC
e881ced143
Mu4e: Improve the +mu4e/attach-files docstring 2021-07-30 01:56:53 +08:00
TEC
2e49b16a6d
Mu4e: When only one personal addr is set, use it
No need to prompt when there's a single entry in +mu4e-personal-addresses.
2021-07-30 01:56:52 +08:00
TEC
6af30b5d68
Mu4e: Handle no-name from case
As seen in
https://www.djcbsoftware.nl/code/mu/mu4e/Message-functions.html, the
name can be nil, but an address will still be present.
2021-07-30 01:56:52 +08:00
TEC
6c2d68ea17
Mu4e: ensure that attachment isn't mixed with text
Ensure that mail-add-attachment is called on a blank line at the end of
the buffer.
2021-07-30 01:56:52 +08:00
TEC
d945987b93
Mu4e: make attachments possible without pain 2021-07-30 01:56:51 +08:00
TEC
3c0df378a6
Mu4e: rename msg refile func, customisable target 2021-07-30 01:56:51 +08:00
TEC
f2445eb6a0
Mu4e: Gah. Typos 2021-07-30 01:56:51 +08:00
TEC
42ee991f4a
Mu4e: Remove (now-)unused header colourise func 2021-07-30 01:56:51 +08:00
TEC
6490565404
Mu4e: Add account stripe, and use it by default 2021-07-30 01:56:51 +08:00
TEC
7cf91ff61d
Mu4e: Further americanisation (colour → color) 2021-07-30 01:56:51 +08:00
TEC
b983b8ec33
Mu4e: Refile autoload functions semantically
With a dash of renaming
2021-07-30 01:56:51 +08:00
TEC
92cfdd6f7f
Mu4e: Change colourise to (sigh) american spelling 2021-07-30 01:56:51 +08:00
TEC
b1f7e9b9f9
Mu4e: follow function naming conventions
Rename +mu4e-msg-to-agenda and +get-string-width
2021-07-30 01:56:50 +08:00
TEC
8e0001f6fd
Mu4e: Generalise ivy-read to completing-read 2021-07-30 01:56:50 +08:00
TEC
358ff84c54
Mu4e: Factor out f dependency 2021-07-30 01:56:50 +08:00
TEC
a75bace498
Mu4e: Remove duplicate + in function name 2021-07-30 01:56:50 +08:00
TEC
2a2f8bfbac
Mu4e: correct misspelling 2021-07-30 01:56:50 +08:00
TEC
75601101c6
Mu4e: Don't require a context to compose emails 2021-07-30 01:56:50 +08:00
TEC
e2792127f0
Mu4e: correct reference to renamed variable 2021-07-30 01:56:50 +08:00
TEC
6bf9ecacc7
Mu4e: have relaxed lock by default 2021-07-30 01:56:50 +08:00
TEC
a8d7d61e44
Set context-aware "from" address (mu4e)
The user can configure a list of addresses that are associated with a
context by passing a list to set-email-account!, e.g.

    (set-email-account! "foo"
      ...
      (+mu4e-personal-addresses ("foo@bar.org" "bar@baz.org")))

This list, if it exists, is used to prompt the user for the "from"
address after trying to set the "from" address automatically.
2021-07-30 01:56:50 +08:00
TEC
522c1ca33b
Mu4e: Include workspace switch in if true case 2021-07-30 01:56:50 +08:00
TEC
c59a1ff498
Mu4e: cooperative lock control 2021-07-30 01:56:50 +08:00
TEC
6118ad5c12
Mu4e: enforce consistent naming scheme, "+" prefix 2021-07-30 01:56:49 +08:00
TEC
d926ecd274
Mu4e: rename my-mu4e-* function to +mu4e-* 2021-07-30 01:56:49 +08:00
TEC
79f8107e43
Mu4e: have =mu4e replace an empty workspace 2021-07-30 01:56:49 +08:00
TEC
a80ef01b88
Mu4e: improve LaTeX fragment size check
We also don't need to tell org-msg to wait for Org apparently
2021-07-30 01:56:49 +08:00
TEC
a974db04c4
Mu4e: further improve org-msg
- stylistic tweaks
- make accent colour easily user-settable
- scale LaTeX fragments appropriately
- make it easy to toggle org-msg-mode for one-off messages
2021-07-30 01:56:49 +08:00
TEC
b386ea1f53
Mu4e: Oh, there's an autoload file I can use? 2021-07-30 01:56:48 +08:00
Alexander Graul
9fe35c5fa4 mu4e: Adjust config to mu4e 1.4
mu4e 1.4 brings quite a few changes, including the deprecation of
previously used variables. These are now guarded by a version
comparison. org-mu4e is not needed for linking anymore,
org-mu4e-link-query-in-headers-mode was renamed. It's new version
defaults to nil and is therefore not set anymore -- I am not sure if the
default was changed or setting it was not strictly needed previously.
2020-04-24 16:56:03 +02:00
Alexander Graul
4ca20438fb Use featurep! in mu4e/autoload/email.el
featurep works a bit different from featurep!, which is required in this
case.
2019-12-08 23:42:46 +01:00
Yiming Chen
f6a10f1268 email/mu4e: avoid delete-other-windows twice
- `+workspace-switch` already does this for us
- see also https://github.com/hlissner/doom-emacs/pull/2123#discussion_r352371828
2019-12-02 08:20:57 +08:00
Yiming Chen
a7eef56b9d email/mu4e: restore window config when mu4e quit
- see https://github.com/hlissner/doom-emacs/pull/2123#issuecomment-560010891
2019-12-01 09:30:33 +08:00
Yiming Chen
4126d3be81 email/mu4e: delete other windows when opening mu4e 2019-12-01 09:30:03 +08:00