Commit graph

94 commits

Author SHA1 Message Date
StrawberryTea
a0344ffc3a
fix(mu4e): advice for new mu4e release
mu4e-quit now takes an optional argument, BURY, which is a boolean that
determines whether to bury the buffer or kill it. This commit updates
the advice to reflect this change.
2024-03-11 04:01:48 -04:00
Henrik Lissner
659f7bfc71
refactor!: deprecate IS-* OS constants
BREAKING CHANGE: This deprecates the IS-(MAC|WINDOWS|LINUX|BSD) family
of global constants in favor of a native `featurep` check:

  IS-MAC      ->  (featurep :system 'macos)
  IS-WINDOWS  ->  (featurep :system 'windows)
  IS-LINUX    ->  (featurep :system 'linux)
  IS-BSD      ->  (featurep :system 'bsd)

The constants will stick around until the v3 release so folks can still
use it -- and there are still some modules that use it, but I'll phase
those uses out gradually.

Fix: #7479
2024-02-04 17:54:29 -05: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
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
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
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
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
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
Hanno Perrey
2b1cb2620a
fix(mu4e): do not set coding-system-for-read globally
`+mu4e-lock-pid-info` had unintentional side effects: it changed
`coding-system-for-read` globally.

Fix: #5788
2021-11-18 19:11:55 +01: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
TEC
9e8e1d93ea
nit(mu4e): correct indentation 2021-10-02 16:04:06 +08:00
TEC
090c7b9afa
fix(mu4e): minor errors with org-msg LaTeX eqns
A typo and a missing "*" break the creation and insertion of LaTeX
images.

Close #5416
2021-10-02 16:01:34 +08:00
TEC
7ab825157f
feat(mu4e): make the unicode bullet customizable
By popular demand.

Close #5452.
2021-09-15 02:43:40 +08: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
61126c6bb4
fix(mu4e): improve mu-lock compatability with mac
On mac process args aren't defined, but comm is. Since comm also works
on Linux, we now check for that instead, accounting for a potential
capitalisation difference.
2021-08-03 03:36:57 +08:00
Ellis Kenyő
425f6a1264
fix(mu4e): remove autoload cookie
Autoload cookie was not working as expected

Close #5331
2021-08-02 03:55:13 -04:00
Ellis Kenyő
89bb96c304
fix(mu4e): allow mu4e to be started early
mu4e complains about missing file-notify-*-watch functions if loaded too early.

Close #5327
2021-08-01 14:54:35 -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
7e1f7915c0
Mu4e: use file when imagemagik not present
We will also use this as an opportunity to clean up the use of
+org-msg-img-scale-css.
2021-07-30 01:56:54 +08:00
TEC
a4db56be2f
Mu4e: Confirm that lockfile pid is an emacs proc
Or else another app can be given the same PID and we'll be complaining
another Emacs process is using mu4e when that simply isn't true.
2021-07-30 01:56:53 +08:00
TEC
921157f8d7
Mu4e: Remove redundant check in cond statement
The `t' case is already handled in the preceding condition.
2021-07-30 01:56:53 +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