Commit Graph

159 Commits

Author SHA1 Message Date
06392a723f refactor: rename orig-fn arg in advice to fn
A minor tweak to our naming conventions for the first argument of an
:around advice.
2021-08-04 01:53:12 -04:00
TEC
181f17a6f4 fix(mu4e): account for signature change in v1.6
Mu4e 1.6 changes the signature of `mu4e-draft-open'. Since we don't care
about the args replace funcall with apply to make sure it's happy no
matter how many args it expected.
2021-08-03 03:36:57 +08:00
TEC
3fd6b2df1d Mu4e: Ensure composing buffers are writable
This should always be the case, yet it doesn't seem like it always is.
Just to be safe we will ensure that the buffer is not read-only.
2021-07-31 01:13:43 +08:00
TEC
6915490d21 Mu4e: Better adhere to Doom naming conventions 2021-07-31 01:10:54 +08:00
95971d2dc7 Mu4e: Add xdg-user-dir directory finding method 2021-07-30 23:44:50 +08:00
TEC
fe5e410b74 Mu4e: thread folding is too buggy, remove for now
I bumped to get bugfixes and got more bugs. If the situation improves in
future maybe we could add this back in.
2021-07-30 01:56:53 +08:00
TEC
6fae5ea317 Mu4e: extend org-msg application to plaintext
Recently org-msg gained the capability to change which exports/mime
types are sent based on the email, and a new utf-8 type. We will make
use of both of these additions.
2021-07-30 01:56:53 +08:00
TEC
59178f2d71 Mu4e: Relocate min-frames-width statement 2021-07-30 01:56:53 +08:00
TEC
a39f7b0ced Mu4e: Don't set gnus/message face, leave to themes 2021-07-30 01:56:53 +08:00
TEC
abe2ac28c0 Mu4e: Replace stray setq with defvar and docstring 2021-07-30 01:56:53 +08:00
TEC
b20b233986 Mu4e: Avoid making assumptions about defuns result
It's not guaranteed that `defun' will return the new function symbol,
but add-hook! works around this.
2021-07-30 01:56:53 +08:00
TEC
8603a3c7d2 mu4e: also prettify key-val string in main view 2021-07-30 01:56:53 +08:00
TEC
bfa888ced3 Mu4e: Remove duplicated alert mode line call 2021-07-30 01:56:53 +08:00
TEC
f49c7e6281 Mu4e: set attachment dir to user download folder 2021-07-30 01:56:53 +08:00
TEC
d78cdc9a22 Mu4e: Mask mu4e signature when composing org-msg 2021-07-30 01:56:52 +08:00
TEC
874f140a67 Mu4e: (Linux only) make audible bell configurable 2021-07-30 01:56:52 +08:00
TEC
32b07003fb Mu4e: start using thread folding package
It does what it says on the tin, and mu4e doesn't (currently) do this.
2021-07-30 01:56:52 +08:00
TEC
16fd26e5ba Bump org-msg
jeremy-compostella/org-msg@bb378c79 -> jeremy-compostella/org-msg@89e746c

Update to v3.3 of org-msg introduces ">" quotes and styling.
The styling has been copied over, but the palette tweaked.
2021-07-30 01:56:52 +08:00
TEC
b811376403 Mu4e: Org-msg, add missing tab binding 2021-07-30 01:56:52 +08:00
TEC
2307ae5644 Mu4e: More robust Gmail account checking
Emails sent to an @gmail.com account may have been forwarded to a non-gmail mailbox.
Thus the current approach is over-eager.

Only checking @gmail on send, and then matching a user's maildir (not email) with
received messages is a more robust approach.

To accommodate this we switch `+mu4e-gmail-addresses' out for `+mu4e-gmail-accounts'.

Along the way `mu4e-index-cleanup' and `mu4e-index-lazy-check' customisations were
moved into the readme as a recommendation for Gmail-only users, to avoid causing
adverse effects for users who have non-gmail accounts too.
2021-07-30 01:56:52 +08:00
TEC
611e532d38 Mu4e: Org-msg, convert "> ..." ascii quotations 2021-07-30 01:56:52 +08:00
TEC
78cdb80d2c Mu4e: Org-msg, prioritise HTML over plaintext 2021-07-30 01:56:52 +08:00
TEC
39442daeb2 Bump org-msg
jeremy-compostella/org-msg@2db6725 -> jeremy-compostella/org-msg@bb378c79

Also update `org-msg-text-plain-alternative` to new format
2021-07-30 01:56:52 +08:00
TEC
f7438325d9 Mu4e: Nobody really likes format-flowed
We have autofill, that's good enough.
2021-07-30 01:56:52 +08:00
TEC
e760ba5540 Mu4e: Blah. I messed up a let scope 2021-07-30 01:56:52 +08:00
TEC
2023eca45a Mu4e: ensure mu4e-compose-org-msg-handle-toggle
... is always defined
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
eddbda6650 Mu4e: Add stub org-msg-mode in case called by func 2021-07-30 01:56:51 +08:00
TEC
e0d2355126 Mu4e: make flycheck happier 2021-07-30 01:56:51 +08:00
TEC
ba5dee4a19 Mu4e: apply msg compose advice to more situations 2021-07-30 01:56:51 +08:00
TEC
089b4e6b04 Mu4e: make msg compose advice more transparent
... to functions that call the original function
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
b6f5494601 Mu4e: Avoid conflict in mu4e view action name
The HTML and PDF views already bind to v/V
2021-07-30 01:56:51 +08:00
TEC
8e4f559a52 Mu4e: Correct reference to unbound variable 2021-07-30 01:56:51 +08:00
TEC
44c831ce59 Mu4e: Missed a spot when func renamed 2021-07-30 01:56:51 +08:00
TEC
f2445eb6a0 Mu4e: Gah. Typos 2021-07-30 01:56:51 +08:00
TEC
4561d8c29d Mu4e: Fix invalid icon hook removal 2021-07-30 01:56:51 +08:00
TEC
acab6a3cde Mu4e: Another variable missing the "+" prefix 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
f7f58745c3 Mu4e: Correct windows mu lock file paths 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
a75bace498 Mu4e: Remove duplicate + in function name 2021-07-30 01:56:50 +08:00
TEC
7dff598725 Mu4e: Gate org-msg behind +org flag 2021-07-30 01:56:50 +08:00
TEC
37b918d0d6 Mu4e: Leave org-msg's salutation to the user 2021-07-30 01:56:50 +08:00
TEC
9673b66dc1 Mu4e: Use more robust xwidget support check
This shouldn't be defined unless the C library is present.
2021-07-30 01:56:50 +08:00
TEC
f3daba3471 Mu4e: add support for non-@gmail gmail accounts 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