From e511b9ddb8d5cb135c1e8263b4967c7978e45e8e Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 13 Aug 2017 15:19:04 -0400 Subject: [PATCH] Switch C-DEL and M-DEL in counsel-find-file-map this allows for more reasonable backward-kill-word behavior with C-DEL --- .emacs.d/init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index af507fc..ea47583 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -274,7 +274,11 @@ :bind (("M-x" . counsel-M-x) ("C-M-y" . counsel-yank-pop) ("C-x C-f" . counsel-find-file) - :map counsel-find-file-map ("C-M-i" . counsel-find-file-edit-path)) + :map counsel-find-file-map ("C-M-i" . counsel-find-file-edit-path) + :map counsel-find-file-map ("C-DEL" . ivy-backward-kill-word) + :map counsel-find-file-map ("C-" . ivy-backward-kill-word) + :map counsel-find-file-map ("M-DEL" . counsel-up-directory) + :map counsel-find-file-map ("M-" . counsel-up-directory)) :init (bind-key "C-c C-c M-x" 'execute-extended-command) ;;normal M-x. :config