Improve purescript keybinding discoverability & ergonomics.
Added prefix titles and removed some useless nesting.
This commit is contained in:
parent
206ace5f51
commit
0becb67c21
|
@ -1747,6 +1747,8 @@ Other:
|
|||
- Enabled =purescript-decl-scan-mode= when loading =purescript-mode= (thanks to
|
||||
Bjarke Vad Andersen)
|
||||
- Allow adding node_modules/.bin path to exec-path (thanks to Anupam Jain)
|
||||
- Improve purescript keybinding discoverability & ergonomics. (thanks to Jason
|
||||
Walker)
|
||||
**** Python
|
||||
- Various fixes in =pylookup.py= (thanks to ishestakov and Shitikanth Kashyap)
|
||||
- Hide =yapf-mode= modeline lighter (thanks to Robert ven der Helm)
|
||||
|
|
|
@ -68,21 +68,21 @@ meant as an alternative to using flycheck. Default value is nil.
|
|||
| ~SPC m i n~ | Navigate to the imports |
|
||||
|
||||
*** psc-ide
|
||||
=psc-ide= command are available under ~SPC m m~:
|
||||
|
||||
| Key binding | Description |
|
||||
|---------------+---------------------------------------------------------------------------|
|
||||
| ~SPC m m s~ | Start psc-ide-server |
|
||||
| ~SPC m m q~ | Quit the current psc-ide-server |
|
||||
| ~SPC m m l~ | Load definitions for the modules inside your project |
|
||||
| ~SPC m h t~ | Show type at point |
|
||||
| ~SPC m g g~ | Goto definition for identifier at point |
|
||||
| ~SPC m m b~ | Rebuilds the current file and displays any warnings or errors |
|
||||
| ~SPC m m t~ | Add a new clause for the function signature at point |
|
||||
| ~SPC m m c~ | Casesplits on the identifier at the current cursor position |
|
||||
| ~SPC m m L~ | Load a specific module (This is mostly used for troubleshooting) |
|
||||
| ~SPC m m i a~ | Add an import for the identifier at the current cursor position |
|
||||
| ~SPC m m i s~ | Inserts a suggestion for the warning/error at the current cursor position |
|
||||
| ~SPC m m t~ | Add a new clause for the function signature at point |
|
||||
| ~SPC m m c s~ | Casesplits on the identifier at the current cursor position |
|
||||
| ~SPC m m q~ | Quit the current psc-ide-server |
|
||||
| ~SPC m m L~ | Load a specific module (This is mostly used for troubleshooting) |
|
||||
| ~SPC m h t~ | Show type at point |
|
||||
| ~SPC m g g~ | Goto definition for identifier at point |
|
||||
|
||||
|
||||
** REPL
|
||||
[[https://github.com/ardumont/emacs-psci][psci]] provides a very basic REPL for purescript. The following key
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
(progn
|
||||
(add-hook 'purescript-mode-hook 'turn-on-purescript-indentation)
|
||||
(add-hook 'purescript-mode-hook 'purescript-decl-scan-mode)
|
||||
(spacemacs/declare-prefix "mg" "goto")
|
||||
(spacemacs/declare-prefix "mi" "imports")
|
||||
(spacemacs/set-leader-keys-for-major-mode 'purescript-mode
|
||||
"i=" 'purescript-mode-format-imports
|
||||
"i`" 'purescript-navigate-imports-return
|
||||
|
@ -52,6 +54,7 @@
|
|||
(progn
|
||||
(spacemacs/register-repl 'psci 'psci "purescript")
|
||||
(add-hook 'purescript-mode-hook 'inferior-psci-mode)
|
||||
(spacemacs/declare-prefix "ms" "repl")
|
||||
(spacemacs/set-leader-keys-for-major-mode 'purescript-mode
|
||||
"'" 'psci
|
||||
"sb" 'psci/load-current-file!
|
||||
|
@ -71,9 +74,11 @@
|
|||
(customize-set-variable 'psc-ide-rebuild-on-save purescript-enable-rebuild-on-save)
|
||||
|
||||
(add-to-list 'spacemacs-jump-handlers-purescript-mode 'psc-ide-goto-definition)
|
||||
(spacemacs/declare-prefix "mmi" "insert/import")
|
||||
(spacemacs/declare-prefix "mh" "help")
|
||||
(spacemacs/set-leader-keys-for-major-mode 'purescript-mode
|
||||
"mt" 'psc-ide-add-clause
|
||||
"mcs" 'psc-ide-case-split
|
||||
"mc" 'psc-ide-case-split
|
||||
"ms" 'psc-ide-server-start
|
||||
"mb" 'psc-ide-rebuild
|
||||
"mq" 'psc-ide-server-quit
|
||||
|
|
Loading…
Reference in New Issue