Keeping a REPL (or a console) always by your side is never a bad habit, and if
you use an IDE-package (like Robe for Ruby, or Cider for Clojure) it’s nigh
unavoidable. Being an essential part of your environment, it would be ridiculous
not to invest some time optimizing it.
One obvious optimization is to bind a key to your “start console” command, but
that’s just the start. You pretty much never need two running consoles for the
same project, so why not have the same key switch to it if it’s already running?
But we can go a bit farther with very little work. I have a file where I define
a lot of small helper methods for my Ruby console, so let’s require it
automatically whenever a new console is started.
If you use Projectile and want to go even faster, check out the j key
on my post about Projectile.
Turbo up your Ruby console in Emacs
02 Oct 2017, by Artur Malabarba.Keeping a REPL (or a console) always by your side is never a bad habit, and if you use an IDE-package (like Robe for Ruby, or Cider for Clojure) it’s nigh unavoidable. Being an essential part of your environment, it would be ridiculous not to invest some time optimizing it.
One obvious optimization is to bind a key to your “start console” command, but that’s just the start. You pretty much never need two running consoles for the same project, so why not have the same key switch to it if it’s already running?
But we can go a bit farther with very little work. I have a file where I define a lot of small helper methods for my Ruby console, so let’s require it automatically whenever a new console is started.
If you use Projectile and want to go even faster, check out the j key on my post about Projectile.
Tags: console, ruby, programming, init.el, emacs,
Mold Slack entirely to your liking with Emacs »
« It’s Magit! And you’re the magician!
Related Posts
A few paredit keys that take over the world in programming
Restarting the compilation buffer in comint-mode in programming
Provide input to the compilation buffer in programming
Content © 2019, All rights reserved. Icons under CC3.0.