emacsorphanage / helm-swoop

Efficiently hopping squeezed lines powered by Emacs helm interface
GNU General Public License v3.0
689 stars 55 forks source link

Change default keybindings in edit mode #77

Open floli opened 9 years ago

floli commented 9 years ago

The keybindings in edit mode are C-x C-s to complete the edit and C-c C-g to cancel. I suggest changing the defaults to C-c C-c for complete and C-c C-k for cancel. Both are not defined in that mode and free to use.

Rationale

In my perception these are the standards keybindings.

I changed the keymap accordingly and it works, however in the headline of the edit buffer there is still the hardcoded old keybinding

(define-key helm-swoop-edit-map (kbd "C-c C-c") 'helm-swoop--edit-complete)
(define-key helm-swoop-edit-map (kbd "C-c C-k") 'helm-swoop--edit-cancel)