Skip to content

Commit 6840640

Browse files
committed
Reorganize mutt config
1 parent a320c47 commit 6840640

File tree

11 files changed

+194
-10
lines changed

11 files changed

+194
-10
lines changed

.config/i3/config

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
# To get a config file with the same key positions, but for your current
99
# layout, use the i3-config-wizard
1010
#
11+
gaps inner 16
12+
new_window pixel 0
1113

1214
# Font for window titles. Will also be used by the bar unless a different font
1315
# is used in the bar {} block below.
14-
font pango:Jetbrains Mono 13
16+
font pango:Roboto Mono 13
1517

1618
# This font is widely installed, provides lots of unicode glyphs, right-to-left
1719
# text rendering and scalability on retina/hidpi displays (thanks to pango).
@@ -46,7 +48,7 @@ set $right semicolon
4648
floating_modifier Mod4
4749

4850
# start a terminal
49-
bindsym Mod4+Return exec kitty
51+
bindsym Mod4+Return exec alacritty
5052

5153
# kill focused window
5254
bindsym Mod4+Shift+q kill

.config/mutt/binds

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
bind attach,index G last-entry
2+
bind attach,index g first-entry
3+
4+
bind attach,index,pager \CD next-page
5+
bind attach,index,pager \CU previous-page
6+
7+
bind index,pager \Cp sidebar-prev
8+
bind index,pager \Cn sidebar-next
9+
bind index,pager \Co sidebar-open
10+
11+
bind pager G bottom
12+
bind pager g top
13+
bind pager j next-line
14+
bind pager k previous-line
15+
16+
# vim: set ft=muttrc:

.config/mutt/colors

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
color attachment red default
2+
color hdrdefault cyan default
3+
4+
color header brightcyan default ^Date
5+
color header brightgreen default ^Subject:
6+
color header brightyellow default ^From:
7+
color header yellow default ^Cc:
8+
color header yellow default ^To:
9+
10+
color index brightwhite default "~N|~O"
11+
12+
color indicator magenta default
13+
color markers brightred default
14+
color normal white default
15+
color quoted cyan default
16+
color quoted1 magenta default
17+
color quoted2 blue default
18+
color signature yellow default
19+
color status blue default
20+
color tilde blue default
21+
color tree magenta default
22+
23+
# vim: set ft=muttrc:

.config/mutt/macros

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
macro index ,g "<shell-escape>mbsync -a<enter>"
2+
macro pager ,d "<view-attachments><pipe-message>vim -c ':call Mutt()' -<enter><exit>"
3+
4+
# vim: set ft=muttrc:

.config/mutt/muttrc

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Maildir
2+
set mbox_type = Maildir
3+
set folder = ~/.mail
4+
set spoolfile = +inbox
5+
set postponed = +drafts
6+
set record = +sent
7+
set sendmail = "/usr/bin/msmtp"
8+
9+
# Basic
10+
set realname = "Christopher Dolan"
11+
set from = "[email protected]"
12+
set use_from = yes
13+
14+
# Core
15+
set header_cache = ~/.cache/mutt
16+
set editor = "vim"
17+
set sort = threads
18+
set sort_aux = reverse-last-date-received
19+
set charset = "utf-8"
20+
set read_inc = 0
21+
set maildir_header_cache_verify = no
22+
unset wait_key
23+
unset use_domain
24+
unset user_agent
25+
26+
# Mailboxes
27+
mailboxes ! `command ls ~/.mail | awk '{ printf "=%s ", $1 }'`
28+
29+
# Sidebar
30+
set sidebar_visible
31+
set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
32+
set mail_check_stats
33+
34+
source ~/.config/mutt/binds
35+
source ~/.config/mutt/macros
36+
source ~/.config/mutt/colors
37+
38+
# vim: set ft=muttrc:

