Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default keybindings in edit mode #77

Open
floli opened this issue Aug 27, 2015 · 0 comments
Open

Change default keybindings in edit mode #77

floli opened this issue Aug 27, 2015 · 0 comments

Comments

@floli
Copy link

floli commented Aug 27, 2015

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.

  • Dired with its very similiar wdired functionality (which is invoked with C-x C-q) uses C-c C-c and C-c C-k.
  • Confirming or aborting a commit when writing a commit message uses these keybindings
  • Confirming or closing a org capture uses these 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants