summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home.nix4
-rwxr-xr-xmutt/notmuch-hook.sh7
-rw-r--r--muttrc4
3 files changed, 10 insertions, 5 deletions
diff --git a/home.nix b/home.nix
index a5adf08..d0748c5 100644
--- a/home.nix
+++ b/home.nix
@@ -225,6 +225,7 @@ in
glog = ''git log --graph --pretty=format:"%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset" --abbrev-commit --date=relative'';
gp = "git push origin HEAD";
gs = "git status -sb";
+ hs = "home-manager switch";
ll = "ls -l";
pull = "git pull";
push = "git push";
@@ -234,6 +235,9 @@ in
sf = "fasd -sif"; # interactive file selection
tdate = "date +%Y.%m.%d..%H.%M";
ttime = "date +%H.%M";
+ typeless = "history | tail -n 20000 | sed 's/.* //' | sort | uniq -c | sort -g | tail -n 100";
+ v = "vim";
+ "v." = "vim .";
};
};
diff --git a/mutt/notmuch-hook.sh b/mutt/notmuch-hook.sh
index 29fe9dc..6c152c4 100755
--- a/mutt/notmuch-hook.sh
+++ b/mutt/notmuch-hook.sh
@@ -6,17 +6,18 @@ notmuch new
notmuch tag +inbox +unread -new -- tag:new
# tag all messages from "me" as sent
-notmuch tag +sent -- from:ben@bsima.me
+notmuch tag +sent -inbox -- from:ben@bsima.me
# tag TODOs from myself
-notmuch tag +todo -- subject:TODO
+notmuch tag +todo -inbox -- subject:TODO
# tag some newsletters, but don't show them in inbox
notmuch tag +newsletters -inbox -- \
from:the-morning-paper@onelanday.co.uk or \
from:newsletter@fightaging.org or \
subject:'The Reading List Email*' or \
- from:info@haskellweekly.news
+ from:info@haskellweekly.news or \
+ from:kale@hackernewsletter.com
# tag logwatch emails & remove from inbox
notmuch tag +logwatch -new -inbox -- subject:'Logwatch*'
diff --git a/muttrc b/muttrc
index b63c7cd..a969ed1 100644
--- a/muttrc
+++ b/muttrc
@@ -80,9 +80,9 @@ 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 S "<vfolder-from-query>" "search mailbox"
macro index,pager A "<modify-labels>+archive -unread -inbox\n" "archive message"
-macro index c "<change-vfolder>?" "change to vfolder overview"
+macro index,pager c "<change-vfolder>?" "change to vfolder overview"
bind index,pager y modify-labels
bind index,pager + entire-thread