From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 118CD6DE014D for ; Wed, 25 Oct 2017 11:56:45 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.485 X-Spam-Level: X-Spam-Status: No, score=0.485 tagged_above=-999 required=5 tests=[AWL=-0.167, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zzW-fPjAchWk for ; Wed, 25 Oct 2017 11:56:43 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id E5BEC6DE0119 for ; Wed, 25 Oct 2017 11:56:42 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 9A67F100104; Wed, 25 Oct 2017 21:57:00 +0300 (EEST) From: Tomi Ollila To: =?utf-8?Q?J=C3=BCrgen?= Beier , notmuch@notmuchmail.org Subject: Re: Newbie question defining deleted map In-Reply-To: <2f88b09d-902a-4ce3-2ce0-f25ca5434ecb@gmx.de> References: <2f88b09d-902a-4ce3-2ce0-f25ca5434ecb@gmx.de> User-Agent: Notmuch/0.25+89~g5a0c015 (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2017 18:56:45 -0000 On Wed, Oct 25 2017, J=C3=BCrgen 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= =20 > 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" > =C2=A0=C2=A0=C2=A0 (lambda () > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (interactive) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (notmuch-show-tag "+deleted"))) > > > and I get the following error: > > > Warning (initialization): An error occurred while loading=20 > `/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.=C2=A0 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) > =C2=A0 (define-key notmuch-show-mode-map "d" (function (lambda nil=20 > (interactive) (notmuch-show-tag "+deleted")))) > =C2=A0 eval-buffer(# nil "/home/beier/.emacs" nil t= )=C2=A0 ;=20 > Reading at buffer position 17386 > =C2=A0 load-with-code-conversion("/home/beier/.emacs" "/home/user/.emacs= " t t) > =C2=A0 load("~/.emacs" t t) > > [...] > > [init-file-user system-type delayed-warnings-list user-init-file=20 > inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs"=20 > windows-nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$"=20 > "~/.emacs" "^_emacs\\(\\.elc?\\)?$" (initialization "`_emacs' init file=20 > is deprecated, please use `.emacs'") "~/_emacs" t load expand-file-name=20 > "init" file-name-as-directory "/.emacs.d" file-name-extension "elc"=20 > file-name-sans-extension ".el" file-exists-p file-newer-than-file-p=20 > message "Warning: %s is newer than %s" sit-for 1 "default"] 7 "\n\n(fn)"]= () > =C2=A0 command-line() > =C2=A0 normal-top-level() > > I am using: > > GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) > =C2=A0of 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