diff --git a/emacs.rc b/emacs.rc index 52f959f..a767c9c 100644 --- a/emacs.rc +++ b/emacs.rc @@ -211,7 +211,35 @@ bind-to-key execute-macro-40 M-? !endif !endm - + +35 store-macro + insert-string "syslog(LOG_INFO, " + insert-string &chr 34 + insert-string "%s:%s %i" + insert-string &chr 34 + insert-string ", __FILE__, __FUNCTION__, __LINE__);" + write-message "(Debug syslog)" +!endm + + + +34 store-macro + insert-string "#include " + write-message "(Debug syslog)" +!endm + +33 store-macro + insert-string "printf(" + insert-string &chr 34 + insert-string "%s:%s %i\n" + insert-string &chr 34 + insert-string ", __FILE__, __FUNCTION__, __LINE__);" + write-message "(Debug stdout)" +!endm + +bind-to-key execute-macro-34 ^X9 +bind-to-key execute-macro-35 ^X8 +bind-to-key execute-macro-33 ^X7 bind-to-key execute-macro-36 M-FNR ; Setup for ASCII {|}[\] to ISO Latin-1 translation