unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: "Jürgen Beier" <jube100@gmx.de>, notmuch@notmuchmail.org
Subject: Re: Newbie question defining deleted map
Date: Wed, 25 Oct 2017 21:57:00 +0300	[thread overview]
Message-ID: <m2d15b2gzn.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <2f88b09d-902a-4ce3-2ce0-f25ca5434ecb@gmx.de>

On Wed, Oct 25 2017, Jürgen Beier wrote:

> Hi,
>
> I am trying to set up notmuch-emacs.
>
> I found the advice in the faq to define an key map "d" to add a "deleted 
> tag" to the mail to be used in the notmuch message mode.
>
> I put according to the advice the following in my .emacs file:

where is that advice?

perhaps putting that to ~/.emacs.d/notmuch-config.el helps ?

that file is loaded *after* notmuch is loaded so the keymap is defined

Tomi

>
>
> (define-key notmuch-show-mode-map "d"
>      (lambda ()
>        (interactive)
>         (notmuch-show-tag "+deleted")))
>
>
> and I get the following error:
>
>
> Warning (initialization): An error occurred while loading 
> `/home/beier/.emacs':
>
> Symbol's value as variable is void: notmuch-show-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.
>
> Doing this I get the following:
>
>
> Debugger entered--Lisp error: (void-variable notmuch-show-mode-map)
>    (define-key notmuch-show-mode-map "d" (function (lambda nil 
> (interactive) (notmuch-show-tag "+deleted"))))
>    eval-buffer(#<buffer  *load*> nil "/home/beier/.emacs" nil t)  ; 
> Reading at buffer position 17386
>    load-with-code-conversion("/home/beier/.emacs" "/home/user/.emacs" t t)
>    load("~/.emacs" t t)
>
> [...]
>
> [init-file-user system-type delayed-warnings-list user-init-file 
> inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" 
> windows-nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" 
> "~/.emacs" "^_emacs\\(\\.elc?\\)?$" (initialization "`_emacs' init file 
> is deprecated, please use `.emacs'") "~/_emacs" t load expand-file-name 
> "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" 
> file-name-sans-extension ".el" file-exists-p file-newer-than-file-p 
> message "Warning: %s is newer than %s" sit-for 1 "default"] 7 "\n\n(fn)"]()
>    command-line()
>    normal-top-level()
>
> I am using:
>
> GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
>   of 2017-09-20 on lcy01-07, modified by Debian
>
> Could you give me some advice? Thank you.
>
>
> Juergen
>
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch

  reply	other threads:[~2017-10-25 18:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-25 11:33 Newbie question defining deleted map Jürgen Beier
2017-10-25 18:57 ` Tomi Ollila [this message]
2017-10-25 20:22   ` David Bremner
2017-10-25 20:32     ` Tomi Ollila
2017-10-25 21:48       ` Jürgen Beier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2d15b2gzn.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=jube100@gmx.de \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).