From 805e1fa8ff703c08bd8a0160572b0612507b0a29 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 4 Jun 2016 23:25:07 -0400 Subject: [PATCH] Use key-translation-map for unicode --- core/core-editor.el | 12 ++++++++++++ private/my-bindings.el | 7 ------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/core/core-editor.el b/core/core-editor.el index 37534cec8..ce38d953c 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -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 diff --git a/private/my-bindings.el b/private/my-bindings.el index 6e5a9e21e..8b0907206 100644 --- a/private/my-bindings.el +++ b/private/my-bindings.el @@ -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