Use key-translation-map for unicode

This commit is contained in:
Henrik Lissner 2016-06-04 23:25:07 -04:00
parent bc33e39823
commit 805e1fa8ff
2 changed files with 12 additions and 7 deletions

View file

@ -333,5 +333,17 @@
"h" nil
"g" nil)))
;; Fix certain keys in the terminal
(unless window-system
(map! :map key-translation-map
"TAB" [tab]))
;; Common unicode characters
(map! :map key-translation-map
"A-o" (kbd "ø")
"A-O" (kbd "Ø")
"A--" (kbd "")
"A-_" (kbd ""))
(provide 'core-editor)
;;; core-editor.el ends here

View file

@ -323,12 +323,5 @@
;; escape from insert mode (more responsive than using key-chord-define)
:irv "C-g" 'evil-normal-state)
;; Common unicode characters
(map! :i "A-o" (λ! (insert "ø"))
:i "A-O" (λ! (insert "Ø"))
:i "A--" (λ! (insert ""))
:i "A-_" (λ! (insert "")))
(provide 'my-bindings)
;;; my-bindings.el ends here