12345678910111213141516171819202122 |
- #!/bin/sh
- if [ $# -lt 1 ] ; then
- echo "edit-user-script name [type]"
- exit
- fi
- NAME=$1
- shift
- TYPE=$1
- shift
- case $TYPE in
- perl)
- emacsclient --alternate-editor="" -n ~/bin/${NAME}.pl
- ;;
- python)
- emacsclient --alternate-editor="" -n ~/bin/${NAME}.py
- ;;
- *)
- emacsclient --alternate-editor="" -n ~/bin/${NAME}
- esac
|