[editing] Add qwerty-ca-fr layout to evil-swap-keys config

This commit is contained in:
syl20bnr 2020-08-21 17:35:24 -04:00
parent d19af574b9
commit 39df5e26b6
2 changed files with 12 additions and 2 deletions

View File

@ -450,8 +450,8 @@ It should only modify the values of Spacemacs settings."
dotspacemacs-use-clean-aindent-mode t
;; If non-nil shift your number row to match the entered keyboard layout
;; (only in insert mode). Currently the keyboard layouts
;; (qwerty-us qwertz-de) are supported.
;; (only in insert state). Currently supported keyboard layouts are:
;; `qwerty-us', `qwertz-de' and `querty-ca-fr'.
;; New layouts can be added in `spacemacs-editing' layer.
;; (default nil)
dotspacemacs-swap-number-row nil

View File

@ -481,5 +481,15 @@
("8" . "(")
("9" . ")")
("0" . "="))))
(`qwerty-ca-fr (setq evil-swap-keys-number-row-keys '(("1" . "!")
("2" . "@")
("3" . "#")
("4" . "$")
("5" . "%")
("6" . "?")
("7" . "&")
("8" . "*")
("9" . "(")
("0" . ")"))))
(_ (message "dotspacemacs-swap-number-row %s is not supported." dotspacemacs-swap-number-row)))
(add-hook 'prog-mode-hook #'evil-swap-keys-swap-number-row))))