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

Suggest keybinding configuration for Spacemacs Users #7

Open
rymndhng opened this issue Mar 31, 2020 · 0 comments
Open

Suggest keybinding configuration for Spacemacs Users #7

rymndhng opened this issue Mar 31, 2020 · 0 comments

Comments

@rymndhng
Copy link
Owner

For spacemacs user, it's desirable to have keybindings that work with the major-mode prefix. The Configuration section of the README should include instructions on how to set this up.

I have this little script for doing this, however it'd be fantastic if this could be packaged up more nicely.

(progn
      (dolist (major-mode '(typescript-mode js2-mode))
        (spacemacs/set-leader-keys-for-major-mode major-mode
          "tp" 'jest-test-run-all-tests
          "ta" 'jest-test-rerun-test
          "tn" 'jest-test-run
          "tt" 'jest-test-run-at-point)
        (spacemacs/declare-prefix-for-mode major-mode "mt" "test")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant