Pauls-key-bindings-for-coot: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 56: Line 56:
                         (set-draw-ncs-ghosts keyboard-ghosts-mol 1)
                         (set-draw-ncs-ghosts keyboard-ghosts-mol 1)
                         (set-draw-ncs-ghosts keyboard-ghosts-mol 0)))))
                         (set-draw-ncs-ghosts keyboard-ghosts-mol 0)))))
(add-key-binding "Hydrogens off" "("  
 
(add-key-binding "Hydrogens off" "["
                 (lambda ()
                 (lambda ()
                   (set-draw-hydrogens 0 0)))
                  (let ((imol
(add-key-binding "Hydrogens on" ")"  
                          (let ((active-atom (active-residue)))
                            (if active-atom
                                (car active-atom)
                                0))))
                   (set-draw-hydrogens imol 0))))
(add-key-binding "Hydrogens on" "]"
                 (lambda ()
                 (lambda ()
                   (set-draw-hydrogens 0 1)))
                  (let ((imol
                          (let ((active-atom (active-residue)))
                            (if active-atom
                                (car active-atom)
                                0))))
                   (set-draw-hydrogens imol 1))))
 
 


(add-key-binding "Rotamer name in Status Bar" "~"  
(add-key-binding "Rotamer name in Status Bar" "~"  
37

edits