<div><div>on this issue, basically one can't have a solution that satisfy all.</div><div>There is the cmd key and opt key.</div><div>Some likes to use cmd by mac convention like copy, paste, open, save etc. Others like to use it for meta. Some like to use Opt by mac convention of inserting foreign chars, others like that for meta. Basically, there are these functionalities: mac convention of shortcut, input foreign chars, emacs meta. While, there are only 2 mod keys: the cmd and opt. So, unless you bring in Cntrl, or start combining mod keys (e.g. Cmd+Opt+key), or start doing key sequences (e.g. Cmd+key followed by Opt+key)... but again there are more bewildering personal preferences.</div>
<div><br></div><div>btw, if you need to use foreign chars a lot, and you are using emacs, you don't really need to use OS X's Opt way, because you can easily customize emacs to have any shortcut you want to type any unicode char. In a sense, map your keyboard into a foreign char layout, of only chars that interest to you.</div>
<div><br></div><div>For example, for me, my Cmd is Meta, my opt is for typing matching pairs and also much unicode math chars.</div><div><br></div><div>Here's some doc might be of help:</div><div><br></div><div>• How to Define Keyboard Shortcuts in Emacs</div>
<div>  <a href="http://xahlee.org/emacs/keyboard_shortcuts.html">http://xahlee.org/emacs/keyboard_shortcuts.html</a></div><div><br></div><div>note the bottom, where you can set the Opt to Hyper. Then, you can just use emacs to map arbitrary hype+key combo to arbitrary unicode chars.</div>
<div><br></div><div>Also, if the preset foreign chars thru Opt in OS X is not what you liked, you can also customize it, without anything to do with emacs. For example, i often need to type α, β, λ, →, ⇒ etc, which isn't available under OS X's Opt scheme.</div>
<div><br></div><div>• How To Create Your Own Keybinding In Mac Os X</div><div>  <a href="http://xahlee.org/emacs/osx_keybinding.html">http://xahlee.org/emacs/osx_keybinding.html</a></div><div><br></div><div>  Xah</div><div>
∑ <a href="http://xahlee.org/">http://xahlee.org/</a></div><div class="gmail_quote">On Wed, Apr 1, 2009 at 8:45 AM, Carsten Bormann <span dir="ltr"><<a href="mailto:cabo@tzi.org">cabo@tzi.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Apr 1, 2009, at 17:02, Jean-Christophe Helary wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In classic Mac software there are "dead keys" for that.<br>
<br>
OPTION n  --  appears to do nothing<br>
<br>
but the next key you press, probably another n will acquire an accent<br>
mark above it as in canon -> cañon which might not survive this email.<br>
<br>
OPTION e and some others are available.<br>
</blockquote>
<br>
<a href="http://mac4translators.blogspot.com/search/label/accented%20letters" target="_blank">http://mac4translators.blogspot.com/search/label/accented%20letters</a><br>
</blockquote>
<br></div>
The problem is that Aquamacs hijacks the option key and uses it for meta.<br>
For those of us who regularly use the non-ASCII characters, that is a problem.<br>
It is easy to fix:<br>
<br>
        (setq mac-option-modifier nil)<br>
<br>
Now, of course, you need a different key to use as meta key.<br>
<br>
The obvious choice is the command key:<br>
<br>
        (setq mac-command-modifier 'meta)<br>
<br>
But then none of the nice Mac-Emulation key combinations (CMD-C for copy etc.) work.<br>
<br>
Clumsy workaround for laptop users:<br>
<br>
    (setq mac-function-modifier 'alt) ;;; can't use this with Leopard and CarbonEmacs<br>
<br>
This gives the fn key the same meaning normally occupied by the CMD key, so now you can fn-C for copy etc.<br>
<br>
Do I like any of this?  No.<br>
But I haven't found a better way to run Emacs on a Mac.<br>
<br>
Gruesse, Carsten<div><div></div><div class="h5"><br>
<br>
_____________________________________________________________<br>
MacOSX-Emacs mailing list<br>
<a href="mailto:MacOSX-Emacs@email.esm.psu.edu" target="_blank">MacOSX-Emacs@email.esm.psu.edu</a><br>
<a href="http://email.esm.psu.edu/mailman/listinfo/macosx-emacs" target="_blank">http://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br>
List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" target="_blank">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Xah<br>∑ <a href="http://xahlee.org/">http://xahlee.org/</a><br>
</div>