notmuch/emacs
Michal Sojka 570c0aeb40 emacs: Improve notmuch-message-mode initialization
Recent addition of notmuch-message-mode introduced several problems:

1. When message-setup-hook is used to set buffer local variables,
   these settings are not effective, because all buffer local
   variables are immediately erased by notmuch-message-mode
   initialization.

2. message-mode-hook gets invoked twice - first when message-mail
   invokes message-mode and second when notmuch-mua-mail invokes
   notmuch-message-mode.

This commit fixes these problems by replacing a call to message-mail
with notmuch-specific code that is (hopefully) equivalent to
message-mail functionality before introduction of
notmuch-message-mode.

We first initialize notmuch-message-mode with
notmuch-mua-pop-to-buffer, which is a modified version of
message-pop-to-buffer and then call message-setup-1, which is the only
functionality of message-mail that is needed for notmuch.
2016-01-01 10:58:19 -04:00
..
.gitignore emacs: add notmuch-version.el.tmpl and create notmuch-version.el from it 2014-04-10 23:25:36 -03:00
coolj.el emacs: Add more functions to clean up text/plain parts 2010-04-26 10:05:46 -07:00
make-deps.el emacs: Compute build dependencies to fix byte compile issues 2013-05-23 08:06:12 -03:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local emacs/Makefile.local: notmuch-lib.elc depend on notmuch-version.elc 2015-11-23 08:14:46 -04:00
notmuch-address.el Emacs: Add address completion based on company-mode 2015-10-27 08:01:15 -03:00
notmuch-company.el Emacs: Add address completion based on company-mode 2015-10-27 08:01:15 -03:00
notmuch-crypto.el emacs: show: make buttons select window 2013-02-18 20:13:19 -04:00
notmuch-hello.el emacs: hello: fix accidental modification of widget-keymap 2015-11-23 08:36:52 -04:00
notmuch-jump.el emacs: allow saved searches to select tree-view 2015-10-21 09:13:55 -03:00
notmuch-lib.el Merge branch 'release' 2015-11-23 08:40:40 -04:00
notmuch-logo.png emacs: Add notmuch-hello.el, a friendly frontend to notmuch 2010-04-23 12:50:18 -07:00
notmuch-maildir-fcc.el emacs: make modifications to message Fcc vars buffer-local 2015-08-07 21:18:59 +02:00
notmuch-message.el emacs: replace (funcall 'foo ...) with (foo ...) 2013-06-02 11:37:22 -03:00
notmuch-mua.el emacs: Improve notmuch-message-mode initialization 2016-01-01 10:58:19 -04:00
notmuch-parser.el emacs: Streaming S-expression parser 2013-06-01 08:56:25 -03:00
notmuch-print.el emacs: Put notmuch-print-mechanism in custom group notmuch-show 2012-04-24 23:25:51 -03:00
notmuch-query.el emacs: dropped rest of now-unused JSON functionality 2013-07-20 09:13:48 -03:00
notmuch-show.el emacs: notmuch-show-view-raw-message clears buffer, makes it read-only 2015-11-21 08:02:10 -04:00
notmuch-tag.el Fix documentation for notmuch--tag-hook functions 2015-06-30 21:37:25 +02:00
notmuch-tree.el emacs: tree: bind S to run current query in search mode 2015-10-21 09:14:07 -03:00
notmuch-version.el.tmpl emacs: add notmuch-version.el.tmpl and create notmuch-version.el from it 2014-04-10 23:25:36 -03:00
notmuch-wash.el emacs: Washing should use more `defcustom'. 2015-01-11 14:32:32 +01:00
notmuch.el emacs: wrap current search in parens when filtering 2015-09-07 09:27:09 -03:00