Commit 9cbee9df authored by Andrew Gibiansky's avatar Andrew Gibiansky

Minor updates with JS

parent a061e229
...@@ -22,7 +22,8 @@ define(['require', ...@@ -22,7 +22,8 @@ define(['require',
var downArrow = 40; var downArrow = 40;
IPython.keyboard.keycodes.down = downArrow; // space IPython.keyboard.keycodes.down = downArrow; // space
IPython.CodeCell.options_default['cm_config']['mode'] = 'haskell'; IPython.CodeCell.options_default['cm_config']['mode'] = 'ihaskell';
IPython.CodeCell.options_default['cm_config']['autoCloseBrackets'] = '()[]{}';
utils.requireCodeMirrorMode('haskell', function(){ utils.requireCodeMirrorMode('haskell', function(){
// Create a multiplexing mode that uses Haskell highlighting by default but // Create a multiplexing mode that uses Haskell highlighting by default but
...@@ -47,14 +48,12 @@ define(['require', ...@@ -47,14 +48,12 @@ define(['require',
// This is necessary, otherwise sometimes highlighting just doesn't happen. // This is necessary, otherwise sometimes highlighting just doesn't happen.
// This may be an IPython bug. // This may be an IPython bug.
c.code_mirror.setOption('mode', 'ihaskell'); c.code_mirror.setOption('mode', 'ihaskell');
c.code_mirror.setOption('autoCloseBrackets', '()[]{}');
c.force_highlight('ihaskell'); c.force_highlight('ihaskell');
} }
} }
}); });
if(IPython.notebook.set_codemirror_mode){ if(IPython.notebook.set_codemirror_mode){
// this first one will not be necessary in the future
// neither should the loop on all cells above
IPython.notebook.set_codemirror_mode('null')
IPython.notebook.set_codemirror_mode('ihaskell') IPython.notebook.set_codemirror_mode('ihaskell')
} }
......
...@@ -7,7 +7,7 @@ name: ihaskell ...@@ -7,7 +7,7 @@ name: ihaskell
-- PVP summary: +-+------- breaking API changes -- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions -- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change -- | | | +--- code changes with no API change
version: 0.6.5.0 version: 0.7.0.1
-- A short (one-line) description of the package. -- A short (one-line) description of the package.
synopsis: A Haskell backend kernel for the IPython project. synopsis: A Haskell backend kernel for the IPython project.
......
name: ipython-kernel name: ipython-kernel
version: 0.7 version: 0.7.0.0
synopsis: A library for creating kernels for IPython frontends synopsis: A library for creating kernels for IPython frontends
description: ipython-kernel is a library for communicating with frontends for the interactive IPython framework. It is used extensively in IHaskell, the interactive Haskell environment. description: ipython-kernel is a library for communicating with frontends for the interactive IPython framework. It is used extensively in IHaskell, the interactive Haskell environment.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment