Commit Graph

49 Commits

Author SHA1 Message Date
0109172ad4 Use functions instead of lambdas in add-hook calls 2020-11-13 11:38:50 +01:00
74332947a0 mu4e: Split libraries into outline sections 2020-02-18 23:49:50 +02:00
040c6578be mu4e: Place provide forms in their own sections
Use "_" as the title of that section so that it is less distracting
when sections are collapsed to get an overview of the library.

Using a separate section is useful because it reduces the risk of
accidentally into the middle of a library.
2020-02-18 23:49:50 +02:00
6c58a311d1 mu4e: Add missing mandatory "FILE ends here" library footer 2020-02-18 23:49:50 +02:00
83f0c9cea9 mu4e: Remove excess semicolons from library headers
Placing two semicolons on an otherwise empty line helps to logically
"connect" the surrounding "paragraphs", which in (only) some cases
makes sense.

Previously the three paragraphs of the permission statement were not
connected to each other like this, which is perfectly fine.  However
the preceding "This file is not part of GNU Emacs." line was connected
to the first paragraph, which does not make sense considering that the
latter is not connected two the second paragraph, which it relates to
more.

Once those two semicolons are gone, it also makes sense to remove
those from the second line.
2020-02-18 23:49:50 +02:00
5f0013d797 org-mu4e.el: Place summary on a single line
Use the previous summary as commentary instead.
2020-02-17 14:28:00 +01:00
6790c0d015 mu4e: Fix indentation 2020-02-17 14:28:00 +01:00
0bc2e605a4 mu4e: clean up org-handling
Load org support by default, unless mu4e-org-support is set to nil.

Turn off speedbar support by default (set mu4e-speedbar-support to t to
re-enable it).

Move the non-obsolete org stuff to mu4e-org. Rename some things from
org-mu4e to mu4e-org.

Remove org-old-mu4e.el
2019-12-10 18:09:03 +02:00
e4f5576cfc Add lexical-binding to all files and fix warnings
about free variables (declare) and unused lexical vars (prefix with "_").
2019-09-16 19:54:59 +02:00
9ddd035a1e Completely use cl-lib and lexical-binding
Previously both cl-lib.el and cl.el were used, now use only cl-lib.el.
Use lexical-binding where needed instead of requiring cl just for
`lexical-let`.
Replace some add-to-list with cl-pushnew as add-to-list is not
recommended in lisp program and anyway doesn't work properly with
lexical binding.
2019-09-14 12:39:51 +02:00
c30b9fa49e org-mu4e: fix org linking
And some whitespace / flycheck cleanups.
2019-05-26 18:50:14 +03:00
9cf120b012 mu4e-view: only try to link messages when there is one
Otherwise, org-store-link elsewhere might hit the mu4e error.
2019-02-21 17:21:56 +02:00
1b408928c8 mu4e: allow linking outside mu4e with org-mu4e-store-link
This should help e.g. mu4e-conversation.
2019-02-18 07:22:16 +02:00
2674ca5583 mu4e: Replace cl with cl-lib 2019-01-04 16:03:58 -06:00
e0f7c4b05e org-mu4e: fix org-mu4e-store-and-capture for Org 9.0
As discussed in #947, links need to be redefined for Org 9. This is
fixed in
[b885dd3](b885dd308e). At
the same time, `org-mu4e-store-and-capture` is still using
`org-mu4e-store-link` only, so it doesn't work in Org 9. Fix it
by interactively calling `org-store-link` instead.
2018-09-21 11:55:58 +08:00
84fce77d0a org-mu4e: small cleanups 2018-08-18 08:57:18 +03:00
268b888226 org-mu4e: move mu4e requirement inside org-mu4e-open
This allows to defer loading mu4e. That is, if we simply put in our
init file:

