From d13f831cfe15761d052fe0457b66be09ac20856d Mon Sep 17 00:00:00 2001 From: Nicolas Duhamel Date: Sat, 28 Apr 2018 17:18:53 +0200 Subject: [PATCH] Neomutt add compose, remove sidebar --- user/neomutt/.config/neomutt/compose | 20 ++++++++++++++++ user/neomutt/.config/neomutt/keybinding | 31 +++++++++++++++++++------ user/neomutt/.config/neomutt/neomuttrc | 8 +++++-- 3 files changed, 50 insertions(+), 9 deletions(-) create mode 100644 user/neomutt/.config/neomutt/compose diff --git a/user/neomutt/.config/neomutt/compose b/user/neomutt/.config/neomutt/compose new file mode 100644 index 0000000..41c8f3d --- /dev/null +++ b/user/neomutt/.config/neomutt/compose @@ -0,0 +1,20 @@ +# vim: filetype=muttrc + +# Compose View Options ------------------------------- +set realname = "Nicolas Duhamel" # who am i? +set envelope_from # which from? +set sig_dashes # dashes before sig +set edit_headers # show headers when composing +set fast_reply # skip to compose when replying +set askcc # ask for CC: +set fcc_attach # save attachments with the body +unset mime_forward # forward attachments as part of body +set forward_format = "Fwd: %s" # format of subject when forwarding +set forward_decode # decode when forwarding +set attribution = "On %d, %n wrote:" # format of quoting header +set reply_to # reply to Reply to: field +set reverse_name # reply as whomever it was to +set include # include message in replies +set forward_quote # include message in forwards + +set editor = "vim" diff --git a/user/neomutt/.config/neomutt/keybinding b/user/neomutt/.config/neomutt/keybinding index fb7909b..26d058d 100644 --- a/user/neomutt/.config/neomutt/keybinding +++ b/user/neomutt/.config/neomutt/keybinding @@ -54,26 +54,28 @@ bind index U noop bind index V noop bind index W noop bind index Y noop +bind index Z noop bind index a noop bind index b noop +bind index d noop bind index e noop +bind index g noop bind index q noop +bind index s noop +bind index z noop # Set -bind index g noop bind index gg first-entry bind index G last-entry -bind index gf change-folder +macro index gf ? bind index c copy-message bind index m save-message -bind index d noop bind index dd delete-message bind index dt delete-thread bind index f forward-message -bind index s noop bind index ss flag-message bind index sf set-flag bind index Sf clear-flag @@ -90,10 +92,8 @@ bind index l display-message bind index display-message bind index n mail -bind index z noop bind index zz sync-mailbox -bind index Z noop bind index ZZ quit bind index ZQ exit @@ -109,6 +109,7 @@ bind index,pager L sidebar-open # bind pager z noop bind pager h noop +bind pager v noop bind pager g noop bind pager gg top @@ -117,7 +118,6 @@ bind pager k previous-line bind pager j next-line bind pager h exit - bind pager za view-attachments macro pager zu " urlscan" @@ -129,3 +129,20 @@ bind attach s noop macro attach s $HOME/Downloads/y bind attach l view-attach bind attach h exit + +################## +# Compose +# + +bind compose d noop +bind compose p noop +bind compose q noop +bind compose a noop + +bind compose dd detach-file +bind compose r rename-attachment +bind compose e edit-message +bind compose p postpone-message + +macro compose q n #don't ask +macro compose a ? #show browser diff --git a/user/neomutt/.config/neomutt/neomuttrc b/user/neomutt/.config/neomutt/neomuttrc index 6998a4c..e9044f8 100644 --- a/user/neomutt/.config/neomutt/neomuttrc +++ b/user/neomutt/.config/neomutt/neomuttrc @@ -13,6 +13,7 @@ source $XDG_CONFIG_HOME/neomutt/accounts source $XDG_CONFIG_HOME/neomutt/colors source $XDG_CONFIG_HOME/neomutt/index source $XDG_CONFIG_HOME/neomutt/pager +source $XDG_CONFIG_HOME/neomutt/compose source $XDG_CONFIG_HOME/neomutt/keybinding @@ -31,8 +32,11 @@ set pipe_decode # not sure, strip headers and eval mimes when piping set thorough_search # same, strip headers and eval mimes before searching #Sidebar --------------------------------------------- -set sidebar_visible = yes -set sidebar_width = 24 +# set sidebar_visible = yes +# set sidebar_width = 24 + +set mail_check_stats +set folder_format = "%2C%t [%4n/%4m] %f" #Status Bar ------------------------------------------ set status_chars = " *%A"