[slime-devel] Switching between last two buffers

Nico de Jager ndj at bitart.cc
Wed Apr 13 06:56:56 UTC 2011

"Chris Kim" <chrisk414 at hotmail.com> writes:

> Hi, there.
> I would like to assign a hotkey to switch between the last two buffers to 
> compare the differences quickly.
> The closest thing I found is "slime-selector l"
> Is there way I can assign an hotkey to the command above?
> Thanks.

I have the following in my .emacs file to switch back and forth between
(any) two buffers with C-M-l:

(defun back-forth ()
  "Switch to previous buffer."
  (switch-to-buffer (other-buffer)))

(global-set-key "\C-\M-l" 'back-forth)


More information about the slime-devel mailing list