summaryrefslogtreecommitdiff
path: root/mutt/mutt-editor
diff options
context:
space:
mode:
Diffstat (limited to 'mutt/mutt-editor')
-rwxr-xr-xmutt/mutt-editor10
1 files changed, 10 insertions, 0 deletions
diff --git a/mutt/mutt-editor b/mutt/mutt-editor
new file mode 100755
index 0000000..ec32f10
--- /dev/null
+++ b/mutt/mutt-editor
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Script to run editor from mutt. For some reason, the combination of
+# mutt and Emacs results in gnome-terminal getting confused. Running
+# clear fixes that.
+
+set -eu
+
+"$EDITOR" "$@"
+reset