1 Return-Path: <felipe.contreras@gmail.com>
\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 608DC421174
\r
6 for <notmuch@notmuchmail.org>; Sat, 2 Nov 2013 07:04:10 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id 1X3Bha5LN4l6 for <notmuch@notmuchmail.org>;
\r
17 Sat, 2 Nov 2013 07:04:05 -0700 (PDT)
\r
18 Received: from mail-oa0-f42.google.com (mail-oa0-f42.google.com
\r
19 [209.85.219.42]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id C81E5429E43
\r
22 for <notmuch@notmuchmail.org>; Sat, 2 Nov 2013 07:03:19 -0700 (PDT)
\r
23 Received: by mail-oa0-f42.google.com with SMTP id k14so5694677oag.15
\r
24 for <notmuch@notmuchmail.org>; Sat, 02 Nov 2013 07:03:19 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:cc:subject:date:message-id:in-reply-to:references;
\r
27 bh=+p6NGqAXHM+MUZ+lnJIDivk5MFEtJt+mRiuAuWoaAXY=;
\r
28 b=JtGnWwG1Ma6kG80lynWFl3wNsdpZrhidE+NP2IU7HrmaxqiNu9BhBr5DKjaVyXJWGo
\r
29 oV27TkftMYRyCeF9kO08vSZP6HS9/VsJJstlygVqGE2njivvhWlqnSOylJ1lcPaTvPOo
\r
30 3FlXxjquOpCqwUHIrsBZbTsBfpVbOC58bLPR13Oh8F5rham5OuY72F6TcwgpuISMkb53
\r
31 iGdqLpTLpnlKLyDh9tUZEObjaSB/5fOiCBXaNw38V6nPxpcaYfoZXKp+DLbQXwHO0xl2
\r
32 sN3VnRWoGLf+akl9oKpDEynKaKAeTDHqBPvOtOlrEN5pW53JvbbHLpPti+5nvc1RTB1r
\r
34 X-Received: by 10.182.81.41 with SMTP id w9mr6514979obx.18.1383400999106;
\r
35 Sat, 02 Nov 2013 07:03:19 -0700 (PDT)
\r
36 Received: from localhost (187-162-140-241.static.axtel.net. [187.162.140.241])
\r
37 by mx.google.com with ESMTPSA id
\r
38 eg8sm19940507obd.6.2013.11.02.07.03.17 for <multiple recipients>
\r
39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
40 Sat, 02 Nov 2013 07:03:18 -0700 (PDT)
\r
41 From: Felipe Contreras <felipe.contreras@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH 17/21] vim: move default sets to set_defaults()
\r
44 Date: Sat, 2 Nov 2013 07:55:50 -0600
\r
45 Message-Id: <1383400554-1832-18-git-send-email-felipe.contreras@gmail.com>
\r
46 X-Mailer: git-send-email 1.8.4.2+fc1
\r
47 In-Reply-To: <1383400554-1832-1-git-send-email-felipe.contreras@gmail.com>
\r
48 References: <1383400554-1832-1-git-send-email-felipe.contreras@gmail.com>
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Sat, 02 Nov 2013 14:04:11 -0000
\r
63 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
\r
65 vim/notmuch.vim | 40 ++++++++++++++++++++--------------------
\r
66 1 file changed, 20 insertions(+), 20 deletions(-)
\r
68 diff --git a/vim/notmuch.vim b/vim/notmuch.vim
\r
69 index 2fe9346..71d4b32 100644
\r
70 --- a/vim/notmuch.vim
\r
71 +++ b/vim/notmuch.vim
\r
72 @@ -60,26 +60,6 @@ let s:notmuch_reader_default = 'mutt -f %s'
\r
73 let s:notmuch_sendmail_default = 'sendmail'
\r
74 let s:notmuch_folders_count_threads_default = 0
\r
76 -if !exists('g:notmuch_date_format')
\r
77 - let g:notmuch_date_format = s:notmuch_date_format_default
\r
80 -if !exists('g:notmuch_datetime_format')
\r
81 - let g:notmuch_datetime_format = s:notmuch_datetime_format_default
\r
84 -if !exists('g:notmuch_reader')
\r
85 - let g:notmuch_reader = s:notmuch_reader_default
\r
88 -if !exists('g:notmuch_sendmail')
\r
89 - let g:notmuch_sendmail = s:notmuch_sendmail_default
\r
92 -if !exists('g:notmuch_folders_count_threads')
\r
93 - let g:notmuch_folders_count_threads = s:notmuch_folders_count_threads_default
\r
96 function! s:new_file_buffer(type, fname)
\r
97 exec printf('edit %s', a:fname)
\r
98 execute printf('set filetype=notmuch-%s', a:type)
\r
99 @@ -410,6 +390,26 @@ endfunction
\r
102 function! s:set_defaults()
\r
103 + if !exists('g:notmuch_date_format')
\r
104 + let g:notmuch_date_format = s:notmuch_date_format_default
\r
107 + if !exists('g:notmuch_datetime_format')
\r
108 + let g:notmuch_datetime_format = s:notmuch_datetime_format_default
\r
111 + if !exists('g:notmuch_reader')
\r
112 + let g:notmuch_reader = s:notmuch_reader_default
\r
115 + if !exists('g:notmuch_sendmail')
\r
116 + let g:notmuch_sendmail = s:notmuch_sendmail_default
\r
119 + if !exists('g:notmuch_folders_count_threads')
\r
120 + let g:notmuch_folders_count_threads = s:notmuch_folders_count_threads_default
\r
123 if exists('g:notmuch_custom_search_maps')
\r
124 call extend(g:notmuch_search_maps, g:notmuch_custom_search_maps)
\r