From 65447390c3299e426b964212935919a165648279 Mon Sep 17 00:00:00 2001 From: Greg Goltsov Date: Mon, 25 Feb 2019 14:35:56 +0000 Subject: [PATCH 1/3] Added example of how to activate +ein-hydra --- modules/tools/ein/README.org | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/tools/ein/README.org b/modules/tools/ein/README.org index 7f1c3147a..498f95f11 100644 --- a/modules/tools/ein/README.org +++ b/modules/tools/ein/README.org @@ -51,3 +51,17 @@ Change ~+ein-notebook-dir~ to tell ein where to find your Jupityr notebooks. #+BEGIN_SRC emacs-lisp (setq +ein-notebook-dir "~/my-notebooks") #+END_SRC + +** Using hydra +This module provides a batteries-included hydra - ~+ein-hydra~ - to make using ein +easier. Things like navigating between cells, workbook management etc, are greatly +simplified and are easily accessible. However, by default, it's not bound to any key. +Here's an example of how to bind it: + +#+BEGIN_SRC emacs-lisp +(map! + (:map ein:notebook-mode-map + :localleader + :map ein:notebook-mode-map "," #'+ein-hydra/body)) +#+END_SRC + From f2ef98a5a2e59b03cc136f3568083f7aa8bc3b47 Mon Sep 17 00:00:00 2001 From: Greg Goltsov Date: Mon, 25 Feb 2019 14:43:50 +0000 Subject: [PATCH 2/3] Added TOC entry for the new section --- modules/tools/ein/README.org | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/tools/ein/README.org b/modules/tools/ein/README.org index 498f95f11..07ff5cd13 100644 --- a/modules/tools/ein/README.org +++ b/modules/tools/ein/README.org @@ -12,6 +12,8 @@ - [[Interaction with a Jupyter server][Interaction with a Jupyter server]] - [[Configuration][Configuration]] - [[Setting the default location of your notebooks][Setting the default location of your notebooks]] + - [[Using hydra][Using hydra]] + * Description Adds Jupyter notebook integration into emacs. From 9ad8d97f936df8fc49899228b332da3c4cb43197 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 30 May 2019 13:21:19 -0400 Subject: [PATCH 3/3] Correct `map!` example --- modules/tools/ein/README.org | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/tools/ein/README.org b/modules/tools/ein/README.org index 07ff5cd13..57e54381c 100644 --- a/modules/tools/ein/README.org +++ b/modules/tools/ein/README.org @@ -61,9 +61,8 @@ simplified and are easily accessible. However, by default, it's not bound to any Here's an example of how to bind it: #+BEGIN_SRC emacs-lisp -(map! - (:map ein:notebook-mode-map - :localleader - :map ein:notebook-mode-map "," #'+ein-hydra/body)) +(map! :map ein:notebook-mode-map + :localleader + "," #'+ein-hydra/body) #+END_SRC