[OS X Emacs] auto-close pairs/skeleton-pair and German keyboardlayout

Christian Liesen christian.liesen at hfh.ch
Thu Mar 12 19:19:29 EDT 2009


Hi Stefan,

since you are on a Mac, you might want to consider AutoPairs by James  
W. Walker, available from www.jwwalker.com/pages/autopairs.html. It  
sits in your preferences and provides customisable pairs such as  
brackets, braces and quotes. It works nicely with Aquamacs.

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.

Best,
Christian


Am 12.03.2009 um 14:42 schrieb Stefan Strohmeier:

> Dear all,
>
> I inserted the above code into preferences.el in order
> to autoclose brackets and quotes. Since I use a Mac
> German keyboard layout I cannot insert [] and {} in
> this manner. When I switch the keyboard layout to
> standard Mac characters I can insert all pairs in the
> desired manner.
>
> Is there a way to modify the keybindings without having
> to switch to another keyboard layout? I would like to
> use OPTION-8 for {} and OPTION-5 for [] in all modes.
>
> How can this be done?
>
> I am using Mac OS X 10.4.11 and Aquamacs 1.7.
>
> regards,
> Stefan
>
> ;; ======= Auto Complete ========
> ;; enable skeleton-pair insert globally
> (setq skeleton-pair t)
> ;;(setq skeleton-pair-on-word t)
> (global-set-key "("  'skeleton-pair-insert-maybe)
> (global-set-key "["  'skeleton-pair-insert-maybe)
> (global-set-key "{"  'skeleton-pair-insert-maybe)
> (global-set-key "\"" 'skeleton-pair-insert-maybe)
> (global-set-key "'"  'skeleton-pair-insert-maybe)
>
>
> <ATT73615.txt>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20090313/09b3baeb/attachment.html>


More information about the MacOSX-Emacs mailing list