Fix borked keys in insert mode

Due to unescapted ctrl key specs.
This commit is contained in:
Henrik Lissner 2018-06-01 02:42:36 +02:00
parent 4f4495ca2a
commit 592205e1dd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -721,7 +721,7 @@
;; Fix TAB in terminal ;; Fix TAB in terminal
(unless window-system (unless window-system
(define-key input-decode-map "TAB" [tab])) (define-key input-decode-map (kbd "TAB") [tab]))
(after! evil (after! evil
(evil-define-key* 'insert 'global (evil-define-key* 'insert 'global
@ -729,24 +729,24 @@
;; Pressing it again will send you to the true bol. Same goes for C-e, ;; Pressing it again will send you to the true bol. Same goes for C-e,
;; except it will ignore comments and trailing whitespace before jumping to ;; except it will ignore comments and trailing whitespace before jumping to
;; eol. ;; eol.
"C-a" #'doom/backward-to-bol-or-indent "\C-a" #'doom/backward-to-bol-or-indent
"C-e" #'doom/forward-to-last-non-comment-or-eol "\C-e" #'doom/forward-to-last-non-comment-or-eol
"C-u" #'doom/backward-kill-to-bol-and-indent "\C-u" #'doom/backward-kill-to-bol-and-indent
;; textmate-esque newline insertion ;; textmate-esque newline insertion
[M-return] #'evil-open-below [M-return] #'evil-open-below
[S-M-return] #'evil-open-above [S-M-return] #'evil-open-above
;; Emacsien motions for insert mode ;; Emacsien motions for insert mode
"C-b" #'backward-word "\C-b" #'backward-word
"C-f" #'forward-word) "\C-f" #'forward-word)
(evil-define-key* 'insert 'global (evil-define-key* 'insert 'global
;; textmate-esque deletion ;; textmate-esque deletion
[M-backspace] #'doom/backward-kill-to-bol-and-indent) [M-backspace] #'doom/backward-kill-to-bol-and-indent)
(define-key! evil-ex-completion-map (define-key! evil-ex-completion-map
"C-a" #'move-beginning-of-line "\C-a" #'move-beginning-of-line
"C-b" #'backward-word "\C-b" #'backward-word
"C-f" #'forward-word)) "\C-f" #'forward-word))
(after! tabulated-list (after! tabulated-list
(define-key tabulated-list-mode-map "q" #'quit-window)) (define-key tabulated-list-mode-map "q" #'quit-window))