aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2022-09-26 10:19:08 +0800
committerHsieh Chin Fan <pham@topo.tw>2022-09-26 10:19:08 +0800
commitfc732d3197cfe3dff8575ea4544da24939c3c3b5 (patch)
treec9f6c79c9902781fe9f0f25b228d550b047a7bab
parent8ad64bcafabe1f5ea1f6a32b99e895731dade962 (diff)
Update
-rw-r--r--Makefile6
-rw-r--r--mutt/default4
-rwxr-xr-xmutt/mutt.desktop7
3 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8984b3c..aa594ea 100644
--- a/Makefile
+++ b/Makefile
@@ -46,9 +46,13 @@ pass:
46 git clone ssh://vps/~/.password-store ~/.password-store; 46 git clone ssh://vps/~/.password-store ~/.password-store;
47 fi 47 fi
48 48
49mutt: 49~/.local/share/application:
50 mkdir -p $@
51
52mutt: ~/.local/share/application
50 rm -rf ~/.config/mutt 53 rm -rf ~/.config/mutt
51 ln -sf `pwd`/mutt ~/.config/mutt 54 ln -sf `pwd`/mutt ~/.config/mutt
55 ln -sf `pwd`/mutt/mutt.desktop $<
52 56
53tmux: 57tmux:
54 ln -sf `pwd`/misc/tmux.conf ~/.tmux.conf 58 ln -sf `pwd`/misc/tmux.conf ~/.tmux.conf
diff --git a/mutt/default b/mutt/default
index 69b5595..9e88d4c 100644
--- a/mutt/default
+++ b/mutt/default
@@ -54,8 +54,8 @@ bind pager gg noop
54bind pager gg top 54bind pager gg top
55bind pager j next-line 55bind pager j next-line
56bind pager k previous-line 56bind pager k previous-line
57bind pager \cj next-entry 57bind pager \cn next-entry
58bind pager \ck previous-entry 58bind pager \cp previous-entry
59bind pager \ch display-toggle-weed 59bind pager \ch display-toggle-weed
60bind attach x view-mailcap 60bind attach x view-mailcap
61macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file" 61macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file"
diff --git a/mutt/mutt.desktop b/mutt/mutt.desktop
new file mode 100755
index 0000000..f5bd528
--- /dev/null
+++ b/mutt/mutt.desktop
@@ -0,0 +1,7 @@
1[Desktop Entry]
2Name=Mutt
3Comment=My beloved mail client
4Exec=alacritty -e mutt %u
5MimeType=x-scheme-handler/mailto
6Terminal=true
7Type=Application