Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add emacs keyMap mode as default.

  • Loading branch information...
commit b5a09444a8e6963d6fbde9db168d0c37e6949cc3 1 parent 7c86808
@fperez authored
View
1  IPython/frontend/html/notebook/static/js/codecell.js
@@ -38,6 +38,7 @@ var IPython = (function (IPython) {
indentUnit : 4,
mode: 'python',
theme: 'ipython',
+ keyMap: 'emacs',
readOnly: this.read_only,
onKeyEvent: $.proxy(this.handle_codemirror_keyevent,this)
});
View
1  IPython/frontend/html/notebook/static/js/textcell.js
@@ -32,6 +32,7 @@ var IPython = (function (IPython) {
indentUnit : 4,
mode: this.code_mirror_mode,
theme: 'default',
+ keyMap: 'emacs',
value: this.placeholder,
readOnly: this.read_only,
onKeyEvent: $.proxy(this.handle_codemirror_keyevent,this)
View
2  IPython/frontend/html/notebook/templates/notebook.html
@@ -162,6 +162,8 @@
<script src="/static/codemirror/mode/css/css.js" charset="utf-8"></script>
<script src="/static/codemirror/mode/rst/rst.js" charset="utf-8"></script>
<script src="/static/codemirror/mode/markdown/markdown.js" charset="utf-8"></script>
+<script src="/static/codemirror/keymap/emacs.js" charset="utf-8"></script>
+<script src="/static/codemirror/keymap/vim.js" charset="utf-8"></script>
<script src="/static/pagedown/Markdown.Converter.js" charset="utf-8"></script>
Please sign in to comment.
Something went wrong with that request. Please try again.