Commit graph

333 commits

Author SHA1 Message Date
Sean Farley
5df41be02b nit(mu4e): remove underline for blank space
Previously, this was a bit confusing and didn't look quite right.
Instead, just pad the space in the temp buffer instead of fontifying it
into a button.
2023-10-06 22:37:43 +02:00
Sean Farley
ce8c2af08c fix(mu4e): set popup rules for mu4e
I'm not sure how this works for anyone without setting these rules. By
setting them here, users will have a good out-of-box experience of using
mu4e.
2023-10-06 22:37:43 +02:00
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
StrawberryTea
531a8bdfeb fix(mu4e): remove broken pretty bullets advice 2023-09-20 20:23:44 +02:00
StrawberryTea
a02b4ddfe3 fix(mu4e): replace obsolete/removed functions
This commit fixes several Doom mu4e functions which are broken on later
versions of mu4e due to the variable prefix change from mu4e~ to mu4e--.
I also added them to the forwards-compatibility aliases.
2023-09-20 20:23:44 +02:00
Henrik Lissner
88bb045388
docs(*): replace all-the-icons with nerd-icons
Also colorizes the leading icon in notices.
2023-09-16 20:19:11 +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
Henrik Lissner
7efcbf9208
bump: :email
https://git.notmuchmail.org/git/notmuch@09f2ad8e8533 -> https://git.notmuchmail.org/git/notmuch@b6f144abe1f5
jeremy-compostella/org-msg@7b1dfb96d5 -> jeremy-compostella/org-msg@055de4abf6
org-mime/org-mime@cc00afcf02 -> org-mime/org-mime@d368bd4119
tarsius/ol-notmuch@ee3646627e -> tarsius/ol-notmuch@781c3518a5
wanderlust/flim@2cf5a78910 -> wanderlust/flim@80b8121f05
wanderlust/semi@7d8df0ef2f -> wanderlust/semi@9370961ddc
wanderlust/wanderlust@77662986fd -> wanderlust/wanderlust@8369b2d517
xzz53/mu4e-alert@3c9af8c799 -> xzz53/mu4e-alert@6beda20fc6
2023-08-18 18:53:39 +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
8ed81db6b9
bump: :email
https://git.notmuchmail.org/git/notmuch@bd243b65a970 -> https://git.notmuchmail.org/git/notmuch@09f2ad8e8533
jao/consult-notmuch@4138855cdd -> jao/consult-notmuch@d0d4129d45
jeremy-compostella/org-msg@60e22e4463 -> jeremy-compostella/org-msg@7b1dfb96d5
org-mime/org-mime@cf96f585c6 -> org-mime/org-mime@cc00afcf02
tarsius/ol-notmuch@1a53d6c707 -> tarsius/ol-notmuch@ee3646627e
wanderlust/apel@6947dc4605 -> wanderlust/apel@82eb2325bd
wanderlust/flim@289e5bbd66 -> wanderlust/flim@2cf5a78910
wanderlust/semi@b1c245b817 -> wanderlust/semi@7d8df0ef2f
wanderlust/wanderlust@e3cd5e3945 -> wanderlust/wanderlust@77662986fd
xzz53/mu4e-alert@b34d0ea7b7 -> xzz53/mu4e-alert@3c9af8c799
2023-02-20 22:50:01 -05: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
Emily Bourke
307ae53dff fix(email): mu4e main view shortcut face
In the leuven theme (and possibly others), the use of
`(mode-line-emphasis bold)` results in white text on a white background,
making the shortcut keys invisible.

The original function mu4e--main-action-string uses mu4e-highlight-face,
and changing back to this fixes the problem.

I can’t tell from the git history what the reasoning for the face change
specifically was: the new function seems to have been made mainly for
changing the bullets to unicode versions.

Fix: #7010
2023-02-18 00:53:51 -05:00
TEC
8b422877b4 nit(mu4e): clean up formatting/indentation 2023-02-17 11:33:27 -05:00
nick de heras
f6602ab27b
docs(notmuch): fix custom sync backend snippet
The method for customizing +notmuch-sync-backend was changed in 19d4126
to accept a string; consequently the current example in the docs results
in an error:

  user-error: Invalid notmuch backend specified: custom

Ref: 19d41262e4
2022-10-29 02:50:08 +02: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
d3839197f1 fix(mu4e): cooperative lock file watching
Some time ago I noticed the cooperative lock file management wasn't
working as I remember. I forget what exactly I was thinking, but
basically I've poked at the code until it seems to work better.
2022-10-02 13:10:17 +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
fc2682e4ff fix(notmuch): use new workspace name in +notmuch/quit
This change was meant to be included in the first commit where I changed
the default notmuch workspace name.
2022-09-21 01:05:34 +02:00
Antonio Ruiz
3f9e62dab7 feat(notmuch): use a different workspace name
The workspace name *notmuch* is more consistent with Doom's other app
workspace names like *mu4e* and *rss*.
2022-09-21 01:05:34 +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
f6bddc8fe2 tweak(mu4e): autoload +mu4e-lock-available
+mu4e-lock-available seems like a potential entry-point to the mu-lock
functionality, e.g. on startup check if another Emacs process has mu4e
active, and so it might as well be turned into an autoload.
2022-09-21 00:58:30 +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
TEC
2662d68ae8 fix(mu4e): only widen the mu4e headers frame
It's a bit silly to just unconditionally widen the current frame when
you could have the mu4e headers view in another frame entirely. Instead
we can look for the mu4e headers buffer, and only widen frames where it
is the active buffer.
2022-09-21 00:56:20 +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
tecosaur
01bb743c6c
tweak(mu4e): set last-child thread symbol
Also tweak the line order and whitespace while I'm at it, to show the
overall styling more clearly.
2022-09-10 23:52:36 +02:00
Ralf Beckmann
5a0f1fe1cc docs(mu4e): mention variable renamed in mu-1.8 2022-08-19 11:22:46 +02:00
Henrik Lissner
a5c80fcb4b
refactor: deprecate doom-private-dir for doom-user-dir
- Deprecates the doom-private-dir variable in favor of doom-user-dir.
- Renames the pseudo category for the user's module: :private -> :user.
- Renames the doom-private-error error type to doom-user-error.

