From 985a07b71c89a81e53bc852c4c58b55224e73643 Mon Sep 17 00:00:00 2001 From: Christoph Hegemann Date: Thu, 21 Jul 2016 12:13:34 +0200 Subject: [PATCH] add keybindings for goto definition functionality --- layers/+lang/purescript/README.org | 1 + layers/+lang/purescript/packages.el | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/layers/+lang/purescript/README.org b/layers/+lang/purescript/README.org index 83cb377d8..bfe7961bb 100644 --- a/layers/+lang/purescript/README.org +++ b/layers/+lang/purescript/README.org @@ -60,6 +60,7 @@ meant as an alternative to using flycheck. Default value is nil. | ~SPC m m s~ | Start 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 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 | diff --git a/layers/+lang/purescript/packages.el b/layers/+lang/purescript/packages.el index 55129eaad..536b7c00d 100644 --- a/layers/+lang/purescript/packages.el +++ b/layers/+lang/purescript/packages.el @@ -72,7 +72,8 @@ "mL" 'psc-ide-load-module "mia" 'psc-ide-add-import "mis" 'psc-ide-flycheck-insert-suggestion - "ht" 'psc-ide-show-type)))) + "ht" 'psc-ide-show-type + "gg" 'psc-ide-goto-definition)))) (defun purescript/pre-init-popwin () (spacemacs|use-package-add-hook popwin