]> git.cworth.org Git - obsolete/notmuch-wiki/commitdiff
more tabs to spaces (+ trailing whitespaces)
authorTomi Ollila <tomi.ollila@iki.fi>
Sun, 20 Jan 2013 11:21:27 +0000 (13:21 +0200)
committerTomi Ollila <tomi.ollila@iki.fi>
Sun, 20 Jan 2013 11:21:27 +0000 (13:21 +0200)
corpus.mdwn
emacstips.mdwn
excluding.mdwn
remoteusage.mdwn
templates.mdwn

index aa609b7e60d7bd9ca391650a3bebe3a417d4849c..1730ece0dc3d7524cfd00382766c0a9b2e980107 100644 (file)
@@ -1,6 +1,6 @@
 ## Notmuch Email Corpus
 
-A corpus of about 108k messages is available for performance testing of 
+A corpus of about 108k messages is available for performance testing of
 notmuch (or other uses).
 
 The contents are as follows
@@ -14,11 +14,11 @@ The contents are as follows
 - `Mail/enron`: selected data from the EDRM v2 enron data set
 
    - CC Attribution: "ZL Technologies, Inc. (http://www.zlti.com)"
-   
+
    - Downloaded via bittorrent
 
       http://www.searchdaimon.com/community/dataset/
-         
+
    - massaged with scripts/unpack-enron.sh (in the corpus tarball)
 
 The corpus is gpg signed by David Bremner with  key fingerprint:
@@ -29,5 +29,3 @@ You can download the corpus from
 
 - [notmuchmail.org](http:///notmuchmail.org/releases/notmuch-email-corpus-0.3.tar.xz) [signature](http:///notmuchmail.org/releases/notmuch-email-corpus-0.3.tar.xz.asc)
 - [UNB](http://tesseract.cs.unb.ca/notmuch/notmuch-email-corpus-0.3.tar.xz) [signature](http://tesseract.cs.unb.ca/notmuch/notmuch-email-corpus-0.3.tar.xz.asc)
-
-
index 8c8e1688c54fcefb33e7851cf6e6065806b0f337..86bcb4466a4a5a269004eb8322493009bed05c57 100644 (file)
@@ -103,11 +103,11 @@ mentioned as script arguments. (Note: The script expects that you have
 
 If notmuch-show-mode behaves badly for you in emacs 24.x try adding one of
 
-       (setq gnus-inhibit-images nil)
+        (setq gnus-inhibit-images nil)
 
 or
 
-       (require 'gnus-art)
+        (require 'gnus-art)
 
 to your .emacs file.
 
@@ -624,25 +624,25 @@ a way that causes TABs to appear in the middle of the subject and header
 lines. Add this to your `.emacs` to replace tabs with spaces in subject
 lines:
 
-       (defun notmuch-show-subject-tabs-to-spaces ()
-         "Replace tabs with spaces in subject line."
-         (goto-char (point-min))
-         (when (re-search-forward "^Subject:" nil t)
-           (while (re-search-forward "\t" (line-end-position) t)
-             (replace-match " " nil nil))))
+        (defun notmuch-show-subject-tabs-to-spaces ()
+          "Replace tabs with spaces in subject line."
+          (goto-char (point-min))
+          (when (re-search-forward "^Subject:" nil t)
+            (while (re-search-forward "\t" (line-end-position) t)
+              (replace-match " " nil nil))))
 
-       (add-hook 'notmuch-show-markup-headers-hook 'notmuch-show-subject-tabs-to-spaces)
+        (add-hook 'notmuch-show-markup-headers-hook 'notmuch-show-subject-tabs-to-spaces)
 
 And in header lines (this will only work with the yet to be released
 notmuch version 0.15):
 
-       (defun notmuch-show-header-tabs-to-spaces ()
-         "Replace tabs with spaces in header line."
-         (setq header-line-format
-               (notmuch-show-strip-re
-                (replace-regexp-in-string "\t" " " (notmuch-show-get-subject)))))
+        (defun notmuch-show-header-tabs-to-spaces ()
+          "Replace tabs with spaces in header line."
+          (setq header-line-format
+                (notmuch-show-strip-re
+                 (replace-regexp-in-string "\t" " " (notmuch-show-get-subject)))))
 
-       (add-hook 'notmuch-show-hook 'notmuch-show-header-tabs-to-spaces)
+        (add-hook 'notmuch-show-hook 'notmuch-show-header-tabs-to-spaces)
 
 ## Hiding unread messages in notmuch-show
 
index 935eafbe1743984ed08a576693178e6417b60a13..1b3232f58dc9670ed9a80f4918c99617f1448125 100644 (file)
@@ -23,7 +23,7 @@ excluded from search results.
 It is still possible to find messages with excluded tags, though, by
 manually including the excluded tag in your search:
 
-           $ notmuch search from:foo and tag:spam
+        $ notmuch search from:foo and tag:spam
 
 This will find messages from "foo" with the tag "spam", even though
 "spam" is an excluded tag.
@@ -35,7 +35,7 @@ associated with specific search terms using the "file" output format
 of notmuch search.  To find all message files associated with the tag
 "foo" rung:
 
-           $ notmuch search --output=files tag:foo
+        $ notmuch search --output=files tag:foo
 
 This will output the paths to all message files with "tag:foo", one
 per line.
@@ -43,11 +43,11 @@ per line.
 This is useful in a number of different ways.  For instance, it could
 be used to train a spam filter:
 
-           $ notmuch search --output=files tag:spam | sa-learn -f -
+        $ notmuch search --output=files tag:spam | sa-learn -f -
 
 It can also be used to purge mail files from disk:
 
-           $ notmuch search --output=files tag:deleted | xargs -l rm
+        $ notmuch search --output=files tag:deleted | xargs -l rm
 
 Make sure you run "notmuch new" after the last command so the database
 becomes aware that the files have been removed and can remove the
@@ -60,7 +60,7 @@ procedure:
 
 * Add exclusion for messages with the "deleted" tag:
 
-           $ notmuch config set search.exclude_tags deleted
+        $ notmuch config set search.exclude_tags deleted
 
 * Add a key binding to your favorite ui to add a "deleted" tag to
   messages that you want to delete.  In [[emacs|emacstips]] that might
index 2e867e2e4f3e140715b4336a5026607cc24bb597..e54d155327cf4481957c10534d4353985f44eba6 100644 (file)
@@ -111,7 +111,7 @@ Save this to a file, "remote-notmuch.sh", in your path.
 Now you can run "remote-notmuch.sh new". You can call the script
 anything you like. I actually have $HOME/bin/notmuch linked to that
 script, so I can have transparent
-usage. 
+usage.
 
 ##Configure your emacs client##
 
index eff0e15e93d5930821677833ce4de8619658fb44..9403f7a1f5088e0f1943bb7891e0d8496152bac8 100644 (file)
@@ -20,7 +20,7 @@ sort=title template=titlepage]]
 
 Using a template works like this:
 
-       \[[!template id=note text="""Here is the text to insert into my note."""]]
+        \[[!template id=note text="""Here is the text to insert into my note."""]]
 
 This fills out the [[note]] template, filling in the `text` field with
 the specified value, and inserts the result into the page.