summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmutt/notmuch-hook.sh12
-rw-r--r--muttrc2
-rw-r--r--packages.nix1
-rw-r--r--vim.nix3
4 files changed, 14 insertions, 4 deletions
diff --git a/mutt/notmuch-hook.sh b/mutt/notmuch-hook.sh
index eec6680..29fe9dc 100755
--- a/mutt/notmuch-hook.sh
+++ b/mutt/notmuch-hook.sh
@@ -5,14 +5,18 @@ notmuch new
# retag all "new" messages "inbox" and "unread"
notmuch tag +inbox +unread -new -- tag:new
-# tag all messages from "me" as sent and rmeove tags inbox and unread
-notmuch tag -new -unread -inbox +sent -- from:ben@bsima.me or from:bsima@me.com
+# tag all messages from "me" as sent
+notmuch tag +sent -- from:ben@bsima.me
+
+# tag TODOs from myself
+notmuch tag +todo -- subject:TODO
# tag some newsletters, but don't show them in inbox
-notmuch tag +newsletters -new -inbox -- \
+notmuch tag +newsletters -inbox -- \
from:the-morning-paper@onelanday.co.uk or \
from:newsletter@fightaging.org or \
- subject:'The Reading List Email*'
+ subject:'The Reading List Email*' or \
+ from:info@haskellweekly.news
# tag logwatch emails & remove from inbox
notmuch tag +logwatch -new -inbox -- subject:'Logwatch*'
diff --git a/muttrc b/muttrc
index 94c7cb5..b63c7cd 100644
--- a/muttrc
+++ b/muttrc
@@ -77,6 +77,8 @@ virtual-mailboxes "inbox" "notmuch://?query=tag:inbox"
virtual-mailboxes "archive" "notmuch://?query=tag:archive"
virtual-mailboxes "sent" "notmuch://?query=tag:sent"
virtual-mailboxes "jobs" "notmuch://?query=tag:jobs"
+virtual-mailboxes "todo" "notmuch://?query=tag:todo"
+virtual-mailboxes "newsletters" "notmuch://?query=tag:newsletters"
macro index S "<vfolder-from-query>" "search mailbox"
macro index,pager A "<modify-labels>+archive -unread -inbox\n" "archive message"
diff --git a/packages.nix b/packages.nix
index 866f620..137b6ad 100644
--- a/packages.nix
+++ b/packages.nix
@@ -1,6 +1,7 @@
{ pkgs }:
[
+pkgs.abook
pkgs.ag
pkgs.apvlv
pkgs.antiword
diff --git a/vim.nix b/vim.nix
index a096ac8..36cc033 100644
--- a/vim.nix
+++ b/vim.nix
@@ -40,7 +40,10 @@ in
set shiftwidth=4 " Number of auto-indent spaces
set smartindent " Enable smart-indent
set laststatus=1 " No status line
+ " Mappings
imap fd <Esc>
+ nnoremap ,s :r ~/sig.txt<cr>
+ " UI stuf
let g:netrw_banner=0 " Disable file browser banner
let g:netrw_liststyle=3 " Tree view
set mouse=a