X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacstips.mdwn;h=b158c6d042498eec9d2bbb39015e016c239e871b;hb=c9f68e4b284734bf5c4ec9939b359698fabb6296;hp=03bb5b60d6b9ffa185b66b8add8b3362ff973dce;hpb=1705ac358c39eb780b5cf77fd00c0e65b7876bdb;p=notmuch-wiki diff --git a/emacstips.mdwn b/emacstips.mdwn index 03bb5b6..b158c6d 100644 --- a/emacstips.mdwn +++ b/emacstips.mdwn @@ -218,7 +218,7 @@ displaying the count for the saved-search. For example (setq notmuch-saved-searches '((:name "inbox" :query "tag:inbox" :count-query "tag:inbox and tag:unread" - :sort-order 'oldest-first))) + :sort-order oldest-first))) specifies a single saved search for inbox, but the number displayed by the search will be the number of unread messages in the inbox, and the @@ -673,14 +673,14 @@ notmuch-show-stash-mlarchive-link-alist RET`. Add a new entry with "Function returning the URL:" set to: - (lambda (message-id) - (concat "http://patchwork.example.com/patch/" - (nth 0 - (process-lines "/path/to/pwclient" "search" - "-p" "the-project" - "-m" (concat "<" message-id ">") - "-n" "1" - "-f" "%{id}")))) + (lambda (message-id) + (concat "http://patchwork.example.com/patch/" + (nth 0 + (process-lines "/path/to/pwclient" "search" + "-p" "the-project" + "-m" (concat "<" message-id ">") + "-n" "1" + "-f" "%{id}")))) Replacing `http://patchwork.example.com/patch/`, `/path/to/pwclient`, and `the-project` appropiately. You should now be able to stash the Patchwork URL @@ -689,22 +689,22 @@ using `c l`. Going further, if the patch has been committed, you can get the commit hash with this: - (lambda (message-id) - (nth 0 - (process-lines "/path/to/pwclient" "search" - "-p" "the-project" - "-m" (concat "<" message-id ">") - "-n" "1" - "-f" "%{commit_ref}"))) + (lambda (message-id) + (nth 0 + (process-lines "/path/to/pwclient" "search" + "-p" "the-project" + "-m" (concat "<" message-id ">") + "-n" "1" + "-f" "%{commit_ref}"))) And finally, if the project has a web interface to its source repository, you can turn the commit hash into a URL pointing there, for example: - (lambda (message-id) - (concat "http://cgit.example.com/the-project/commit/?id=" - (nth 0 - (process-lines "/path/to/pwclient" "search" - "-p" "the-project" - "-m" (concat "<" message-id ">") - "-n" "1" - "-f" "%{commit_ref}")))) + (lambda (message-id) + (concat "http://cgit.example.com/the-project/commit/?id=" + (nth 0 + (process-lines "/path/to/pwclient" "search" + "-p" "the-project" + "-m" (concat "<" message-id ">") + "-n" "1" + "-f" "%{commit_ref}"))))