diff options
-rw-r--r-- | .config/msmtp/config | 2 | ||||
-rw-r--r-- | .config/mutt/defaults.muttrc | 2 | ||||
-rw-r--r-- | .config/nvim/lua/hooks.lua | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/.config/msmtp/config b/.config/msmtp/config index d0b539a..0919535 100644 --- a/.config/msmtp/config +++ b/.config/msmtp/config @@ -7,7 +7,7 @@ logfile /home/jozan/.config/msmtp/msmtp.log account gmx_rbo host mail.gmx.com port 587 - from Rudy Bousset + from rbo@gmx.us user rbo@gmx.us passwordeval "pass show mutt/gmx_rbo" diff --git a/.config/mutt/defaults.muttrc b/.config/mutt/defaults.muttrc index ebc1cb7..2f4b4bd 100644 --- a/.config/mutt/defaults.muttrc +++ b/.config/mutt/defaults.muttrc @@ -56,7 +56,7 @@ set sidebar_indent_string = ' ' set sidebar_folder_indent = yes bind index,pager \Ck sidebar-prev bind index,pager \Cj sidebar-next -bind index,pager \Co sidebar-open +macro index,pager \Co '<sidebar-open><redraw-screen>' bind index,pager \Cp sidebar-prev-new bind index,pager \Cn sidebar-next-new bind index,pager \Cb sidebar-toggle-visible diff --git a/.config/nvim/lua/hooks.lua b/.config/nvim/lua/hooks.lua index 0d5ed32..eaf0687 100644 --- a/.config/nvim/lua/hooks.lua +++ b/.config/nvim/lua/hooks.lua @@ -1,4 +1,8 @@ vim.api.nvim_create_autocmd({"BufWritePre"}, { pattern = "*", - command = [[%s/\s\+$//e]], + callback = function(ev) + save_cursor = vim.fn.getpos(".") + vim.cmd([[%s/\s\+$//e]]) + vim.fn.setpos(".", save_cursor) + end, }) |