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

Add ergonomics enforcers layer #6505

Closed
JAremko opened this issue Jul 5, 2016 · 8 comments
Closed

Add ergonomics enforcers layer #6505

JAremko opened this issue Jul 5, 2016 · 8 comments
Labels
- Mailling list - Feature request New Layer stale marked as a stale issue/pr (usually by a bot)

Comments

@JAremko
Copy link
Collaborator

JAremko commented Jul 5, 2016

For those who lack the self control(like me)
Or it can display how many times arrow keys were used(might be in the space-line)

@JAremko JAremko changed the title Disable arrow keys option in .spacemacs file. Add disable arrow keys option in .spacemacs file. Jul 5, 2016
@d12frosted
Copy link
Collaborator

Are you talking about something like following config?

(global-unset-key (kbd "<left>"))
(global-unset-key (kbd "<right>"))
(global-unset-key (kbd "<up>"))
(global-unset-key (kbd "<down>"))
(global-unset-key (kbd "<C-left>"))
(global-unset-key (kbd "<C-right>"))
(global-unset-key (kbd "<C-up>"))
(global-unset-key (kbd "<C-down>"))
(global-unset-key (kbd "<M-left>"))
(global-unset-key (kbd "<M-right>"))
(global-unset-key (kbd "<M-up>"))
(global-unset-key (kbd "<M-down>"))

There is also no-easy-keys minor mode, which you might be interested in.

@JAremko
Copy link
Collaborator Author

JAremko commented Jul 6, 2016

@d12frosted Yeah. I'm thinking. It might be helpful to have something like this for the Evil keys "out of the box" with a single configuration so it will be more beginner friendly. It should be helpful for some Spacemacsers(Spacemacsians). Especially for the people who has Emacs background and want to learn the Vi style navigation.

@nixmaniack
Copy link
Contributor

I remember using guru-mode when starting with Emacs.

@d12frosted
Copy link
Collaborator

@JAremko Before I switched to Spacemacs I used arrows to select windows. This was actually pretty useful. But now since I have avy-window, it's much easier.

(global-set-key (kbd "<left>") 'windmove-left)
(global-set-key (kbd "<right>") 'windmove-right)
(global-set-key (kbd "<up>") 'windmove-up)
(global-set-key (kbd "<down>") 'windmove-down)

@nixmaniack guru-mode looks a little bit more interesting as it can be configured to warn user about wrong usage.

But to be honest, at this point I don't see any point in adding this package to Spacemacs.

@a13ph
Copy link

a13ph commented Jul 6, 2016

I'd say there is a point in adding some well written ergonomics enforcer(s) to Spacemacs
Would be nice to generalize this and automate (instead of hand-coding all the restrictions)
Arguably such code itself would be out of scope for Spacemacs (rather being a good package), but it's quite close, IMO.
/bloat

@JAremko
Copy link
Collaborator Author

JAremko commented Jul 6, 2016

@a13ph I think it's better to make it a part of Spacemacs. This way it will be straightforward to include some Spacemacs related ergonomics. For example using ace-window instead of spamming other-window

@JAremko JAremko changed the title Add disable arrow keys option in .spacemacs file. Add ergonomics enforcers layer Jul 7, 2016
@JAremko
Copy link
Collaborator Author

JAremko commented Jul 7, 2016

Also this tool can display Spacemacs keybindings when their Emacs counterparts are used - if Vim style was chosen by the user.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Mailling list - Feature request New Layer stale marked as a stale issue/pr (usually by a bot)
Projects
Mailing list
  
New packages or layers
Development

No branches or pull requests

5 participants