From c249f1076fe6de7ab98cf6e242158192a3360914 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Wed, 5 Jun 2019 17:53:22 +0100 Subject: [PATCH] Makes vim compile neomutt files as markdown --- bin/compiler | 2 +- bin/opout | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/compiler b/bin/compiler index 22917c33..4ab7299e 100755 --- a/bin/compiler +++ b/bin/compiler @@ -53,7 +53,7 @@ case "$file" in *\.tex|*\.latex) textype "$file" ;; #*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;; #*\.md) pandoc "$file" -o "$base".pdf ;; - *\.md) mdtype "$file" "$2" ;; + /tmp/neomutt*|*\.md) mdtype "$file" "$2" ;; *config.h) make && sudo make install ;; *\.c) cc "$file" -o "$base" && "$base" ;; *\.py) python "$file" ;; diff --git a/bin/opout b/bin/opout index 0b8ca1f9..a3487025 100755 --- a/bin/opout +++ b/bin/opout @@ -5,7 +5,7 @@ basename="${1%.*}" case "$1" in - *.tex|*.latex|*.md|*.rmd|*.ms|*.me|*.mom) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; + /tmp/neomutt*|*.tex|*.latex|*.md|*.rmd|*.ms|*.me|*.mom) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; *.html) setsid "$TRUEBROWSER" --new-window "$basename".html >/dev/null 2>&1 & ;; *.sent) setsid sent "$1" >/dev/null 2>&1 & ;; esac