diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2021-05-12 16:44:12 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2021-05-12 16:44:12 +0200 |
| commit | 82dd65151bf2bf047f484fe664b34f72f57302b5 (patch) | |
| tree | 0eee7fdf1babe09a2c727fdbf187bc863edf0a71 | |
| parent | 667b91f8a9f915a96ba5370ac3b9f3f9411bc17c (diff) | |
| download | dotfiles-82dd65151bf2bf047f484fe664b34f72f57302b5.tar.gz dotfiles-82dd65151bf2bf047f484fe664b34f72f57302b5.zip | |
[mutt] use xdg-mime to determine mime types and add mailcap file
| -rw-r--r-- | mailcap | 9 | ||||
| -rw-r--r-- | muttrc | 3 | ||||
| -rwxr-xr-x | setup.py | 3 |
3 files changed, 14 insertions, 1 deletions
@@ -0,0 +1,9 @@ +audio/*; /usr/bin/xdg-open %s + +image/*; imv %s; test=test -n "$DISPLAY" + +application/msword; /usr/bin/xdg-open %s +application/pdf; /usr/bin/xdg-open %s +application/postscript ; /usr/bin/xdg-open %s + +text/html; /usr/bin/xdg-open %s ; copiousoutput @@ -47,6 +47,9 @@ set query_command= "khard email --parsable %s" bind editor <Tab> complete-query bind editor ^T complete +# use xdg-mime to determine mime types +set mime_type_query_command = "xdg-mime query filetype" + ############## COLOR ####################### source ~/.mutt/theme @@ -68,7 +68,8 @@ def dotfile_loc_helper(quiet): return e mutt_target = [("muttrc", home_dir + "/.muttrc"), - ("mutt", home_dir + "/.mutt")] + ("mutt", home_dir + "/.mutt"), + ("mailcap", home_dir + "/.mailcap")] # targets are a list of tuples<file name, link destination> and/or functions targets = { |
