Commit graph

94 commits

Author SHA1 Message Date
Kalle Lindqvist
67165df30c notmuch: use melpa for counsel-notmuch 2018-09-11 00:18:27 +03:00
Ag Ibragimov
ffc1617dd9 [mu4e] kill mu4e layout on app exit 2018-08-28 23:08:01 +01:00
JAremko
6946e255e6 Reformat docs 2018-07-20 02:45:21 +03:00
Miciah Masters
e0b751bee3 Avoid non-idempotent use of push in init code
Replace push with add-to-list in layer init functions and related code.

Modify spacemacs|add-toggle to check for and update an existing toggle in
spacemacs-toggles and only create a new toggle if none already existed.

Replace a conditional push onto erc-packages with use of :toggle.

When initializing which-key, set which-key-replacement-alist to its default
or customized setting before adding all the Spacemacs replacements.  We
want to keep the stock replacements but avoid adding duplicates of the
Spacemacs replacements.

Replace the emacs-lisp-mode-hook lambda with a named function to avoid
adding duplicate hooks (which can add duplicate definitions of the
evil-surround pair).
2018-06-05 22:17:13 -04:00
William Casarin
754853157b notmuch: add notmuch-show-as-patch
* Bind to <SPC m p p>
* Useful for viewing github review emails as a diff
2018-05-27 20:05:08 +03:00
Simon Altschuler
505c500418 Enable scrolling in mu4e main mode 2018-05-25 01:31:09 +03:00
syl20bnr
ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00
syl20bnr
29c78ce841 Defer packages by default using use-package-always-defer
Warning now `:defer t` is implied, to force a package to load `:demand t` is
now necessary.
2018-02-27 23:32:52 -05:00
JAremko
c130014ff0 fix src lang in notmuch README 2018-02-06 14:25:48 +02:00
JAremko
d2c3b847d8 doc fmt 2018-01-27 16:57:39 +02:00
Miciah Masters
600421eb49 mu4e: Fix major-mode leader-key bindings
Instead of specifying mu4e-foo-mode-hook to
spacemacs/set-leader-keys-for-major-mode,
specify mu4e-foo-mode.
2018-01-22 23:17:03 -05:00
wigust
9c585370e6 mu4e: Create email with attachments from dired
Attachments are mostly handled using the helm baloo interface below,
but sometimes we want to send files from a directory: C-c C-m C-a
2018-01-20 00:06:17 -05:00
syl20bnr
f55b62543b Revert "mu4e: add evil-mu4e package."
This reverts commit 3cb341bf71.

We should be able to dynamically switch between editing styles so evil-mu4e must
be able to revert its changes. For instance you start Emacs in Vim style and
have evil-mu4e activated then when you switch to Emacs style evil-mu4e should
revert its changes. See evil-magit for inspiration on how to do it.

Evilified maps supports hot switching of editing style out of the box.
2018-01-19 23:57:28 -05:00
Joris Engbers
3cb341bf71 mu4e: add evil-mu4e package. 2018-01-19 23:55:40 -05:00
Joris Engbers
ae29f21775 The mu4e maildirs extension is now optional
The extension is not activated by default.
2018-01-19 23:49:44 -05:00
Peter Hoeg
0605476083 mu4e - better defaults, async and utility functions
This PR does a few things:

- supports async mode for sending mails
- registers imagemagick as handler for images if it exists
- sets default downloads directory if it exists
- sets a few (more) sane defaults
- supports format=flowed in messages
2018-01-19 23:47:07 -05:00
syl20bnr
0b484bc6cd mu4e: revert back bindings to SPC a M and change helm-mu bindings
Use major-mode specific key bindings for helm-mu commands.
2018-01-19 23:31:06 -05:00
syl20bnr
7487ca53cb mu4e: use spacemacs/add-to-hooks and fix hook names 2018-01-19 23:29:10 -05:00
Sébastien Bariteau
f192dc957e helm-mu4e intergration + keybindings 2018-01-19 23:12:00 -05:00
syl20bnr
5865be40bd notmuch: rename variable for deleted tags and add documentation
notmuch-spacemacs-delete-tags -> notmuch-message-deleted-tags
2018-01-14 23:14:30 -05:00
Leonard Lausen
a9f6c1f83c Make tags changed on notmuch delete action configurable 2018-01-14 22:58:45 -05:00
smile13241324
1fb4e0f23d Fix doc for common-lisp, bibtex, cfengine and gnus layer 2018-01-12 00:37:15 -05:00
William Casarin
43143a1fa1 notmuch: fix notmuch layer
Was broken during refactor
2018-01-10 13:23:06 -08:00
syl20bnr
3cb9fea0ff Reset useful and useless buffers to empty lists
I feel like we should start from scratch on this one and carefully choose the
defaults.

