summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-05-19 16:15:26 (GMT)
committerBarry Warsaw <barry@python.org>1998-05-19 16:15:26 (GMT)
commit1d0364b2dc5a606a31053abf44fe3f901efb7baa (patch)
treee3f289a07a0a4a375a4b64fdd346449cc9f4af6d
parent751f4931d8e53c510b3c3a793fcd64eda1c13908 (diff)
downloadcpython-1d0364b2dc5a606a31053abf44fe3f901efb7baa.zip
cpython-1d0364b2dc5a606a31053abf44fe3f901efb7baa.tar.gz
cpython-1d0364b2dc5a606a31053abf44fe3f901efb7baa.tar.bz2
(py-execute-string): Bind to C-c C-s, and put on menu
-rw-r--r--Misc/python-mode.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 39d1f1b..e4d3dd0 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -593,6 +593,7 @@ Currently-active file is at the head of the list.")
;; subprocess commands
(define-key py-mode-map "\C-c\C-c" 'py-execute-buffer)
(define-key py-mode-map "\C-c\C-m" 'py-execute-import-or-reload)
+ (define-key py-mode-map "\C-c\C-s" 'py-execute-string)
(define-key py-mode-map "\C-c|" 'py-execute-region)
(define-key py-mode-map "\e\C-x" 'py-execute-def-or-class)
(define-key py-mode-map "\C-c!" 'py-shell)
@@ -729,6 +730,7 @@ package. Note that the latest X/Emacs releases contain this package.")
["Execute buffer" py-execute-buffer t]
["Execute region" py-execute-region (mark)]
["Execute def or class" py-execute-def-or-class (mark)]
+ ["Execute string" py-execute-string t]
["Start interpreter..." py-shell t]
"-"
["Go to start of block" py-goto-block-up t]