From: Tomi Ollila Date: Sun, 20 Jan 2013 11:21:27 +0000 (+0200) Subject: more tabs to spaces (+ trailing whitespaces) X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=commitdiff_plain;h=8262329e77f1263c56e3df6be60553fe026e5982 more tabs to spaces (+ trailing whitespaces) --- diff --git a/corpus.mdwn b/corpus.mdwn index aa609b7..1730ece 100644 --- a/corpus.mdwn +++ b/corpus.mdwn @@ -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) - - diff --git a/emacstips.mdwn b/emacstips.mdwn index 8c8e168..86bcb44 100644 --- a/emacstips.mdwn +++ b/emacstips.mdwn @@ -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 diff --git a/excluding.mdwn b/excluding.mdwn index 935eafb..1b3232f 100644 --- a/excluding.mdwn +++ b/excluding.mdwn @@ -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 diff --git a/remoteusage.mdwn b/remoteusage.mdwn index 2e867e2..e54d155 100644 --- a/remoteusage.mdwn +++ b/remoteusage.mdwn @@ -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## diff --git a/templates.mdwn b/templates.mdwn index eff0e15..9403f7a 100644 --- a/templates.mdwn +++ b/templates.mdwn @@ -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.