I’ve been using Emacs for a few months. I’m very excited in its great capability of being extensible and customizable. I decided to invest time on it and spend a few good whole weekends just to learn and to get familiar with the VIM’s key binding via Viper mode. Another interesting point is that I can use it to learn and practice my Scheme’s skill by configuring .emacs file using elisp.
However I’m still having the feeling that I’m missing something to really get me excited and inspire me to write/view code. I happened to come across Sublime Text 2. And all I can say is: this is a truly awesome text editor. I configure it successfully to make it run portably across my home Linux machine and Windows (at work). Its plugins can be written in Python – which is a great point – since after Scheme, Python is the next language that I want to learn.
Being fascinated by Sublime, putting my fingers on keyboard is one of the most enjoyable moments of my day. I don’t think I will ever go back to Emacs (unless there is serious thing happens to Sublime – this is a real threat since Sublime is not an open source project). I’ve been using Sublime for 1 week and will definitely consider to buy it to support the developer. There are numerous plugins available via Package Control that you should take a look here http://wbond.net/sublime_packages/community
I’ve found a plugin named SublimeREPL to run Scheme interpreter inside Sublime. As you can see in the below picture, my Scheme script ran nicely inside Sublime:
But there is a small problem in the REPL screen, some control commands are not working (such as Ctrl+c to interrupt , ..). To make up for this, SublimeREPL provides a context menu when you right click on the screen:
By choosing Send other SIGNAL , a popup will appear and you can choose to send various control commands to REPL, for example: SIGINT, …
So it would be nice to have a shortcut key to bring up the above pop-up. As I’m not familiar with Python and json, I don’t know why my key binding in Package Settings -> SublimeREPL -> Settings – User is not working. So what I do is to modify directly on the file Default (Linux).sublime-keymap:
{ “keys”: ["ctrl+l"], “command”: “subprocess_repl_send_signal”,
“context”:
[
{ "key": "setting.repl", "operator": "equal", "operand": true }
]
},
Done, I just need to press Ctrl + l to bring up the pop-up thing
If you have any suggestion on using Sublime effectively, feel free to comment
How to configure the MIT-Scheme path?
I’d appended the “C:\Program Files\MIT-GNU Scheme\bin;” to my windows 7′s path, but when I start the Scheme REPL in sublimeText2, it shows this error:
—————————
Sublime Text 2
—————————
WindowsError(2, ‘\xcf\xb5\xcd\xb3\xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xce\xc4\xbc\xfe\xa1\xa3′)
—————————
Hi ptester, I’m not using MIT-Scheme with Sublime Text 2 under Windows so I’m not sure how to configure either. Perhaps you can take a look at Racket
I’m using Racket under windows, but I don’t know how to combine Racket with Sublime:(
What syntax highlighting are you using for Scheme?
Hi Cornelius, I’m using Sublime Text 2 and it auto highlight my Scheme code
For successfull usage of scheme REPL do this:
0. Install Package Control if not yet
1. For RACKET ( !) In file
“C:\Users\alex\AppData\Roaming\Sublime Text 2\Packages\SublimeREPL\config\Scheme\Main.sublime-menu”
replace “windows”: ["scheme"]}, with “windows”: ["racket"]},
And your
” WindowsError(2, ‘\xcf\xb5\xcd\xb3\xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xce\xc4\xbc\xfe\xa1\xa3′) ”
will vanish
2. Then you should download sublime-scheme-syntax and paste it into C:\Users\alex\AppData\Roaming\Sublime Text 2\Packages\sublime-scheme-syntax
otherwise you’ll have an error “blah-blah can’t find sublime-scheme-syntax color scheme” , generated buy REPL plugin