Emacs commands:
- To exit: C-x C-c
- Turn on syntax highlighting: M-x font-lock-mode
Key:
C = Ctrl
M = Meta (Alt)
Thanks to the rest of the web
UPDATE: It turns out font-lock-keywords can easily be implemented in a 3 line bash script. Call it "highlight":
# Usage: tail -f error.log | highlight "error"
RED="$(tput setaf 1)"
RESET="$(tput setaf 7)"
sed "s/$1/$RED$1$RESET/"
But I would still like to see the Perl debugger integrated into Emacs
UPDATE: It turns out font-lock-keywords can easily be implemented in a 3 line bash script. Call it "highlight":
# Usage: tail -f error.log | highlight "error"
RED="$(tput setaf 1)"
RESET="$(tput setaf 7)"
sed "s/$1/$RED$1$RESET/"