email fixes"
authorMart Lubbers <mart@martlubbers.net>
Wed, 21 Sep 2016 14:53:26 +0000 (16:53 +0200)
committerMart Lubbers <mart@martlubbers.net>
Wed, 21 Sep 2016 14:53:26 +0000 (16:53 +0200)
.gitmodules
email/.config/offlineimap/config
email/.mutt/colors.muttrc
email/.mutt/gpg.muttrc [new file with mode: 0644]
email/.mutt/muttrc
email/.mutt/notmuch.muttrc [deleted file]
email/.mutt/sidebar.muttrc [new file with mode: 0644]
vim/.vim/bundle/vim-linux-coding-style [new submodule]

index 598ab4d..a0e2bbe 100644 (file)
@@ -10,3 +10,6 @@
 [submodule "vim/.vim/bundle/vim-spl.git"]
        path = vim/.vim/bundle/vim-spl.git
        url = git@github.com:dopefishh/vim-spl.git
+[submodule "vim/.vim/bundle/vim-linux-coding-style"]
+       path = vim/.vim/bundle/vim-linux-coding-style
+       url = https://github.com/vivien/vim-linux-coding-style
index 50466cc..7511a48 100644 (file)
@@ -30,3 +30,4 @@ header = "mailboxes "
 peritem = "~/.mutt/mail/%(foldername)s/"
 sep = " "
 footer = "\n"
+incremental = yes
index f9deffe..99a2298 100644 (file)
@@ -1,3 +1,4 @@
+# sidebar
 color normal white default
 color attachment brightyellow default
 color hdrdefault cyan default
@@ -20,3 +21,8 @@ color index brightyellow default ~O
 color index blue default ~T
 color index red default ~D
 color index brightblue default ~F
+
+# sidebar
+color sidebar_divider blue black
+color sidebar_flagged brightblue default
+color sidebar_new brightyellow default
diff --git a/email/.mutt/gpg.muttrc b/email/.mutt/gpg.muttrc
new file mode 100644 (file)
index 0000000..87d7316
--- /dev/null
@@ -0,0 +1,6 @@
+set crypt_use_gpgme=yes
+set crypt_autosign
+set crypt_replysign
+set crypt_replysignencrypted=yes
+set crypt_verify_sig=yes
+message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp"
index b99644b..00dfdeb 100644 (file)
@@ -24,6 +24,7 @@ bind pager j next-line
 bind pager gg top
 bind pager G bottom
 bind index,pager R group-reply 
+bind index,pager F flag-message
 
 # Misc options
 set timeout=2
@@ -72,16 +73,12 @@ macro index,pager A \
     "<pipe-message>khard add-email<return>" \
     "add the sender email address to khard"
 
+# sidebar
+source ~/.mutt/sidebar.muttrc
+
+# Crypto
+source ~/.mutt/gpg.muttrc
+
 # Colors
 source ~/.mutt/colors.muttrc
 
-# notmuch
-source ~/.mutt/notmuch.muttrc
-
-# Crypto
-set crypt_use_gpgme=yes
-set crypt_autosign
-set crypt_replysign
-set crypt_replysignencrypted=yes
-set crypt_verify_sig=yes
-message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp"
diff --git a/email/.mutt/notmuch.muttrc b/email/.mutt/notmuch.muttrc
deleted file mode 100644 (file)
index 6b299dc..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-macro index <F8> \
-"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
-<shell-escape>notmuch-mutt -r --prompt search<enter>\
-<change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
-<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
-      "notmuch: search mail"
-
-macro index <F9> \
-"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
-<pipe-message>notmuch-mutt -r thread<enter>\
-<change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
-<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
-      "notmuch: reconstruct thread"
-
-macro index <F6> \
-"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
-<pipe-message>notmuch-mutt tag -- -inbox<enter>\
-<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
-      "notmuch: remove message from inbox"
diff --git a/email/.mutt/sidebar.muttrc b/email/.mutt/sidebar.muttrc
new file mode 100644 (file)
index 0000000..a998759
--- /dev/null
@@ -0,0 +1,16 @@
+# Settings
+set sidebar_visible = yes
+set sidebar_width = 25
+set sidebar_next_new_wrap = yes
+set mail_check_stats
+set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S'
+set sidebar_sort_method = 'path'
+
+# Keybindings
+bind index,pager \Cj sidebar-prev
+bind index,pager \Ck sidebar-next
+bind index,pager \Cl sidebar-open
+bind index,pager B sidebar-toggle-visible
+
+# Colors
+color indicator cyan black
diff --git a/vim/.vim/bundle/vim-linux-coding-style b/vim/.vim/bundle/vim-linux-coding-style
new file mode 160000 (submodule)
index 0000000..6c2bb8e
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 6c2bb8e1839d3cac42eaabca0f4409b263799f27