# HG changeset patch # User Oleksandr Gavenko # Date 1485539510 -7200 # Node ID 93700ab0e4918049a42a6cd4f178d9d948dbde84 # Parent 0959998f028de559a0313c8cd347c40c23f38743 Use ScrollLock as super modifier in Windows. It is useful after remapping CapsLock to ScrollLock. diff -r 0959998f028d -r 93700ab0e491 .emacs-my --- a/.emacs-my Fri Jan 27 17:23:34 2017 +0200 +++ b/.emacs-my Fri Jan 27 19:51:50 2017 +0200 @@ -302,6 +302,16 @@ "List of text mode hooks.") ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +(message "MS Windows, w32, win32") + +;; To remap CapsLock to ScrollLock: +;; Windows Registry Editor Version 5.00 +;; [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] +;; "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,46,00,3a,00,00,00,00,00 +(when (eq system-type 'nt) + (setq w32-scroll-lock-modifier 'super)) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (message "package, elpa") (eval-when 'compile (require 'package nil t))