![]() To make it a Super key-very useful in Emacs if you define your own keybindings. (global-set-key 'jonas :alt-keypad)Īnother great thing about Autohotkey is that it allows you to remap the Caps Lock key, which is rather difficult in Windows. (ucs-insert (jonas :alt-keypad-translate (reverse jonas :alt-keypad-seq))) ( if (= (length jonas :alt-keypad-seq) 4) (push last-command-char jonas :alt-keypad-seq) ( unless (eq last-command 'jonas :alt-keypad) (setq acc (+ (jonas :alt-keypad-value elem) ( defun jonas :alt-keypad-translate (seq) Needed to support insertion of European characters from Autohotkey scripts. Emacs doesn’t support this, so I hacked together the equivalent functionality in Elisp: Hack to support Windows Alt+keypad to enter characters by numerical code. Autohotkey sends ä to the receiving application by sending simulated keystrokes for Alt-keypad-0 Alt-keypad-2 Alt-keypad-2 Alt-keypad-8, which in most Windows applications generates the character with decimal code 0228, ä. I have an Autohotkey setup with things like :*? :ae/: :äįor all the diacriticals I use regularly. I use the US keyboard layout, since I am a programmer, but I frequently need to type European diacritical characters when I write German or Swedish, or type my name. information about how to use Autohotkey in conjunction with Emacs. So, on-topic for this page would be, e.g. There would be a problem with Control-X Control-F mapping to either Control-O or Control-N, depending on whether the file or folder already exists (but AHK is a powerful language). (Like not using it Task Manager.) ……… This all would make it possible to use Emacs keystrokes in Wordpad, Notepad, Word, all one’s spreadsheets and databases, and any web pages in Internet Explorer, for instance. There are also tools in AHK, like the IfWinActive lines below, to alter the behavior of the script based on the context. Then it would be a good idea to make it possible to send a Control-P or Control-F when one wants to get by the AHK script – possibly by just turning the script off. ![]() If I read this correctly, then one would want to map Control-P to Up and Control-F to Right. (Response to “make use of AHK to generalize the emacs keystrokes” by HCH: The examples given below could let someone write such a package.
0 Comments
Leave a Reply. |