1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-27 07:35:16 +02:00
Commit Graph

159 Commits

Author SHA1 Message Date
djcb
d3dbed6c1f mu4e: make global-mode-string buffer-local
Make `global-mode-string' local in all buffers where we use it, so we
don't leak the "context" string outside mu4e.

Also add the context string to the compose buffer's modeline.

This fixes #740.
2015-12-19 10:14:49 +02:00
djcb
f621003658 mu4e: context: integrate with the views
Show the current context in headers, view and main mode; add
keybindings.
2015-12-13 17:46:02 +02:00
Ævar Arnfjörð Bjarmason
049e182e0c Correctly spell the word "quitting" in the protocol & documentation 2015-12-09 22:40:52 +01:00
djcb
706c9e0ea9 mu4e: fix compiler warning 2015-12-04 23:19:32 +02:00
Martin Yrjölä
d37385030f mu4e: Fetch markpair in interactive declaration
This makes it possible to bind mark shortcuts in view-mode for certain
markpairs.
2015-11-29 16:42:30 +02:00
Ævar Arnfjörð Bjarmason
4cffcfa440 mu4e-{view,headers}: Refactor a (lamba) kbd-bound function into a named function
Because this was a lambda C-h m would just show "??" instead of the
function name, and the documentation would be really confusing since it
showed the deparsed lambda function instead of the function name being
called.

Fix this by refactoring both the view & headers [ and ] functions into
named functions, and make their shared logic new internal
mu4u~{headers,view}-* functions.
2015-11-22 22:32:05 +01:00
Dima Kogan
781f0782f5 mu4e: added action to show the current thread only
Add an action for view and headers buffer to show only the messages in
the current thread.
2015-11-12 12:57:26 +02:00
djcb
105809cd8e mu4e: Use length, not string-width when fontifying body
The latter does not what we want and gives errors (esp. on OSX it seems)
2015-10-19 12:13:21 +03:00
Thierry Volpiatto
819959d2cb Fix propertizing body with mu4e-view-body-face.
* mu4e/mu4e-view.el (mu4e-view-message-text):
When using `propertize' all properties added by `mu4e-html2text-command'
in html message are overwrited by `mu4e-view-body-face', so use here
`add-face-text-property' if available, otherwise behave as before and return
body unchanged.
2015-10-14 17:39:09 +02:00
djcb
1a33a710db Add mu4e-view-body-face
This allows setting a custom face for the message body, e.g., if you
prefer a proportional font for the body:

    (set-face-attribute 'mu4e-view-body-face nil :font "Liberation Serif-10")
2015-10-13 08:03:56 +03:00
djcb
a7d611c902 Fix moving when not in split-view mode
Don't insist on having a window (which caused an error), and don't
refuse to move in that case.
2015-10-13 07:39:24 +03:00
Jonas Bernoulli
a924985803 Fix issues reported by the byte-compiler. 2015-10-09 01:02:58 +02:00
djcb
f0cbf1dd7c mu4e-view: small cleanup 2015-07-04 12:24:40 +03:00
Titus von der Malsburg
ccfdf02a23 mu4e: Avoid if-let.
For compatibility with pre-25 Emacs.
2015-07-03 10:10:15 -07:00
Titus von der Malsburg
d9e0bf7c6f mu4e: Added workaround for #417. 2015-07-02 18:01:47 -07:00
djcb
f160ad95f1 mu4e: custom prompts for visiting / saving uris 2015-03-22 11:49:28 +02:00
djcb
7de65b91bc mu4e: rework uri-handling in view, add mu4e-view-save-url
Rework the handling of URIs in the view a bit; add a functionto save
URLs to the kill ring. Also add mu4e-view-for-each-uri to iterate over
them.
2015-03-21 15:22:12 +02:00
djcb
6680b364a8 mu4e: remove mu4e-view-url-regexp, use thing-at-point
Don't use our own URL-matching regexp, use the one that emacs provides
(in thing-at-point), which is a bit more general, and seems to better
handle some URLs.
2015-03-21 10:28:01 +02:00
Patrick Mosby
aec66cbf5c Add option for saving multiple attachments into same directory.
This feature was discussed in the `mu-discuss` Google group.
https://groups.google.com/d/topic/mu-discuss/LpwtWZ1WCyg/discussion
2015-02-11 15:46:01 +01:00
Jean Schurger
e84f5d307f mu4e: Added action to import attachment in diary. 2015-02-03 12:14:58 -05:00
djcb
5ab37ab382 mu4e: mu4e~view-compose-contact takes full address when available 2014-12-13 09:47:17 -08:00
Sean Farley
fd949273e0 mu4e-view: select next unread message in view buffer
Previously, the behavior of mu4e-view-headers-next-unread was that the cursor moved in the headers view but did not change the highlight nor the message in the view buffer. This patch updates the function to also select the message in the view buffer which appears to also highlight the message correctly in the header view.
2014-12-01 20:37:50 -08:00
djcb
0b6ab46675 mu4e: add few more header-functions to mu4e-view 2014-11-30 11:49:41 +02:00
djcb
8991490262 mu4e: support jumping to next, previous unread message
mu4e-headers-next-unread
mu4e-view-headers-next-unread

Use key-bindings ] and [ to go to next, previous unread message.
2014-11-28 08:54:08 +02:00
Foivos S. Zakkak
aaef9493cd Fix signatures' detail box for encrypted messages
In the case of encrypted and signed messages the signature field's
details box did not work due to missing flags to the mu verify command.
This commit fixes this issue.
2014-10-19 03:53:32 +03:00
Foivos S. Zakkak
2d843ca887 Add Decryption field
Add a decryption field of the form

Decryption: 2 part(s) decrypted 1 part(s) failed

Meaning that 2 encrypted mime parts where successfully decrypted and 1
part failed.  Note that the number 2 refers to the number of
successfully decrypted mime parts and not the number of successfully
decrypted encryptes multiparts, i.e., if an encrypted multipart
contains 4 parts and decryption is successful the field will be

Decryption: 4 part(s) decrypted

TODO: Add details button listing the names and indexes of the
decrypted (or not) mime-parts
2014-10-19 03:27:58 +03:00
Foivos S. Zakkak
0b52878920 Fix save for attachments
Bug introduced with 51037be7fb
2014-10-15 14:32:20 +03:00
Foivos S. Zakkak
51037be7fb Fix #186 Part 3
This patch fixes the attachment extraction (open, save, temp) when using
`mu4e`.  `mu4e` used to not notify the mu-server about the
mu4e-decryption-policy.  As a result mu-server did not decrypt the
attachments for extract, open, or temp.
2014-10-10 18:34:57 +03:00
djcb
7ef2deffeb Allow delete keybinding in console view-mode
Or, fix typo
2014-09-24 23:47:46 +03:00
Thierry Volpiatto
fc04367e2e * mu4e/mu4e-view.el: Fix whitespaces in newline in previous commit, no code--change. 2014-06-27 07:37:15 +02:00
Thierry Volpiatto
76787707fe * mu4e/mu4e-view.el (mu4e-view-fill-long-lines): New, bind it to M-q. 2014-06-27 07:28:33 +02:00
Dima Kogan
986740c5a0 mu4e-view-search-narrow now prompts user for input 2014-06-06 15:08:37 -07:00
djcb
2575e6b0a8 * mu4e: unbreak address display, removing toggling 2014-05-24 18:16:34 -07:00
djcb
abe7ed306d * mu4e: add fallback for `delete-all-overlays' 2014-04-27 11:54:15 +03:00
djcb
205de21783 * make mu4e-view-url-regexp a public variable
thus, users can more easily experiment with this
2014-04-27 11:32:21 +03:00
Thierry Volpiatto
9a23d356de * mu4e/mu4e-view.el (mu4e-mark-region-code): Add docstring. 2014-03-24 09:22:39 +01:00
Thierry Volpiatto
8394e6069f * mu4e/mu4e-view.el (mu4e-mark-region-code): New function to highlight region marked with `message-mark-inserted-region'.
* mu4e/mu4e-vars.el (mu4e-region-code): New face.
2014-03-24 09:17:25 +01:00
sabof
647b9381bc Corrected the property list 2014-02-13 14:24:01 +00:00
sabof
cd7b6b273e Revert "Quit in a way similar to help buffers'"
This reverts commit 519a18107c.

Conflicts:
	mu4e/mu4e-view.el
2014-02-08 21:03:25 +00:00
sabof
186fc89414 Avoid unnecessary errors 2014-02-07 06:12:41 +00:00
sabof
28a970a778 mu4e-view-mode: use overlays for url numbers 2014-02-07 06:12:21 +00:00
Dirk-Jan C. Binnema
49e46e99ac Merge pull request #361 from sabof/make-view-region-keymaps-external
* mu4e: make region maps configurable.
2014-02-06 20:40:40 -08:00
sabof
d24176ed82 Added docstrings 2014-02-07 02:10:35 +00:00
sabof
d6f08f3202 Externalised the contacts map 2014-02-07 01:38:33 +00:00
sabof
a128a56bc6 mu4e-view: externalized keymaps 2014-02-06 08:42:57 +00:00
sabof
e2c8bff298 Moved citation regexps to a variable 2014-02-05 20:24:05 +00:00
Dirk-Jan C. Binnema
35a40bc3fb Merge pull request #339 from akopytov/master
* mu4e: Fix for #338.
2014-02-03 23:32:00 -08:00
sabof
519a18107c Quit in a way similar to help buffers' 2014-02-03 04:40:14 +00:00
Alexey Kopytov
e53b849530 Fix #338 by using “long” contact addresses as the actual field values mu4e~view-construct-contacts-header. 2014-01-02 20:45:41 +04:00
djcb
f79170ac6c * cosmetics 2013-12-18 23:51:12 -08:00