Commit graph

297 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
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
Itai Y. Efrat
c13b59395c bump: :completion vertico
minad/consult@d30213aa20 -> minad/consult@822928a860
minad/marginalia@dbc37b373e -> minad/marginalia@26f2bd9ee7
minad/vertico@46e8e05650 -> minad/vertico@cc5f5421c6
oantolin/embark@2890e535f5 -> oantolin/embark@d88478b45f
oantolin/orderless@8f64537f55 -> oantolin/orderless@75eeae2197

- Remove everything related to `consult-completing-read-multiple` since
the function has been deprecated upstream due to implementation issues

Ref: minad/consult#567
Close: #6352
2022-05-26 01:18:02 +03:00
TEC
0b6e63a6d1 feat(mu4e): more helpful headers mode-line symbols 2022-02-23 17:49:03 +01:00
Henrik Lissner
7246db457c docs: replace doom-source with doom-repo links
I will later use "source" to refer to module sources, so better we avoid
the terminology for now.
2022-02-01 18:55:27 +01:00
Anh T Nguyen
8fa1f4bb6b docs(mu4e): enable automatic email fetching 2022-01-27 18:42:19 +01:00
Lele Gaifax
e5213f20e5 nit: fix several documentation typos 2022-01-10 02:21:49 +01:00
Henrik Lissner
dabca5d24e refactor(notmuch): remove redundant ol-notmuch config
ol-notmuch autoloads itself, so we don't need to do anything.

Amend: db94569143
Ref: hlissner/doom-emacs@db94569143
Ref: https://git.sr.ht/~tarsius/ol-notmuch/tree/main/item/ol-notmuch.el#L93-97
2021-11-25 01:33:39 +01:00
Henrik Lissner
89fbc3776d refactor(notmuch): unlink ol-notmuch from +org flag
Amend: db94569143
Ref: hlissner/doom-emacs@d522cc347d
2021-11-25 01:25:25 +01:00
Henrik Lissner
db94569143 refactor(notmuch): remove redundant config
Ref: hlissner/doom-emacs@d522cc347d
2021-11-25 01:04:23 +01:00
Leonard Lausen
d522cc347d fix(notmuch): ol-notmuch missing
ol-notmuch.el was moved out of org-contrib into its own repo.

Ref: e14dfea5/item/lisp/ol-notmuch.el (L8)
2021-11-24 13:10:40 +01:00
Henrik Lissner
88844e9cec docs: simplify internal docs links
Fewer links means less confusion.

- Merge doom-issue and doom-commit links into doom-ref (for auto-linking
  Issue/PR/commit references).
- Merge doom-module-source and doom-docs-source links into doom-source.
- Rename doom-report-issue to doom-report.
- Use '!' as the icon for module issues link.
- Remove doom-repo (replaced with "doom:*" in :lang org module).
- Add doomdir and emacsdir links to :lang org module.
2021-11-21 20:04:28 +01:00
Henrik Lissner
1decc38237 docs: fix module readme CREATED & SINCE attrs
Some were missing PR references, others had incorrect values for SINCE
and CREATED attributes. Also corrects the capitalization in some
SUBTITLEs.
2021-11-21 20:04:28 +01:00
Henrik Lissner
2dcef764f1 docs(:email): update READMEs to new format 2021-11-21 20:04:28 +01:00
Thomas Friese
54c4ae4853 feat(notmuch): only tag new messages w/ afew
Indexing all messages can be very expensive, so some time can be saved
by only indexing new messages.
2021-11-21 19:04:14 +01:00
Leonard Lausen
196ea03281
refactor(notmuch): parameterize delete/spam tags 2021-11-21 19:02:18 +01:00
Clément Haëck
59f78dc966 fix(notmuch): incorrect type used for window 2021-11-18 19:12:21 +01: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
Dominik Schrempf
d49693da91 fix(mu4e): only bind h when workspaces loaded 2021-11-18 19:08:51 +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
df64e5024b nit: remove email address
Ref: hlissner/doom-emacs-private@064c19884c
2021-11-14 17:38:23 +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
SukBeom Kim
8e285177d9
fix(mu4e): invalid bookmark error
Adding 'Flagged messages' to mu4e-bookmarks with attributes results in
mu4e loading failure. Change the line not to use attributes.

