From 0e4b66d07ab93ff0b90ebef23c4d986e0673f045 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Thu, 23 May 2013 11:10:55 +0300 Subject: [PATCH] Remove problematic kk keychords --- README.md | 12 +++++++++--- core/prelude-global-keybindings.el | 2 -- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a28f11c..5b6df2f 100644 --- a/README.md +++ b/README.md @@ -266,8 +266,6 @@ Keybinding | Description jk | Jump to a character(`ace-jump-char-mode`) jl | Jump to the beginning of a line(`ace-jump-line-mode`) JJ | Jump back to previous buffer(`prelude-switch-to-previous-buffer`) -kk | Delete tabs and spaces around point except one(`just-one-space`) -KK | Delete tabs and spaces around point(`delete-horizontal-space`) uu | View edits as a tree(`undo-tree-visualize`) ##### Disabling key-chords @@ -277,7 +275,15 @@ in which case you can disable the binding in your `personal.el` file by setting its command to `nil`. For example, to disable the `kk` key-chord add the following line: - (key-chord-define-global "kk" nil) + ```lisp + (key-chord-define-global "jj" nil) + ``` + +If you're an `evil-mode` user you'll probably do well to disable `key-chord-mode` altogether: + + ```lisp + (key-chord-mode -1) + ``` ## Automatic package installation diff --git a/core/prelude-global-keybindings.el b/core/prelude-global-keybindings.el index d937ded..1cae597 100644 --- a/core/prelude-global-keybindings.el +++ b/core/prelude-global-keybindings.el @@ -117,8 +117,6 @@ (key-chord-define-global "jj" 'ace-jump-word-mode) (key-chord-define-global "jl" 'ace-jump-line-mode) (key-chord-define-global "jk" 'ace-jump-char-mode) -(key-chord-define-global "kk" 'just-one-space) -(key-chord-define-global "KK" 'delete-horizontal-space) (key-chord-define-global "JJ" 'prelude-switch-to-previous-buffer) (key-chord-define-global "uu" 'undo-tree-visualize)