3 ms·
Try the Geiser plugin for Emacs. It allows you to connect to the Racket REPL (either it starts a new instance of Racket, or it can connect to a socket/port).
by laichzeit0 13y ago
Try the Geiser plugin for Emacs. It allows you to connect to the Racket REPL (either it starts a new instance of Racket, or it can connect to a socket/port).
I'm a Vim user and went through elaborate pains to get Emacs working almost like Vim just so I could go through SICP this way.
- vitalique 13y agoCould you please outline your final setup besides using Geiser? I also come from Vim-land, have almost zero experience with Emacs and already understood that, to learn SICP, setting up and learning Emacs is going to be easier than setting up Vim for the task.
- laichzeit0 13y agoWell, I'd suggest if you know nothing about Emacs to install Emacs Prelude: https://github.com/bbatsov/prelude https://github.com/bbatsov/prelude Next, enable the lisp/scheme modules in prelude-modules.el [1]. You need the Evil plugin to get Vim modal editing and probably Evil Leader (so you get Vim style <leader> commands). You can look at my config [2], there's nothing really funny except I map Ctrl-H to backspace and Ctrl-[ to ESC as that's what I also use in my Vim. There's also a slight modification to make Smartparens make parenthesis highlighting behave like in Vim. One other thing is if you're in insert mode then Emacs keystrokes should also work (Ctrl-Z to force switching between Vim/Emacs keystrokes). If you install the SICP plugin for Emacs (it's in my custom.el) and you type M-x info-display-manual sicp, or if you have Evil installed you can use use Vim's command :info-display-manual sicp, you'll get the SICP book as a manual inside Emacs. [1] https://github.com/humana/dotfiles/blob/master/emacs/prelude-modules.el https://github.com/humana/dotfiles/blob/master/emacs/prelude... [2] https://github.com/humana/dotfiles/blob/master/emacs/personal/custom.el https://github.com/humana/dotfiles/blob/master/emacs/persona...
- vitalique 13y agoWow, thank you very much for your suggestions and the .els! I guess now I'm really out of excuses not to start with SICP.