summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2016-11-22 13:03:28 -0500
committerDavid Li <li.davidm96@gmail.com>2016-11-29 13:32:25 -0500
commit35a5e415b5912ffd4f132093159d6ecb6a453184 (patch)
tree43e28a7002ba262ca6513b06304d2ffcdb3ea1d6
parent614c7c6e1f8f2245832f06fbba0db172ff04fccf (diff)
Add C-d and M-d in insert mode
-rw-r--r--init.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.el b/init.el
index 7546ae6..4a39090 100644
--- a/init.el
+++ b/init.el
@@ -113,6 +113,8 @@ This functions should be added to the hooks of major modes for programming."
(define-key evil-normal-state-map (kbd ";") 'comment-or-uncomment-region-or-line)
(define-key evil-visual-state-map (kbd ";") 'comment-or-uncomment-region-or-line)
+(define-key evil-insert-state-map (kbd "C-d") 'evil-delete-char)
+(define-key evil-insert-state-map (kbd "M-d") 'kill-word)
(require 'evil-surround)
(global-evil-surround-mode 1)