<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Stefan,<div><br></div><div>since you are on a Mac, you might want to consider AutoPairs by James W. Walker, available from <a href="http://www.jwwalker.com/pages/autopairs.html">www.jwwalker.com/pages/autopairs.html</a>. It sits in your preferences and provides customisable pairs such as brackets, braces and quotes. It works nicely with Aquamacs.</div><div><br></div><div>This is no real Aquamacs solution, of course, sorry for that, but maybe you will still find it helpful. Otherwise, Thomas has pointed out where to look.</div><div><br></div><div>Best,</div><div>Christian</div><div><br></div><div><br><div><div>Am 12.03.2009 um 14:42 schrieb Stefan Strohmeier:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div> <!-- Converted from text/plain format --><p><font size="2">Dear all,<br> <br> I inserted the above code into preferences.el in order<br> to autoclose brackets and quotes. Since I use a Mac<br> German keyboard layout I cannot insert [] and {} in<br> this manner. When I switch the keyboard layout to<br> standard Mac characters I can insert all pairs in the<br> desired manner.<br> <br> Is there a way to modify the keybindings without having<br> to switch to another keyboard layout? I would like to<br> use OPTION-8 for {} and OPTION-5 for [] in all modes.<br> <br> How can this be done?<br> <br> I am using Mac OS X 10.4.11 and Aquamacs 1.7.<br> <br> regards,<br> Stefan<br> <br> ;; ======= Auto Complete ========<br> ;; enable skeleton-pair insert globally<br> (setq skeleton-pair t)<br> ;;(setq skeleton-pair-on-word t)<br> (global-set-key "("  'skeleton-pair-insert-maybe)<br> (global-set-key "["  'skeleton-pair-insert-maybe)<br> (global-set-key "{"  'skeleton-pair-insert-maybe)<br> (global-set-key "\"" 'skeleton-pair-insert-maybe)<br> (global-set-key "'"  'skeleton-pair-insert-maybe)<br> <br> </font> </p> </div> <span><ATT73615.txt></span></blockquote></div><br></div></body></html>