diff --git a/users/rouven/modules/accounts/default.nix b/users/rouven/modules/accounts/default.nix index 6dd1619..5db4fe6 100644 --- a/users/rouven/modules/accounts/default.nix +++ b/users/rouven/modules/accounts/default.nix @@ -6,6 +6,7 @@ in home.packages = with pkgs; [ imv w3m + urlview ]; services.mbsync.enable = true; programs = { @@ -21,6 +22,7 @@ in # Open the highlighted mailbox bind index,pager sidebar-open set mailcap_path = ${./mailcap} + source ${./vim-keys.rc} source ${./dracula.muttrc} source ${./powerline.neomuttrc} ''; @@ -140,6 +142,7 @@ in }; }; }; - - + home.file.".urlview".text = '' + COMMAND google-chrome-stable %s &> /dev/null + ''; } diff --git a/users/rouven/modules/accounts/mailcap b/users/rouven/modules/accounts/mailcap index f1659aa..106b785 100644 --- a/users/rouven/modules/accounts/mailcap +++ b/users/rouven/modules/accounts/mailcap @@ -1,4 +1,4 @@ -text/plain; $EDITOR %s ; +text/plain; w3m -I %{charset} -T text/plain; copiousoutput; text/html; w3m -I %{charset} -T text/html; copiousoutput; image/*; setsid imv %s >/dev/null & ; video/*; setsid mpv --quiet %s >/dev/null &; diff --git a/users/rouven/modules/accounts/vim-keys.rc b/users/rouven/modules/accounts/vim-keys.rc new file mode 100644 index 0000000..c3fb61b --- /dev/null +++ b/users/rouven/modules/accounts/vim-keys.rc @@ -0,0 +1,35 @@ +#------------------------------------------------------------ +# Vi Key Bindings +#------------------------------------------------------------ + +# Moving around +bind attach,browser,index g noop +bind attach,browser,index gg first-entry +bind attach,browser,index G last-entry +bind pager g noop +bind pager gg top +bind pager G bottom +bind pager k previous-line +bind pager j next-line + +# Scrolling +bind attach,browser,pager,index \CF next-page +bind attach,browser,pager,index \CB previous-page +bind attach,browser,pager,index \Cu half-up +bind attach,browser,pager,index \Cd half-down +bind browser,pager \Ce next-line +bind browser,pager \Cy previous-line +bind index \Ce next-line +bind index \Cy previous-line + +bind pager,index d noop +bind pager,index dd delete-message + +# Threads +bind browser,pager,index N search-opposite +bind pager,index dT delete-thread +bind pager,index dt delete-subthread +bind pager,index gt next-thread +bind pager,index gT previous-thread +bind index za collapse-thread +bind index zA collapse-all # Missing :folddisable/foldenable