(with-eval-after-load 'org
  (require 'org-mu4e))

then mu4e is only loaded if either we follow a mu4e link from an org
buffer or we call the autoloaded function `mu4e` to read our emails.

Storing org-mode links from mu4e buffers is unaffected by this change
since `org-mu4e-store-link` only applies from mu4e buffers.

Regarding the second, experimental part of org-mu4e.el about editing
mails with org-mode, I am not completely sure but I think it should
also be unaffected since it also seems to only apply from mu4e buffers.
2018-07-13 14:53:37 +02:00
b885dd308e Only call old org-link API if new unavailable 2016-09-13 15:07:27 +02:00
9f5a2da5b5 For the upcoming org-mode version 9 org-add-link-type is obsolete, so if org-link-set-parameters is bound we will use that instead. 2016-09-04 14:12:53 +02:00
fe52c0e932 mu4e: Make dvipng optional when convert from org to html 2016-05-31 20:28:57 +08:00
74691afde8 mu4e: update org-mode support
mu4e-view-message-with-message-id is the new name for
mu4e-view-message-with-msgid.
2016-02-23 23:25:18 +02:00
967b3cb727 mu4e: update copyright years 2016-01-09 21:28:03 +02:00
d6f8dd19df mu4e: document org-mu4e-store-and-capture in manual
Document org-mu4e-store-and-capture in the manual. Some cosmetics.
2015-12-22 18:02:50 +02:00
fc30bc1a24 mu4e: add org-mu4e-store-and-capture
Make it easy to store and capture the current message, using
M-x org-mu4e-store-and-capture. This is a first step.
2015-12-21 22:24:16 +02:00
eaf56fd533 org-mu4e: default org-mu4e-link-query-in-headers-mode to nil
It's usually more useful to link to a specific message than to a query,
so make that the default.
2015-12-19 13:58:21 +02:00
6a2db14290 Fix org-mu4e bug with HTML in text/plain part
When sending org mode mail, both the text/html and text/plain parts
contained the HTML version of the mail, instead of just the text/html
part. This patch puts the raw-body (org format) in the text part, and
the html with replaced images in the html part.
2015-01-28 09:09:18 +02:00
c5987700e7 mu4e: org: allow customization of linking in headers mode
Depending on org-mu4e-link-query-in-headers-mode, we can link to the
query or the particular message.
2014-12-10 22:57:54 -08:00
168610b719 Merge pull request #365 from jschwab/add-capture-template-keywords
* mu4e/org-mu4e.el (org-mu4e-store-link): Add capture template keywords
2014-10-12 10:18:21 +03:00
bd334a5d02 Merge pull request #480 from jonEbird/master
mu4e: updated html export to org v8 standards
2014-10-11 16:10:40 +03:00
be6170d357 split off `org-old-mu4e.el' for backward compatibility
For now this is just a copy of org-mu4e.el (which requires org-mode
8.x), but the expectancy is that they will diverge.
2014-10-11 16:08:21 +03:00
ea5e9b6b3b Updated html export to org v8 standards
Replaced use of org-export-string with org-export-string-as to match
updated org coding standards.

This specifically addresses issue #391
2014-10-02 18:40:33 -07:00
c7612ae3a3 * mu4e/org-mu4e.el (org-mu4e-store-link): Add capture template keywords
For other email links (e.g., wl, mh, gnus), a number of keywords are
defined in org capture templates.  This makes these keywords available
for use in captures from mu4e.

http://orgmode.org/manual/Template-expansion.html

Inspiration from Roelof Burger
https://groups.google.com/d/msg/mu-discuss/4sffZofVKAY/aVTdVYoVyiUJ
2014-02-09 16:33:46 -08:00
3c67aa6591 * mu4e: fix a few compiler warnings / typos 2013-06-03 21:09:20 +03:00
5a12450745 mu4e: fix parent groups of custom groups mu4e and org-mu4e 2012-11-14 12:27:04 +01:00
8a3d4c27de improve doc-strings
The first sentence should summarize the variable's or function's
purpose and it should fit on the first line.  Change existing
doc-string by:

* Move first sentence onto first line even if that makes it _a bit_
  long.
* Move additional notes out of first sentence and add them later,
  possibly as complete sentences.
* If I am uncertain whether doing the above would alter the meaning,
  _don't_ do it.
* If fitting the initial sentence on the first line would require a
  complete rewrite of the doc-string _don't_ do so unless it is very
  easy to do.
* Remove indentation from second and later lines if it is there to
  align them with the first in the source code, instead of in
  `describe-*' output.
* Make "pullet point" lists a bit more consistent.

Obviously this does not fix all problems but it's a start.
2012-11-10 14:01:17 +01:00
b2ab1dc3d7 * fix org-mu4e (thanks semente!) 2012-09-25 07:39:53 +03:00
9c2e4bf2ff * cosmetics 2012-09-25 07:10:13 +03:00
5921bec16a * mu4e: document some of the caveats of rich-text mode 2012-09-25 07:07:51 +03:00
c333930fee * org-mu4e.el: make using compose-mode key chords a bit less rubegoldbergish 2012-09-24 17:05:14 +03:00
b630c3e781 * mu4e: unbreak org-mu4e 2012-09-19 12:16:14 +03:00
0bd47871e8 * mu4e: don't require org directly 2012-09-03 11:15:27 +03:00
75c182f5c9 * mu4e: workaround (hack) for org-mu4e bytecompilation (don't require org-exp) 2012-08-27 22:07:12 +03:00
e018a0347f Remove org-make-link, it is no longer used in Org-Mode
* mu4e/org-mu4e.el: Replaced org-make-link with concat to be compatible with current version of Org-Mode.
2012-08-22 11:55:13 -04:00
43fac91449 * dont'r require org in org-mu4e; it seems to cause problems. 2012-08-21 11:54:51 +03:00
be9e9953b1 * mu4e: warn when org-export-string is not defined 2012-08-11 12:22:36 +03:00
3814fb81c2 * org-mu4e: small updates in comments/docstrings 2012-08-01 20:52:53 +03:00
143b0b0ff4 added org-mu4e-link-desc-func
Replaces org-mu4e-link-description, a customisable
function is nicer than a string.
2012-07-31 13:47:13 +01:00
fdbc20f04b added defcustom org-mu4e-link-description
Allows the user to customise the org link, e.g.
(setq org-mu4e-link-description '(concat date " " subject))
2012-07-26 15:12:56 +01:00
dc62bd6c75 * rename emacs/ => mu4e/ 2012-07-10 20:00:06 +03:00