diff --git a/doc/source/conf.el b/doc/source/conf.el index 093bbd2..f9c500f 100644 --- a/doc/source/conf.el +++ b/doc/source/conf.el @@ -8,6 +8,7 @@ (require 'ein-mumamo) (require 'ein-ac) (require 'ein-connect) +(require 'ein-autoexec) ;; Load `wid-edit'. Otherwise the following error will be raised: ;; Symbol's function definition is void: widget-button-press diff --git a/doc/source/index.rst b/doc/source/index.rst index 41e9ece..281de86 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -220,6 +220,7 @@ The following keybinds are available in notebook buffers. .. el:function:: ein:notebook-delete-cell-command .. el:function:: ein:notebook-rename-to-scratch-command .. el:function:: ein:notebook-kill-all-buffers +.. el:function:: ein:autoexec-mode Connected buffer ^^^^^^^^^^^^^^^^ @@ -304,6 +305,7 @@ Notebook .. el:variable:: ein:cell-traceback-level .. el:variable:: ein:cell-max-num-outputs .. el:variable:: ein:scratch-notebook-name-template +.. el:variable:: ein:autoexec-delay Connect ^^^^^^^ @@ -474,6 +476,7 @@ v0.1.1 * Add :el:symbol:`ein:pytools-pandas-to-ses`. * Add Imenu support. * Better heading cell faces. +* Add :el:symbol:`ein:autoexec-mode` v0.1 diff --git a/lisp/ein-autoexec.el b/lisp/ein-autoexec.el index ce22e67..28a09a3 100644 --- a/lisp/ein-autoexec.el +++ b/lisp/ein-autoexec.el @@ -54,7 +54,9 @@ If the previous execution timer is not fired yet, cancel the timer." (ein:autoexec-execute-cell cell)))) (define-minor-mode ein:autoexec-mode - "Automatic cell execution minor mode." + "Automatic cell execution minor mode. +Code cell at point will be automatically executed after any +change in its input area." :lighter " ein:au" :group 'ein (if ein:autoexec-mode