From 9d0cf7a32d1ebba85f43095c12c26fa732985512 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Sat, 21 Jul 2018 22:33:59 +0200 Subject: [PATCH] Add muttrc --- .mutt/keybindings | 53 ++++++++++++++++++++++++++++++++++++++++ .mutt/muttrc | 62 +++++++++++++++++++++++++++++++++++++++++++++++ .mutt/signature | 5 ++++ notes/Makefile | 18 -------------- 4 files changed, 120 insertions(+), 18 deletions(-) create mode 100644 .mutt/keybindings create mode 100644 .mutt/muttrc create mode 100644 .mutt/signature delete mode 100644 notes/Makefile diff --git a/.mutt/keybindings b/.mutt/keybindings new file mode 100644 index 0000000..4f8c237 --- /dev/null +++ b/.mutt/keybindings @@ -0,0 +1,53 @@ +bind generic,index Q exit +bind editor noop +bind editor complete-query + +bind browser gg top-page +bind browser G bottom-page +bind browser \Cb previous-page +bind browser \Cf next-page +bind browser A check-new +bind browser v view-file + +bind index ~ set-flag +bind index \Cv what-key +bind index H current-top +bind index M current-middle +bind index L current-bottom +bind index / search +bind index : enter-command +bind index i mail + +bind pager i edit +bind pager u mark-as-new +bind pager gg top +bind pager G bottom +bind pager j next-line +bind pager k previous-line + +bind index,attach gg first-entry +bind index,attach G last-entry + +bind index,pager L list-reply +# bind index,pager P print-message +bind index,pager R group-reply +bind index,pager \Cd half-down +bind index,pager \Cu half-up +bind index,pager \Cf next-page +bind index,pager \Cb previous-page +bind index,pager \Cn next-thread +bind index,pager \Cp previous-thread + +bind index,pager f forward-message +bind index,pager p previous-undeleted +bind index,pager N next-unread +bind index,pager P previous-unread + +bind index,pager X print-message + +macro index Z "mu find --clearlinks --format=links --linksdir=~/.mu/results " "mu find" +macro index S "~/.mu/results" "mu find results" + +macro attach s $HOME "Save to default directory for attachments" + +# vim: ft=muttrc diff --git a/.mutt/muttrc b/.mutt/muttrc new file mode 100644 index 0000000..82b861a --- /dev/null +++ b/.mutt/muttrc @@ -0,0 +1,62 @@ +set editor = "vim -c start" +set realname = "Jannik Zander" + +source ~/.mutt/accounts/gmail +#source ~/.mutt/muttgpg +source ~/.mutt/keybindings +#source ~/.mutt/colorscheme + +set mbox_type = Maildir +set mbox = "+[Gmail].All Mail" +set postponed = "+[Gmail].Drafts" +set mail_check = 0 + +# goobook +set sort_alias = alias +set reverse_alias = yes + +mailboxes +INBOX +UTHSCSA +alternative_order text/plain text/enriched text/html +auto_view text/html + +set print_command="muttdoc | pandoc --template=email.tex -V fullpage --latex-engine=xelatex --listings -o ~/email.pdf" + +ignore * +unignore from: subject to cc date x-mailer x-url user-agent +hdr_order date from to cc subject + +set header_cache = ~/.mutt/cache/headers +set message_cachedir = ~/.mutt/cache/bodies +set certificate_file = ~/.mutt/certificates +set mailcap_path = ~/.mutt/mailcap +set signature = ~/.mutt/signature + +set forward_edit = ask-yes +set forward_format = "Fwd: %s" +set include = yes +set mime_forward = yes +set mime_forward_rest = yes +set move = no +set print = yes +set quit = yes +set sig_dashes = no +set sort = 'threads' +set sort_aux = 'reverse-last-date-received' +set text_flowed = yes +set timeout = 1 + +set delete +set envelope_from +set fast_reply +set forward_quote +set reverse_name +set sig_on_top +set smart_wrap + +unset markers +unset wait_key +unset reply_self +unset confirmappend +unset move + +# vim: ft=muttrc diff --git a/.mutt/signature b/.mutt/signature new file mode 100644 index 0000000..a4b8a61 --- /dev/null +++ b/.mutt/signature @@ -0,0 +1,5 @@ + + +- Jannik Zander + + diff --git a/notes/Makefile b/notes/Makefile deleted file mode 100644 index 5711671..0000000 --- a/notes/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -MDs := $(shell find -name '*.md') -PDFs := $(patsubst %.md,%.pdf,$(MDs)) -HTMLs := $(patsubst %.md,%.html,$(MDs)) -HTML_FLAGS = -PDF_FLAGS = --pdf-engine=pdflatex - -all: $(PDFs) - -html: $(HTMLs) - -clean: - @rm -f $(PDFs) $(HTMLs) - -%.pdf: %.md - pandoc $(PDF_FLAGS) -o $@ $< - -%.html: %.md - pandoc $(HTML_FLAGS) -o $@ $< -- 2.43.0