.gitmodules

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
[submodule ".vim/pack/default/start/vim-endwise"]
88
path = .vim/pack/default/start/vim-endwise
99
url = https://github.com/tpope/vim-endwise
10-
[submodule ".config/kitty/kitty-themes"]
11-
path = .config/kitty/kitty-themes
12-
url = https://github.com/dexpota/kitty-themes
13-
[submodule ".vim/pack/default/start/jellybeans.vim"]
14-
path = .vim/pack/default/start/jellybeans.vim
15-
url = https://github.com/nanotech/jellybeans.vim
10+
[submodule ".vim/pack/default/start/space-vim-theme"]
11+
path = .vim/pack/default/start/space-vim-theme
12+
url = https://github.com/liuchengxu/space-vim-theme

.mbsyncrc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,30 @@ Slave :fastmail-local:trash
5151
Create Both
5252
Expunge Both
5353

54+
Channel fastmail-arch-announce
55+
Master :fastmail-remote:"lists/arch-announce"
56+
Slave :fastmail-local:arch-announce
57+
Create Both
58+
Expunge Both
59+
60+
Channel fastmail-arch-dev-public
61+
Master :fastmail-remote:"lists/arch-dev-public"
62+
Slave :fastmail-local:arch-dev-public
63+
Create Both
64+
Expunge Both
65+
66+
Channel fastmail-arch-general
67+
Master :fastmail-remote:"lists/arch-general"
68+
Slave :fastmail-local:arch-general
69+
Create Both
70+
Expunge Both
71+
72+
Channel fastmail-arch-security
73+
Master :fastmail-remote:"lists/arch-security"
74+
Slave :fastmail-local:arch-security
75+
Create Both
76+
Expunge Both
77+
5478
Channel fastmail-linux-kernel
5579
Master :fastmail-remote:"lists/linux-kernel"
5680
Slave :fastmail-local:linux-kernel
Lines changed: 0 additions & 1 deletion
This file was deleted.
Submodule space-vim-theme added at 4790dbb

.vimrc

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
let mapleader = ","
2+
3+
" Navigation {{{
4+
nnoremap ; :
5+
inoremap jk <esc>
6+
inoremap kj <esc>
7+
nnoremap B ^
8+
nnoremap E $
9+
" }}}
10+
11+
" Searching {{{
12+
set showmatch
13+
set incsearch
14+
set hlsearch
15+
16+
nnoremap <leader><space> :nohlsearch<CR>
17+
" }}}
18+
19+
" Folding {{{
20+
set foldenable
21+
set foldlevelstart=10
22+
set foldnestmax=10
23+
set foldmethod=indent
24+
25+
nnoremap <space> za
26+
" }}}
27+
28+
" Modelines {{{
29+
set modeline
30+
set modelines=1
31+
" }}}
32+
33+
" Languages {{{
34+
augroup configgroup
35+
autocmd!
36+
37+
autocmd BufEnter *.h setlocal filetype=c
38+
39+
autocmd FileType ruby setlocal expandtab
40+
autocmd FileType ruby setlocal shiftwidth=2
41+
autocmd FileType ruby setlocal softtabstop=2
42+
autocmd FileType ruby setlocal tabstop=2
43+
44+
autocmd BufRead,BufNewFile *mutt-* setlocal filetype=mail
45+
autocmd BufRead,BufNewFile *mutt-* setlocal tw=72
46+
augroup END
47+
" }}}
48+
49+
" Drawing {{{
50+
set ttyfast
51+
"set termguicolors
52+
53+
colorscheme space_vim_theme
54+
55+
let g:space_vim_transp_bg = 1
56+
57+
set background=dark
58+
" }}}
59+
60+
" Backups {{{
61+
set nobackup
62+
set nowritebackup
63+
set noswapfile
64+
set viminfo=
65+
" }}}
66+
67+
" Workflow {{{
68+
function! Mutt()
69+
set readonly
70+
set filetype=git
71+
72+
nnoremap i <esc>
73+
nnoremap q :quit!<CR>
74+
endfunction
75+
" }}}

0 commit comments

Comments
 (0)