Commit graph

73 commits

Author SHA1 Message Date
Sean Farley
feec9368e2 feat(mu4e): set consistent icons for `mu4e-modeline-*' variables
These are new variables in mu4e so let's go ahead and set them to match
doom's style for email icons.
2023-10-06 22:37:43 +02:00
Sean Farley
b40e435f53 feat(mu4e): add space-right argument to `+mu4e-normalised-icon'
This allows a tiny (but equal) amount of space to the right of the icon.
In the next patch, we'll use this for some icons in the modeline.
2023-10-06 22:37:43 +02:00
Sean Farley
9f922065ba refactor(mu4e): prepare `+mu4e-normalised-icon' for extra padding
This is non-functional change to use `format' instead of `concat'. It
will make the next patch easier to read.
2023-10-06 22:37:43 +02:00
Sean Farley
10567b6cec nit(mu4e): :height parameter was already the default value
No need to send it since it's the default value.
2023-10-06 22:37:43 +02:00
Ellis Kenyő
e97b05c07c
fix: nerd-icons-material => nerd-icons-mdicon
Fix: #7422
Amend: #7411
2023-09-14 14:58:01 +02:00
Ellis Kenyő
9787022b83
refactor!: replace all-the-icons with nerd-icons
BREAKING CHANGE: This commit replaces all-the-icons with nerd-fonts. Any
all-the-icons-* function calls or variable references in your private
config will break and should be replaced with their nerd-icons-*
equivalent. That said, Doom will continue to install all-the-icons for
a while, so feel free to load it if you don't want to fully commit to
the change yet.

This change is happening because nerd-icon has wider support for GUI and
TUI Emacs; has a larger, more consistent selection of symbols; plus unicode
coverage.

Fix: #7368
Close: #6675
Close: #7364
2023-09-14 01:03:55 +02:00
Thomas Bergheim
ce6be8c1b1 fix(mu4e): Do not shadow mu4e arguments
`(mu4e)` accepts an optional argument, `background`, which is useful if
you want to jump straight to `mu4e-headers-mode`. `=mu4e` should pass it on.
2023-03-21 01:43:40 -04:00
Henrik Lissner
c7c686cc26
fix(mu4e): from address selection in mu 1.8+
Close: #7082
Co-authored-by: tecosaur <tecosaur@users.noreply.github.com>
2023-02-18 15:27:48 -05:00
TEC
8b422877b4 nit(mu4e): clean up formatting/indentation 2023-02-17 11:33:27 -05:00
Henrik Lissner
962c643bad
fix(literate,mu4e): revert recent, unintended changes
Reverts changes that snuck into 5ac2a52.

Amend: 5ac2a5258b
Ref: #6873
2022-10-07 17:33:35 +02:00
Abdelhak Bougouffa
1b1556c476
tweak(mu4e): change icon for reply flagged mails
The current config is kinda confusing, it uses the same symbol for both
forwarded/passed mails and replied mails. FontAwesome provides a nice
icon for "reply", why not use it!
2022-10-05 16:50:27 +02:00
TEC
5ac2a5258b docs: change link format 2022-10-05 01:01:19 +02:00
TEC
3a19152787 fix(mu4e): +mu4e/capture-msg-to-agenda with mu 1.8 2022-09-30 22:45:23 +02:00
TEC
f2d62acaad tweak(mu4e): try harder to attach files in order
In 4d9ea6853b I reacted to a either a change that I presume occurred
in org-msg at some point, or behaviour originally unnoticed, that led to
bulk-selected files being attached in reverse. Further investigation has
indicated that this isn't actually making attachment order work as
expected, just hiding the reverse behaviour from bulk-attachment. The
better approach is to keep the dired mark reversal, and change
org-msg-attach-attach to add new files to the end, not the start, of the
list of attachments.
2022-09-30 22:44:39 +02:00
TEC
30a4eb7f77 fix(mu4e): file attachment prompt arguments
There are two changes to the default optional read-file-name arguments
that should be made for the purpose of attaching files:
1. The optional MUSTMATCH argument should be set, as one can't exactly
   attach non-existent files.
2. The INITIAL argument should be set to the empty string so that if
   default-directory is customised for some reason or another that
   selecting it leads to the expected directory being selected.
   Without INITIAL or DEFAULT-FILENAME being specified, the current file
   path will be used, which is never desirable as this is simply a path
   to the message buffer.
2022-09-30 22:43:46 +02:00
TEC
a207a8b703 feat(mu4e): more DWIM-y mu4e entry point (=mu4e)
Replace the rather crude "don't do anything if already in a mu4e-y
buffer" behaviour with a more refined approach that tries to find the
live mu4e buffer likely of the most interest and switch to that, before
calling (mu4e) if no such buffer is found.
2022-09-30 22:40:43 +02:00
Antonio Ruiz
32baf538ee feat(mu4e): only call mu4e if necessary
If we are already reading emails in Mu4e or composing a message, there
is no reason to go back to the main window.
2022-09-21 01:05:34 +02:00
TEC
4d9ea6853b tweak(mu4e): don't reverse dired marks to attach
Originally this was added to have the order of attached files match the
order of mark selection. Recent usage indicates that this was either
misguided or the behaviour has changed, as this now achieves the opposite
effect --- with nreverse files are attached in reverse order. Removing
nreverse provides the expected behaviour.
2022-09-21 00:56:33 +02:00
Sean Farley
2548632600 fix(mu4e): force the account stripe face to be non-italic
With mu4e came a new face for the header view. While this is nice for
the text, it had the consequence of making the account stripe (the
vertical bar) a bit jarring. This patch fixes that behavior to make the
stripe non-italic by append `'default` to the face.
2022-09-10 23:54:31 +02:00
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