<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm sorry. I didn't talk about re-mapping the keyboard but to add a command to execute a action, in this case one of my own functions... <div>i found a add-menu-item in the coca ide folder (i think?) but I dont know really how this works and I have not been able to add an action to the command...</div><div><br></div><div>Thank You</div><div><br></div><div>SIncerely</div><div><br></div><div>Joakim</div><div><br><div><div>Le 13 avr. 09 à 18:22, Raffael Cavallaro a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On Apr 12, 2009, at 4:49 PM, Joakim Sandgren wrote:<br><br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite">How hard is it to assign a command (mac leopard ide 1.3) for a <br></blockquote><blockquote type="cite">function ?<br></blockquote><blockquote type="cite">in old mcl I added key commands in the menus to do things...<br></blockquote><br>It's not very hard. I have this in my init (which I have to load <br>manually of course, but that's another IDE enhancement request…)<br><br>(in-package :hemlock)<br><br>(bind-key "Forward Word" #k"meta-rightarrow")<br>(bind-key "Select Forward Word" #k"meta-shift-rightarrow")<br>(bind-key "Forward Form" #k"control-meta-rightarrow")<br>(bind-key "Select Forward Form" #k"control-meta-shift-rightarrow")<br><br>(bind-key "Backward Word" #k"meta-leftarrow")<br>(bind-key "Select Backward Word" #k"meta-shift-leftarrow")<br>(bind-key "Backward Form" #k"control-meta-leftarrow")<br>(bind-key "Select Backward Form" #k"control-meta-shift-leftarrow")<br><br>You can see ccl/cocoa-ide/hemlock/src/binding.lisp for the standard <br>bindings and how to modify them.<br><br>For thinks appearing in menus you can use the keyboard shortcuts tab <br>of apple's keyboard and mouse preference pane.<br><br>warmest regards,<br><br>Ralph<br><br>Raffael Cavallaro, Ph.D.<br><a href="mailto:raffaelcavallaro@mac.com">raffaelcavallaro@mac.com</a><br><br>_______________________________________________<br>Openmcl-devel mailing list<br>Openmcl-devel@clozure.com<br>http://clozure.com/mailman/listinfo/openmcl-devel<br><br></div></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div><font class="Apple-style-span" color="#595959" face="'Trebuchet MS'"><br class="Apple-interchange-newline"><br></font></div><div><font class="Apple-style-span" color="#595959" face="'Trebuchet MS'"><br></font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959">Joakim Sandgren</font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959">joakim sandgren musik</font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959">42, rue de Maubeuge</font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959">75009 Paris</font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959">France</font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959">+33 (0)1 45 26 43 90</font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959"><a href="mailto:info@joakimsandgren.com">info@joakimsandgren.com</a></font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959"><a href="http://www.joakimsandgren.com/">http://www.joakimsandgren.com</a></font></div></span> </div><br></div></body></html>