.emacs-my
changeset 1470 787318562f0a
parent 1469 93700ab0e491
child 1471 431c5408394c
--- a/.emacs-my	Fri Jan 27 19:51:50 2017 +0200
+++ b/.emacs-my	Fri Jan 27 21:28:54 2017 +0200
@@ -307,9 +307,10 @@
 ;; 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))
+;; ; CapsLock (3a,00) => LWin (5b,e0); LWin (5b,e0) => Apps (5d,e0)
+;; "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,5b,e0,3a,00,5d,e0,5b,e0,00,00,00,00
+(when (eq window-system 'w32)
+  (setq w32-apps-modifier 'super))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 (message "package, elpa")