Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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

2 Answers 2

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

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.