* [PATCH] run notmuch-hello-mode-hook at the end of the hello mode setup
@ 2011-08-08 10:26 Antoine Beaupré
2012-01-06 21:43 ` Jani Nikula
0 siblings, 1 reply; 2+ messages in thread
From: Antoine Beaupré @ 2011-08-08 10:26 UTC (permalink / raw)
To: notmuch; +Cc: Antoine Beaupré
i mostly use this to start offlineimap.el, but it could be used for
other purposes. i have not added hooks to other modes, but those could
be interesting as well. i am unsure as to how to make unit tests for
this.
---
emacs/notmuch-hello.el | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 65fde75..6389ac8 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -118,6 +118,11 @@ Typically \",\" in the US and UK and \".\" in Europe."
:group 'notmuch
:type 'string)
+(defcustom notmuch-hello-mode-hook nil
+ "Hook run at the end of `notmuch-hello-mode'."
+ :group 'notmuch
+ :type 'hook)
+
(defvar notmuch-hello-url "http://notmuchmail.org"
"The `notmuch' web site.")
@@ -336,6 +341,7 @@ Complete list of currently available key bindings:
(setq major-mode 'notmuch-hello-mode
mode-name "notmuch-hello")
;;(setq buffer-read-only t)
+ (run-mode-hooks 'notmuch-hello-mode 'notmuch-hello-mode-hook)
)
(defun notmuch-hello-generate-tag-alist ()
--
1.7.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] run notmuch-hello-mode-hook at the end of the hello mode setup
2011-08-08 10:26 [PATCH] run notmuch-hello-mode-hook at the end of the hello mode setup Antoine Beaupré
@ 2012-01-06 21:43 ` Jani Nikula
0 siblings, 0 replies; 2+ messages in thread
From: Jani Nikula @ 2012-01-06 21:43 UTC (permalink / raw)
To: Antoine Beaupré, notmuch
Hi, looks like a similar patch has been applied as commit
db352df09e92171293eacf159342cd950ae596d0.
BR,
Jani.
On Mon, 8 Aug 2011 12:26:58 +0200, Antoine Beaupré <anarcat@koumbit.org> wrote:
> i mostly use this to start offlineimap.el, but it could be used for
> other purposes. i have not added hooks to other modes, but those could
> be interesting as well. i am unsure as to how to make unit tests for
> this.
> ---
> emacs/notmuch-hello.el | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
> index 65fde75..6389ac8 100644
> --- a/emacs/notmuch-hello.el
> +++ b/emacs/notmuch-hello.el
> @@ -118,6 +118,11 @@ Typically \",\" in the US and UK and \".\" in Europe."
> :group 'notmuch
> :type 'string)
>
> +(defcustom notmuch-hello-mode-hook nil
> + "Hook run at the end of `notmuch-hello-mode'."
> + :group 'notmuch
> + :type 'hook)
> +
> (defvar notmuch-hello-url "http://notmuchmail.org"
> "The `notmuch' web site.")
>
> @@ -336,6 +341,7 @@ Complete list of currently available key bindings:
> (setq major-mode 'notmuch-hello-mode
> mode-name "notmuch-hello")
> ;;(setq buffer-read-only t)
> + (run-mode-hooks 'notmuch-hello-mode 'notmuch-hello-mode-hook)
> )
>
> (defun notmuch-hello-generate-tag-alist ()
> --
> 1.7.2.5
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-06 21:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-08 10:26 [PATCH] run notmuch-hello-mode-hook at the end of the hello mode setup Antoine Beaupré
2012-01-06 21:43 ` Jani Nikula
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).