summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--Makefile3
-rw-r--r--e.sh2
-rw-r--r--emacsmail.sh10
-rw-r--r--emacsterm.sh63
5 files changed, 0 insertions, 81 deletions
diff --git a/.gitignore b/.gitignore
index d807476..73dda7a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,9 +4,6 @@ chardiff
chardiff_pre
chardiff_post
daemon
-e
-emacsmail
-emacsterm
hangman-helper
maildups
newegg
diff --git a/Makefile b/Makefile
index 92f7a0e..92063ca 100644
--- a/Makefile
+++ b/Makefile
@@ -10,9 +10,6 @@ BINFILES = \
chardiff_pre \
chardiff_post \
daemon \
- e \
- emacsmail \
- emacsterm \
hangman-helper \
maildups \
newegg \
diff --git a/e.sh b/e.sh
deleted file mode 100644
index 62e18d3..0000000
--- a/e.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-emacsclient -a "" -e "$@" 2>/dev/null
diff --git a/emacsmail.sh b/emacsmail.sh
deleted file mode 100644
index b05446a..0000000
--- a/emacsmail.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-# emacs-mailto-handler
-
-mailto=$1
-mailto="mailto:${mailto#mailto:}"
-mailto=$(printf '%s\n' "$mailto" | sed -e 's/[\"]/\\&/g')
-elisp_expr="(mailto-compose-mail \"$mailto\")"
-
-emacsclient -a "" -c -n --eval "$elisp_expr" \
- '(set-window-dedicated-p (selected-window) t)'
diff --git a/emacsterm.sh b/emacsterm.sh
deleted file mode 100644
index e83270d..0000000
--- a/emacsterm.sh
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/bash
-
-mimic=rxvt
-
-usage() {
- echo "Usage $0 [OPTIONS]"
- echo
- echo 'Options:'
- echo ' -r Use rxvt-style parsing of CMD for -e (execve)'
- echo ' -x Use xterm-style parsing of CMD for -e (system)'
- echo ' -e CMD Execute CMD instead of ${SHELL:-/bin/sh}'
- echo ' -h Show this message'
-}
-
-cmd=${SHELL:-/bin/sh}
-usage=false
-error=false
-while getopts 'rxe:h' flag; do
- case "$flag" in
- r) mimic=rxvt;;
- x) mimic=xterm;;
- e)
- if [[ $cmd == "${SHELL:-/bin/sh}" ]]; then
- cmd="$(mktemp -t "${0##*/}.XXXXXXXXXX")"
- trap "rm -f '$cmd'" EXIT
- {
- echo '#!/bin/bash'
- case "$mimic" in
- xterm)
- printf "sh -c %q\n" "$OPTARG"
- ;;
- rxvt)
- shift $(($OPTIND - 1))
- printf '%q ' "$OPTARG" "$@"
- echo
- ;;
- esac
- } > "$cmd"
- chmod 755 "$cmd"
- else
- echo "$0: option -e may only be given once" >>/dev/stderr
- error=true
- fi
- ;;
- h) usage=true;;
- *) error=true;;
- esac
-done
-shift $(($OPTIND - 1))
-if [[ $# != 0 ]]; then
- echo "$0: extra arguments: $*" >>/dev/stderr
- error=true
-fi
-if $error; then
- usage >>/dev/stderr
- exit 1
-fi
-if $usage; then
- usage
- exit 0
-fi
-
-emacsclient -a "" -c --eval "(ansi-term \"${cmd}\")" '(set-window-dedicated-p (selected-window) t)'