coot  

Re: [COOT] key binding to delete waters

Paul Emsley
Fri, 29 Jan 2010 05:34:31 -0800

david lawson (JIC) wrote:

Dear All,

I would like to set up a key binding to delete the water molecule I’m centred on, but I can’t get the guile syntax right. Can anybody help?


A good question for bioklatch, http://www.bioklatch.com/ IMHO. I'll answer it there too, if someone asks it.

(add-key-binding "Delete this water" "D" (lambda () (apply delete-atom (active-residue))))

(Perhaps it should be in the Wiki too).

Paul.