From 64e0787123121683a2e94eeeba90a4cc41535cf0 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sat, 11 Feb 2017 15:36:16 -0500 Subject: [PATCH] emacs-lisp: add SPC m g f to go to a selected known function definition --- layers/+lang/emacs-lisp/README.org | 34 +++++++++++++++-------------- layers/+lang/emacs-lisp/packages.el | 1 + 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/layers/+lang/emacs-lisp/README.org b/layers/+lang/emacs-lisp/README.org index e8496f91a..9e870921b 100644 --- a/layers/+lang/emacs-lisp/README.org +++ b/layers/+lang/emacs-lisp/README.org @@ -44,22 +44,24 @@ As this state works the same for all files, the documentation is in global * Key bindings -| Key Binding | Description | -|----------------------------+----------------------------------------| -| ~SPC m g g~ | go to definition of symbol under point | -| ~SPC m h h~ | describe symbol at point | -| ~SPC m c c~ | byte compile the current file | -| ~SPC m c l~ | popup compile-log buffer | -| ~SPC m e $~ or ~SPC m e l~ | go to end of current line and evaluate | -| ~SPC m e b~ | evaluate current buffer | -| ~SPC m e C~ | evaluate current =defun= or =setq= | -| ~SPC m e e~ | evaluate sexp before point | -| ~SPC m e f~ | evaluation current function | -| ~SPC m e r~ | evaluate current region | -| ~SPC m ​,​~ | toggle =lisp state= | -| ~SPC m t b~ | run tests of current buffer | -| ~SPC m t q~ | run =ert= | -| ~SPC m d m~ | open [[https://github.com/joddie/macrostep][macrostep]] transient-state | +| Key Binding | Description | +|----------------------------+--------------------------------------------------------| +| ~SPC m g f~ | select a known function and go to its definition | +| ~SPC m g g~ | go to definition of symbol under point | +| ~SPC m g G~ | go to definition of symbol under point in other window | +| ~SPC m h h~ | describe symbol at point | +| ~SPC m c c~ | byte compile the current file | +| ~SPC m c l~ | popup compile-log buffer | +| ~SPC m e $~ or ~SPC m e l~ | go to end of current line and evaluate | +| ~SPC m e b~ | evaluate current buffer | +| ~SPC m e C~ | evaluate current =defun= or =setq= | +| ~SPC m e e~ | evaluate sexp before point | +| ~SPC m e f~ | evaluation current function | +| ~SPC m e r~ | evaluate current region | +| ~SPC m ​,​~ | toggle =lisp state= | +| ~SPC m t b~ | run tests of current buffer | +| ~SPC m t q~ | run =ert= | +| ~SPC m d m~ | open [[https://github.com/joddie/macrostep][macrostep]] transient-state | ** smartparens If =smartparens= is used the following additional key bindings are available: diff --git a/layers/+lang/emacs-lisp/packages.el b/layers/+lang/emacs-lisp/packages.el index 0a95f530c..5f45b5778 100644 --- a/layers/+lang/emacs-lisp/packages.el +++ b/layers/+lang/emacs-lisp/packages.el @@ -100,6 +100,7 @@ "er" 'eval-region "ef" 'eval-defun "el" 'lisp-state-eval-sexp-end-of-line + "gf" 'find-function "gG" 'spacemacs/nav-find-elisp-thing-at-point-other-window "," 'lisp-state-toggle-lisp-state "tb" 'spacemacs/ert-run-tests-buffer