]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Add notmuch-hello-mode-hook
authorIvy Foster <joyfulgirl@archlinux.us>
Sat, 29 Oct 2011 16:35:04 +0000 (12:35 -0400)
committerDavid Bremner <bremner@debian.org>
Fri, 16 Dec 2011 21:17:30 +0000 (17:17 -0400)
Functions called after entering `notmuch-hello-mode'

emacs/notmuch-hello.el

index 0582cae76f492fc1ab349ab4458e889b2ea576ae..ca3a3813a5dd31bb9cc3552fda4eb3a89eb00566 100644 (file)
@@ -138,6 +138,11 @@ Typically \",\" in the US and UK and \".\" in Europe."
   :group 'notmuch
   :type 'string)
 
+(defcustom notmuch-hello-mode-hook nil
+  "Functions called after entering `notmuch-hello-mode'."
+  :group 'notmuch
+  :type 'hook)
+
 (defvar notmuch-hello-url "http://notmuchmail.org"
   "The `notmuch' web site.")
 
@@ -355,6 +360,7 @@ Complete list of currently available key bindings:
  (use-local-map notmuch-hello-mode-map)
  (setq major-mode 'notmuch-hello-mode
        mode-name "notmuch-hello")
+ (run-mode-hooks 'notmuch-hello-mode-hook)
  ;;(setq buffer-read-only t)
 )