Skip to content

Comment on Ask HN: Does anyone Lisp without Emacs?parent

Comments

C-x C-e
C-M-x

I use the first 2 keybindings you mention only with emacs lisp; the other 3 I had to look up.

I get a lot of milage from these:

  C-c C-c ;; slime-compile-defun
  C-c C-k ;; slime-compile-and-load-file
  C-c C-j ;; slime-eval-last-expression-in-repl
  C-c C-y ;; slime-call-defun
... with C-c C-c probably the one I use the most, and it's pretty easy on the hands.

Even the documentation is wrong. For C-c C-c

The name slime-compile-defun indicates that it compiles DEFUN forms.

It actually compiles AND executes top-level forms.

The name is misleading. The document omits the part about executing top level forms. It does mention compiling them, though:

"[...] Compile the current toplevel form.

With (positive) prefix argument the form is compiled with maximal debug settings (‘C-u’). With negative prefix argument it is compiled for speed (‘M--’). If a numeric argument is passed set debug or speed settings to it depending on its sign."

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.