Emacs uses the term "user" to refer to the "things" in user space (e.g.
user-init-file, user-emacs-directory, user-mail-address, xdg-user-dirs,
package-user-dir, etc), and I'd like to be consistent with that. It also
has the nice side-effect of being slightly shorter. I also hope
'doom-user-error' will be less obtuse to beginners than
'doom-private-error'.
2022-08-14 20:43:35 +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
Henrik Lissner
3239ab8b2e
nit(mu4e): neutralize comments
Some of our comments/docs can come off as disparaging or snide. They're
glimpses of unfiltered frustration or snarky rubber ducking gone too
far, something I can totally sympathize with, as a scatterbrained
tinkerer, unwittingly made responsible for a lot of work that isn't mine
because of Doom's position as a middleman. But now that Doom has a
veritable userbase, I'd like to hold it to a higher standard.

Light-hearted banter and aired grievances in our source code,
documentation, or community are fine if focused on the problem or the
personal/shared experiences of the community (things that offer value or
amusement to others), but it is never acceptable to attack people or
their efforts. Especially not the very people on whose shoulders Doom
stands.

I sincerely apologize if these have offended you.

Amend: b07614037f
2022-08-14 20:36:42 +02:00
Henrik Lissner
1abcf913aa
revert: fix(docs): set mode in file-local vars
emacs-straight/org-mode@e22b4eb7aa introduced a breaking change that
made it impossible to rely on .dir-locals.el to change org-mode buffers
in $EMACSDIR to doom-docs-org-mode (without infinite recursion), so we
used file-local variables in 7e400ab.

emacs-straight/org-mode@215de6176b reverted that change, so we can use
.dir-locals.el again, and this is my preference, since it requires less
boilerplate across our hundreds of org files.

Ref: emacs-straight/org-mode@215de6176b
Ref: emacs-straight/org-mode@e22b4eb7aa
Revert: 7e400abdc0
2022-08-07 19:08:07 +02:00
Jonathan Reeve
00f3928052 fix(mu4e): add missing icons for mu 1.8.X 2022-08-03 18:23:47 +02:00
Henrik Lissner
1f8bf7accb
merge: rewrite-docs
I've omitted docs/*.org from this merge, as there is still work left to
do there, but I am pushing the module docs early so folks can benefit
from the new docs sooner.
2022-08-03 03:27:50 +02:00
Henrik Lissner
7e400abdc0
fix(docs): set mode in file-local vars
Due to emacs-straight/org-mode@e22b4eb, a replacement major mode (for
org-mode) can no longer be specified from .dir-locals.el, as it spirals
into infinite recursion. Therefore, a mode: line is needed in all Doom
docs.

Ref: emacs-straight/org-mode@e22b4eb7aa
2022-08-03 02:46:33 +02:00
Henrik Lissner
1255315bfc
refactor(docs): replace nav menus with virtual one
Now that the header is dynamically generated (when doom-docs-mode is
active), a literal header is unnecessary.
2022-08-02 19:37:07 +02:00
Henrik Lissner
e77a45bc22
docs: use lowercase keywords
As per Org's new defaults, which we're adopting elsewhere, so may as
well adopt it here.
2022-08-02 16:23:43 +02:00
Ag Ibragimov
e48dd85e56 tweak(notmuch): bury update buffer instead of killing it
+notmuch/update would create an additional window that outlasts the
update process. Instead, delete the window and bury the buffer, so that
it may be read later.
2022-07-23 16:36:40 +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
Yaman Qalieh
bc32e2ec4c
tweak(mu4e): increase human-date to fit full time
Messages from the current day do not fit with the current width since
they are formatted as times (Ex: "05:17:23 PM"). The increase to 12
matches the mu4e defaults.

Amend: d1ba626a2a
2022-06-28 00:06:05 +02:00
Dominic Martinez
839970c2de docs(mu4e): fix incorrect variable name in snippet
The variable name for toggling org-msg by default was changed in commit
6118ad5c12, leading to the provided
snippet not actually disabling org-msg.
2022-06-28 00:04:49 +02:00
Yaman Qalieh
d1ba626a2a tweak(mu4e): increase human-date width to fit year 2022-06-17 20:05:10 +02:00
Henrik Lissner
61a7c54165
bump: :email
https://codeberg.org/jao/consult-notmuch.git@a5133b9e1f19 -> https://codeberg.org/jao/consult-notmuch.git@4138855cddee
https://git.notmuchmail.org/git/notmuch@63413a556345 -> https://git.notmuchmail.org/git/notmuch@bd243b65a970
https://git.sr.ht/~tarsius/ol-notmuch@126fb446d8fa -> https://git.sr.ht/~tarsius/ol-notmuch@1a53d6c70751
jeremy-compostella/org-msg@599e8b056c -> jeremy-compostella/org-msg@60e22e4463
org-mime/org-mime@eb21c02ba8 -> org-mime/org-mime@cf96f585c6
wanderlust/apel@4e3269b6e7 -> wanderlust/apel@6947dc4605
wanderlust/wanderlust@6e189fc944 -> wanderlust/wanderlust@e3cd5e3945
xzz53/mu4e-alert@91f0657c5b -> xzz53/mu4e-alert@b34d0ea7b7

Fix: #6360
Close: #6377
2022-05-27 00:35:38 +02:00