Use key-translation-map for unicode
This commit is contained in:
parent
bc33e39823
commit
805e1fa8ff
2 changed files with 12 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue