I use English keyboard and need to type some German letters from time to time. So I defined (global-set-key [?\C-\;] (make-sparse-keymap)) (global-set-key [?\C-\; ?A] [?\x08C4]) ... to insert ...
Say I want to replace all the new lines in my emacs buffer with the character k (wait for the -1, read the rest! :) ). I know I can type M-x replace-string RET C-q C-j RET k. It works fine. My ...