Skip to content

Commit

Permalink
mutt/neomutt: reorganise conf to separete non compatible bits
Browse files Browse the repository at this point in the history
  • Loading branch information
gwarf committed Dec 11, 2024
1 parent 98a61e2 commit ef2b9ac
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 28 deletions.
14 changes: 7 additions & 7 deletions home/private_dot_config/neomutt/index-color
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Index color

# http://www.neomutt.org/feature/index-color/
# color index_author default color234 '.*'
# color index_flags default red '~F'
# color index_collapsed default brightblue
# color index_date green default
# color index_label default brightgreen
# color index_number red default
# color index_size cyan default
color index_author default color234 '.*'
color index_flags default red '~F'
color index_collapsed default brightblue
color index_date green default
color index_label default brightgreen
color index_number red default
color index_size cyan default

# vim: set ft=muttrc:
12 changes: 0 additions & 12 deletions home/private_dot_config/neomutt/mutt-common.rc
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,6 @@ unset mark_old # read/new is good enough
unset strict_threads
set sort_re
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
# Sort by threads
set sort = threads
# Sort threads, having the most recent at the top
# XXX: not available in neomutt
set sort_thread_groups = reverse-last-date-received
# Sort within threads, last message at the bottom
set sort_aux = last-date-received
# Ensure that INBOX is always using appropriate thread-based sort
folder-hook Inbox 'set sort=threads sort_aux=last-date-received sort_thread_groups=reverse-last-date-received '
# Ensure that Sent folder is first showing messages last sent
folder-hook Sent 'set sort=reverse-date-sent'

# collapse threads with unread mails
# set collapse_unread
Expand Down Expand Up @@ -131,7 +120,6 @@ source ~/.config/neomutt/forgotten-attachment

# Colors
source ~/.config/neomutt/colors
source ~/.config/neomutt/index-color

# Key bindings, macros
source ~/.config/neomutt/bindings
Expand Down
19 changes: 19 additions & 0 deletions home/private_dot_config/neomutt/muttrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,23 @@ source ~/.config/neomutt/mutt-common.rc
# Notmuch support without patched mutt
source ~/.config/neomutt/notmuch-mutt.rc

# http://www.mutt.org/doc/manual/#bgedit
# XXX not available on neomutt
set background_edit
set editor = "bgedit-screen-tmux.sh nvim"
# set editor = "nvim-qt"
# set editor = "subl -n -w"

# Sort by threads
set sort = threads
# Ensure that Sent folder is first showing messages last sent
folder-hook Sent set sort=reverse-date-sent
# Sort threads, having the most recent at the top
# XXX: not available in neomutt
set sort_thread_groups = reverse-last-date-received
# Sort within threads, last message at the bottom
set sort_aux = last-date-received
# Ensure that INBOX is always using appropriate thread-based sort
folder-hook Inbox set sort=threads sort_aux=last-date-received sort_thread_groups=reverse-last-date-received

# vim: set ft=muttrc:
11 changes: 9 additions & 2 deletions home/private_dot_config/neomutt/neomuttrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ source ~/.config/neomutt/mutt-common.rc
# https://neomutt.org/feature/use-threads
# set use_threads=reverse sort=date sort_aux=date
set use_threads=threads sort=reverse-last-date sort_aux=reverse-last-date
folder-hook Inbox 'set use_threads=threads sort=reverse-last-date sort_aux=reverse-last-date'
folder-hook Inbox set use_threads=threads sort=reverse-last-date sort_aux=reverse-last-date
# Ensure that Sent folder is first showing messages last sent
folder-hook Sent set sort=reverse-date-sent

set editor='neomutt-compose.sh'
# Workaround for lack of background_edit support in Neomutt
# https://github.com/neomutt/neomutt/discussions/4145
# https://github.com/neomutt/neomutt/issues/2713
set editor="neomutt-compose.sh"

# Source neomutt-specific configuration
# Colors
Expand All @@ -16,4 +21,6 @@ source ~/.config/neomutt/progress-color
# Not supported in mutt without notmuch patch
source ~/.config/neomutt/notmuch-neomutt.rc

source ~/.config/neomutt/index-color

# vim: set ft=muttrc:
7 changes: 0 additions & 7 deletions home/private_dot_config/neomutt/profile-maildir.egi
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# Mutt sender profile: egi

# http://www.mutt.org/doc/manual/#bgedit
# XXX not available on neomutt
set background_edit
set editor = "bgedit-screen-tmux.sh nvim"
# set editor = "nvim-qt"
# set editor = "subl -n -w"

set folder = ~/Mail/EGI

# Copy sent message to this folder
Expand Down

0 comments on commit ef2b9ac

Please sign in to comment.