Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to copy/yank a whole a form in Slime/Emacs? For instance, if I have the following function:

(myfunc (lst)
    (myotherfunc lst))

I'd like to yank/copy:

(myotherfunc lst)

by issuing a keyboard shortcut when my cursor is at the opening or closing parenthesis for that form (at the point where Slime/Emacs does parenthesis matching).

share|improve this question
I would suggest trying on too – George Profenza Jan 11 '11 at 12:12
Yes, thought I'd try here first as it is technically a superuser question...but looks like I'll have to cross-post it. – Joel Jan 11 '11 at 12:46

Investigate kill-sexp, mark-sexp which are on C-M-k and C-M-SPC respectively.

share|improve this answer

I think you can try expand-region which allows you to mark a region smartly.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .