Adjust the pairs to be chars rather than strings

master
Jacopo De Simoi 5 years ago
parent 37846a0d45
commit 3e2c698e45
  1. 26
      global.org

@ -2242,17 +2242,17 @@ Set up all possible combinations of modifiers
#+end_src
Then list the swapped keys
#+begin_src emacs-lisp
(setq tarmak1-swap-alist '(("j" . "e")
("e" . "k")
("k" . "n")
("n" . "j")))
(setq tarmak2-swap-alist '(("j" . "g")
("g" . "t")
("t" . "f")
("f" . "e")
("e" . "k")
("k" . "n")
("n" . "j")))
(setq tarmak1-swap-alist '((?j . ?e)
(?e . ?k)
(?k . ?n)
(?n . ?j)))
(setq tarmak2-swap-alist '((?j . ?g)
(?g . ?t)
(?t . ?f)
(?f . ?e)
(?e . ?k)
(?k . ?n)
(?n . ?j)))
#+end_src
#+begin_src emacs-lisp
@ -2285,9 +2285,9 @@ Set up all possible combinations of modifiers
(mapcan (lambda (swap-pair)
(mapcar (lambda (mod-combo)
(cons (concat mod-combo
(car swap-pair))
(string (car swap-pair)))
(concat mod-combo
(cdr swap-pair))))
(string (cdr swap-pair)))))
modifier-combo))
tarmak2-swap-alist)))

Loading…
Cancel
Save