From c7ebc1d48856f398b1040546ef06dce1d8f2282f Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sun, 15 Dec 2019 15:52:05 -0500 Subject: aerc: adopt --- templates/.config/aerc/accounts.conf | 22 ++++++++ templates/.config/aerc/aerc.conf | 87 ++++++++++++++++++++++++++++++ templates/.config/aerc/binds.conf | 101 +++++++++++++++++++++++++++++++++++ 3 files changed, 210 insertions(+) create mode 100644 templates/.config/aerc/accounts.conf create mode 100644 templates/.config/aerc/aerc.conf create mode 100644 templates/.config/aerc/binds.conf diff --git a/templates/.config/aerc/accounts.conf b/templates/.config/aerc/accounts.conf new file mode 100644 index 0000000..b1242b1 --- /dev/null +++ b/templates/.config/aerc/accounts.conf @@ -0,0 +1,22 @@ +# aerc config +[benburwell.com] +source = maildir://~/Mail/Fastmail +outgoing = smtps+plain://benburwell%40fastmail.com@smtp.fastmail.com:465 +default = INBOX +from = Ben Burwell +copy-to = Sent +outgoing-cred-cmd = pass mail/benburwell@fastmail.com +archive = Archive + +# [Notmuch] +# source = notmuch://~/Mail +# query-map = ~/.querymap + +# [IMAP] +# source = imaps://benburwell%40fastmail.com@imap.fastmail.com +# source-cred-cmd = pass mail/benburwell@fastmail.com +# outgoing = smtps+plain://benburwell%40fastmail.com@smtp.fastmail.com +# outgoing-cred-cmd = pass mail/benburwell@fastmail.com +# default = INBOX +# from = Ben Burwell +# copy-to = Sent diff --git a/templates/.config/aerc/aerc.conf b/templates/.config/aerc/aerc.conf new file mode 100644 index 0000000..977c3d1 --- /dev/null +++ b/templates/.config/aerc/aerc.conf @@ -0,0 +1,87 @@ +# +# aerc main configuration + +[ui] +# +# Describes the format for each row in a mailbox view. This field is compatible +# with mutt's printf-like syntax. TODO: document properly +# +# Default: +index-format=%D %Z %-17.17n %s + +# +# See strftime(3) +# +# Default: %F %l:%M %p (ISO 8501 + 12 hour time) +timestamp-format=2006-01-02 03:04 PM + +# +# Width of the sidebar, including the border. +# +# Default: 20 +sidebar-width=20 + +# +# Message to display when viewing an empty folder. +# +# Default: (no messages) +empty-message=(no messages) + +new-message-bell=true + +dirlist-format=%n %>r + +threading-enabled=true + +completion-popovers=true + +[viewer] +# +# Specifies the pager to use when displaying emails. Note that some filters +# may add ANSI codes to add color to rendered emails, so you may want to use a +# pager which supports ANSI codes. +# +# Default: less -R +pager=less -R + +# +# If an email offers several versions (multipart), you can configure which +# mimetype to prefer. For example, this can be used to prefer plaintext over +# html emails. +# +# Default: text/plain,text/html +alternatives=text/plain,text/html + +header-layout: From|Date,To,Subject,Cc,Bcc + +#show-headers=true + +[compose] +# +# Specifies the command to run the editor with. It will be shown in an embedded +# terminal, though it may also launch a graphical window if the environment +# supports it. Defaults to $EDITOR, or vi. +editor= + +header-layout: From,To,Subject,Cc,Bcc + +address-book-cmd=khard email --parsable '%s' + +[filters] +# +# Filters allow you to pipe an email body through a shell command to render +# certain emails differently, e.g. highlighting them with ANSI escape codes. +# +# The first filter which matches the email's mimetype will be used, so order +# them from most to least specific. +# +# You can also match on non-mimetypes, by prefixing with the header to match +# against (non-case-sensitive) and a comma, e.g. subject,text will match a +# subject which contains "text". Use header,~regex to match against a regex. +subject,~^\[PATCH=awk -f /usr/local/share/aerc/filters/hldiff +#text/html=pandoc -f html -t plain +text/html=/usr/local/share/aerc/filters/html +text/*=awk -f /usr/local/share/aerc/filters/plaintext + +[notmuch] +#query-map = ~/.querymap diff --git a/templates/.config/aerc/binds.conf b/templates/.config/aerc/binds.conf new file mode 100644 index 0000000..bcae355 --- /dev/null +++ b/templates/.config/aerc/binds.conf @@ -0,0 +1,101 @@ +# Binds are of the form = +# To use '=' in a key sequence, substitute it with "Eq": "" +# If you wish to bind #, you can wrap the key sequence in quotes: "#" = quit + = :prev-tab + = :next-tab + = :term +# gT = :prev-tab +# gt = :next-tab + +[messages] +q = :quit +j = :next + = :next + = :next 50% + = :next 100% + = :next -s 100% +k = :prev + = :prev + = :prev 50% + = :prev 100% + = :prev -s 100% +gg = :select 0 +gi = :cf INBOX +ga = :cf Archive +gs = :cf Spam +G = :select -1 +J = :next-folder +K = :prev-folder + = :view +#d = :confirm 'Really delete this message?' ':delete-message' +d = :archive flat +D = :delete +A = :archive flat +C = :compose +rr = :reply -a +rq = :reply -aq +Rr = :reply +Rq = :reply -q +c = :cf +$ = :term +! = :term +| = :pipe +/ = :search +#/ = :ct notmuch:cf +\ = :filter +n = :next-result +N = :prev-result +vp = :mv PZP +vs = :mv Spam +vm = :mv Misc +yy = :pipe pbcopy + +[view] +q = :close +| = :pipe +D = :delete +S = :save +A = :archive flat +f = :forward +rr = :reply -a +rq = :reply -aq +Rr = :reply +Rq = :reply -q +H = :toggle-headers + = :prev-part + = :next-part +J = :next +K = :prev +yy = :pipe pbcopy + +[compose] +# Keybindings used when the embedded terminal is not selected in the compose +# view +$ex = + = :prev-field + = :next-field + = :next-field + +[compose::editor] +# Keybindings used when the embedded terminal is selected in the compose view +$noinherit = true +$ex = + = :prev-field + = :next-field + = :prev-tab + = :next-tab + +[compose::review] +# Keybindings used when reviewing a message to be sent +y = :send +n = :abort +q = :abort +e = :edit +a = :attach + +[terminal] +$noinherit = true +$ex = + + = :prev-tab + = :next-tab -- cgit v1.2.3