Added sql-preset mode
Adjust emacs term chars with hook