[notmuch] Any idea why my emacs doesn't want to accept my notmuch-folder keymap changes?

Mark R Anderson MarkR.Anderson at amd.com
Wed Mar 10 12:19:09 PST 2010


I have added several keys to the search and show keymaps in my .emacs
file, but when my hook for notmuch-folder-mode generates warnings.

I'm not sure exactly when the error happens, it may just be the compile
phase of reading the .emacs file, my ELisp is pretty shaky.

(add-hook 'notmuch-folder-mode
  (define-key motmuch-folder-mode-map "k" 'notmuch-folder-previous)
  (define-key notmuch-folder-mode-map "j" 'notmuch-folder-next)
  (define-key notmuch-folder-mode-map "F" 'notmuch-folder)
)


emacs *Warnings*:
------
Warning (initialization): An error occurred while loading `/home/manderso/.emacs':

Symbol's value as variable is void: motmuch-folder-mode-map

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.
------

I'm not sure why this one is so different from the other modes, any
suggestions?

Thanks,
-Mark





More information about the notmuch mailing list