|
|
@ -10,13 +10,12 @@ set -- emacsclient -a '' |
|
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------ |
|
|
|
# ------------------------------------------ |
|
|
|
|
|
|
|
|
|
|
|
# Output formatting |
|
|
|
|
|
|
|
B=$(tput bold) |
|
|
|
|
|
|
|
L=$(tput setf 1) # Blue |
|
|
|
|
|
|
|
N=$(tput sgr0) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
format() { |
|
|
|
format() { |
|
|
|
echo "${B}${L}::${N}${B} ${1}${N}" |
|
|
|
b=$(tput bold) |
|
|
|
|
|
|
|
blue=$(tput setf 1) |
|
|
|
|
|
|
|
n=$(tput sgr0) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "${b}${blue}::${n}${b} ${1}${n}" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
cleanup() { |
|
|
|
cleanup() { |
|
|
@ -75,7 +74,7 @@ for file in $files; do |
|
|
|
|
|
|
|
|
|
|
|
sed -i "${i}s/.*/${command}/;" "$tmpfile" > /dev/null |
|
|
|
sed -i "${i}s/.*/${command}/;" "$tmpfile" > /dev/null |
|
|
|
|
|
|
|
|
|
|
|
i=$((i+1)) |
|
|
|
i=$((i + 1)) |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
# Delete empty lines |
|
|
|
# Delete empty lines |
|
|
|