1 Return-Path: <too@guru-group.fi>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 26004431FBF
\r
6 for <notmuch@notmuchmail.org>; Sat, 29 Mar 2014 01:08:14 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id QIhRMsjm6ndm for <notmuch@notmuchmail.org>;
\r
16 Sat, 29 Mar 2014 01:08:10 -0700 (PDT)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 9DE1C431FAF
\r
19 for <notmuch@notmuchmail.org>; Sat, 29 Mar 2014 01:08:10 -0700 (PDT)
\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)
\r
21 id 2116B1000F2; Sat, 29 Mar 2014 10:08:04 +0200 (EET)
\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
23 To: notmuch@notmuchmail.org
\r
24 Subject: [PATCH 1/2] emacs: instruct user to autoload notmuch instead of
\r
26 Date: Sat, 29 Mar 2014 10:07:58 +0200
\r
27 Message-Id: <1396080479-19161-1-git-send-email-tomi.ollila@iki.fi>
\r
28 X-Mailer: git-send-email 1.8.0
\r
29 Cc: tomi.ollila@iki.fi
\r
30 X-BeenThere: notmuch@notmuchmail.org
\r
31 X-Mailman-Version: 2.1.13
\r
33 List-Id: "Use and development of the notmuch mail system."
\r
34 <notmuch.notmuchmail.org>
\r
35 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
36 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
37 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
38 List-Post: <mailto:notmuch@notmuchmail.org>
\r
39 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
40 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
41 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
42 X-List-Received-Date: Sat, 29 Mar 2014 08:08:14 -0000
\r
44 When (require 'notmuch) is added to ~/.emacs notmuch is loaded to every
\r
45 instance of emacs although it may not be used in majority of
\r
48 When (autoload 'notmuch "notmuch" ...) is added to ~/.emacs notmuch
\r
49 is loaded (only) when user invokes the notmuch function.
\r
51 User may want to add other entrypoints to notmuch by adding more
\r
52 autoloads -- the autoload instruction given should offer them clue how
\r
56 This borrows models from emacs, gnus & erc (at least).
\r
58 I've been dogfooding this for 2 months now, by just loading my
\r
59 "global" notmuch config from ~/.emacs.d/notmuch-config.el instead
\r
60 of autoloading that file. I'd like to move the contents of my
\r
61 "site-specific" configuration files here in the future...
\r
64 emacs/notmuch.el | 2 +-
\r
65 2 files changed, 2 insertions(+), 2 deletions(-)
\r
67 diff --git a/README b/README
\r
68 index 3a003ad..d92fcfd 100644
\r
71 @@ -42,7 +42,7 @@ the libnotmuch library.
\r
72 Notmuch installs a full-featured email interface for use within
\r
73 emacs. To use this, first add the following line to your .emacs file:
\r
75 - (require 'notmuch)
\r
76 + (autoload 'notmuch "notmuch" "Notmuch mail" t)
\r
78 Then, either run "emacs -f notmuch" or execute the command "M-x
\r
79 notmuch" from within a running emacs.
\r
80 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
81 index 7dec273..34a3b3c 100644
\r
82 --- a/emacs/notmuch.el
\r
83 +++ b/emacs/notmuch.el
\r
86 ;; Then, to actually run it, add:
\r
88 -;; (require 'notmuch)
\r
89 +;; (autoload 'notmuch "notmuch" "Notmuch mail" t)
\r
91 ;; to your ~/.emacs file, and then run "M-x notmuch" from within emacs,
\r