Also this settings is a very personal setting so if we make some buffers
useless we must have a consensus on it. Marking all special buffers starting
with `*` as useless is too aggressive and make Spacemacs less POLA since two
consecutive press on SPC TAB may not revert to the original buffer.
2018-01-10 10:59:15 -05:00
syl20bnr
fea035f413 Make custom layout configs consistent
Use a use-package hook and avoid using lambdas.
Use same naming for all config.
2018-01-09 23:01:34 -05:00
Miciah Masters
effdb177de notmuch: Add custom layout for notmuch buffers
Define a new custom layout named "@Notmuch" with binding "n" for notmuch
buffers.  The custom layout's name can be customized using the new
notmuch-spacemacs-layout-name variable. The custom layout's binding can
be customized using the new notmuch-spacemacs-layout-binding variable.
2018-01-09 22:41:13 -05:00
Miciah Masters
8985806943 notmuch: Fix typo ":reuiqres" in notmuch-packages 2018-01-09 01:29:09 -05:00
syl20bnr
d4b931e935 notmuch: refactor layer
- Make the notmuch layer more idiomatic.
- Move org related stuff to a use-package hook for org.
- Simplify configuration of helm and ivy
- Sort package config
- Move sections in README to avoid repetition of Evilified State sections
- Add docstrings to functions and use // convention for private function names
2018-01-06 23:50:52 -05:00
Francesc Elies Henar
7f95dd3984 [notmuch] interactive search with helm & ivy
closes https://github.com/syl20bnr/spacemacs/issues/10012
2018-01-06 22:54:11 -05:00
syl20bnr
326965d4ce Happy New Year 2018! 2018-01-04 02:00:25 -05:00
Francesc Elies Henar
fea2b1e037 add notmuch layer
This patch adds a notmuch[1] layer to Spacemacs!

notmuch is a mail indexing system written in C. It provides an emacs
interface, and this patch adds Spacemacs support for this interface.

Thanks to @FrancescElies for starting this work, and working with me to
get it finished. We have been using the layer for awhile now and are
happy with the initial release!

Closes #2163

[1] https://notmuchmail.org/

Tested-by: Francesc Elies <elies@posteo.net>
Tested-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2017-12-17 19:35:05 -05:00
Kristoffer Haugsbakk
2cb3bd6e74 mu4e: add “Features:” section
This is based on the description on [mu4e’s homepage], accessed
2017-11-03.

[mu4e’s homepage]: <http://www.djcbsoftware.nl/code/mu/mu4e.html>

See: #9476
2017-11-20 04:15:55 +02:00
Kristoffer Haugsbakk
8d3dadeae7 mu4e: add “Description” section
See: #9476
2017-11-20 04:15:41 +02:00
syl20bnr
211c3f5c1b Prefer to use pre-init instead of post-init whenever possible
This commit does it for org.
2017-08-28 13:34:15 -04:00
JAremko
a1101eb38f fix links 2017-08-18 22:12:17 +03:00
JAremko
06301b2212 Improve exporting/testing 2017-08-18 20:50:21 +03:00
JAremko
106f98497e Update README.org template
Replace some local Org links with GitHub ones
2017-07-23 01:22:20 +03:00
Dominik Schrempf
3c8548d719 Fix Org MIME keybindings in gnus layer help. 2017-07-07 12:50:57 +02:00
Allen Li
27e4c43c67 Replace mu4e multiple accounts with contexts
mu4e 0.9.16 now comes with a native contexts feature that completely
replaces the old hack for multiple accounts.
2017-07-01 11:05:37 -04:00
nashamri
1f234936c3 Fix a missing package name in mu4e documentation 2017-06-12 12:30:41 +02:00
syl20bnr
fcc8b9a36c org: remove mu4e and notmuch
org-mu4e was already handled in the mu4e layer which is the correct place for
this.
Added notmuch to mu4e layer, maybe not the right place for this but for now
it is OK.
2017-05-24 23:20:23 -04:00
Kristoffer Haugsbakk
6583251ef6 Use proper markup to preserve meaning of code
Mark up code that is mentioned in the documentation of some readmes.

In the case of “long options”, like for example `--with-emacs`, this is not just
cosmetic.  On GitHub, Org files are apparently rendered in such a way that
strings like `--` in non-verbatim text (i.e. not verbatim-quoted nor
code-quoted) is transformed to `–` (EN DASH U+2013).  So the string:

    … --with-emacs option:

Will show up like this:

    … –with-emacs option:

Also mark up nearby not-marked-up code mentions.  But this pattern was what was
searched for, so this mostly changes the abovementioned kind of thing.
2017-05-24 11:59:40 +02:00
Kristoffer Haugsbakk
79ed1a6b4b Use proper markup for code in readmes
By convention, code markup (`~`) is reserved for keybindings in Org-based
documentation in Spacemacs.  Verbatim markup (`=`) is reserved for code and
other code-like things.  So change several readmes to reflect this convention.

Use verbatim markup for things like (non-exhaustive list):

- Emacs Lisp functions, modes, buffers, etc.
- Environment variables
- Directory paths
- Code in general
2017-05-24 11:57:17 +02:00
Eivind Fonn
c7df45a0a9 Properly read dsm-major-mode-leader-key 2017-05-23 15:40:08 +02:00
pnagy
17b25784da mu4e-compose: add some convenient major mode bindings 2017-05-23 15:38:51 +02:00
JAremko
6c5a0b2b14 update docs to the new toc-org format 2017-05-22 18:35:37 +03:00
Benjamin Reynolds
5bd08fbcad mu4e: update documentation
Updates mu4e documentation to include new layout integration.
2017-05-11 11:04:08 -05:00
Benjamin Reynolds
68364b969e Add custom layout for mu4e buffers
This commit adds a custom layout for mu4e related buffers. Four different major
modes are used in mu4e buffers based on their purpose, so a function is used to
add buffers in these modes to the new layout. This setup is largely based on
that of the ERC layers custom layout.
2017-05-04 00:32:35 -04:00
JAremko
f805d0ebd9 Fix spacefmt test on deleted files
Also fix some links
[ci skip]
2017-04-28 23:29:43 -04:00
syl20bnr
fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00