error in process filter: mu4e-error: [mu4e] Invalid bookmark in
mu4e-bookmarks error in process filter: [mu4e] Invalid bookmark in
mu4e-bookmarks
2021-10-10 18:36:23 +02:00
Henrik Lissner
473eda795a fix(notmuch): missing notmuch-version.el
Notmuch, like org, uses git describe to build a version string variable
at install time, but Doom preforms shallow clones of its packages, where
git describe does not work.

Notmuch is one of our bigger packages and the variable isn't essential
for normal use, so I've opted to build notmuch-version.el by hand.  It
lacks the commit offset, but it has enough information to work with.

Fix #5581
2021-10-06 01:30:45 +02:00
TEC
3ced11e7cb fix(mu4e): make alerts work again
At some point in the original PR alerts stopped working. I've finally
tracked down why and found three components to the problem:
- I'm calling `start-process` incorrectly
- `truncate-string-to-width` is called on `nil` when no from name is
  given
- mu4e-alert uses :docid to check for duplicates, which is not provided
  in mu 1.6, and so :message-id must be used instead.
2021-10-05 02:30:36 +02:00
Henrik Lissner
7f54afef55
merge: pull request #5550 from tecosaur/org-msg-quick-fixes
fix(mu4e): minor errors with org-msg LaTeX eqns
2021-10-03 12:51:12 +02:00
Hugo Nobrega
f394d9f65b feat(notmuch): allow notmuch module without (:ui workspaces)
Remove the dependency of (:ui workspaces) from the notmuch module
2021-10-03 12:50:36 +02:00
TEC
86a69ecf62 tweak(mu4e): change org-msg ch units to em
Because Outlook interprets 90ch as 90px ... nice job Outlook.

I also adjusted text size and padding with code snippets while we're
tweaking.

Close #5439
2021-10-03 12:49:04 +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
Henrik Lissner
d29a2fd865 fix(notmuch): messages open in tiny popup
We couldn't write a popup rule for message buffers because they were
named *X*, where X was the email's subject line. There was no distinct
pattern to target via regex, and the buffer is display before its mode
is initialized, so a more sophisticated popup rule wouldn't work either.

By renaming message buffers *subject:X*, we now have a chance to target
it.
2021-09-30 01:26:25 +02:00
Itai Y. Efrat
173e0f3cc0 fix(notmuch): notmuch-read-tag-changes error
Due to notmuch abusing the completing-read-multiple api,
notmuch-read-tags-changes errors out without this fix. A bug report has
been filed about this upstream, so hopefully this is a strictly
temporary measure.

Ref https://yhetil.org/notmuch/87h7efuv6i.fsf@tethera.net/T/
Ref minad/vertico#119
2021-09-23 14:55:58 +02:00
TEC
9fa122cc31 feat(mu4e): prompt for subject when absent
Give the user a chance to set the subject when about to send a message
without a subject line.
2021-09-23 11:40:44 +02:00
TEC
4373109721 feat(mu4e): more precise attachment detection rx 2021-09-23 11:40:44 +02:00
Hyunggyu Jang
7274f73500 fix(notmuch): window is not a valid window error on sync end
Notmuch sync process is done asynchronously, but if the user switch to
other buffer before update process, it complains like

```
error in process sentinel: #<window 98> is not a valid window
```

This commit simplifies cleanup process after mail syncing, and still
maintain its functionality.
2021-09-23 11:37:59 +02:00
Henrik Lissner
b0e084e416
merge: pull request #5353 from iyefrat/vertico-things
Improve `:completion vertico`
2021-09-15 01:00:04 +02:00
TEC
083c81e44b
refactor(mu4e): use doom-call-process to check XDG
This is a bit safer than shell-command-to-string, and we also now check
that the command exited successfully, and fall back if not.
2021-09-15 02:43:40 +08:00