[OS X Emacs] Re: How to enter accented characters on US keyboard?

Gilberto gilberto.c at laposte.net
Fri Apr 3 16:54:30 EDT 2009


Your  tutorials are wonderful, Xah Lee.

Thanks to you, my Aquamacs Emacs emulate-mac-spanish-keyboard-mode
will have a closing bracket and I won't need to toggle between English  
and Spanish keyboard layouts all the time (risking to forget toggling  
back) to finish writing my dissertation in LaTeX!!!'

Gilberto Conde

On 02/04/2009, at 12:00 p.m., <macosx-emacs-request at email.esm.psu.edu>  
<macosx-emacs-request at email.esm.psu.edu> wrote:

>
> Send MacOSX-Emacs mailing list submissions to
> 	macosx-emacs at email.esm.psu.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> or, via email, send a message with subject or body 'help' to
> 	macosx-emacs-request at email.esm.psu.edu
>
> You can reach the person managing the list at
> 	macosx-emacs-owner at email.esm.psu.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of MacOSX-Emacs digest..."
>
>
> Today's Topics:
>
>   1. Re: How to enter accented characters on US keyboard? (xah lee)
>   2. Re: How to enter accented characters on US keyboard?
>      (skip at pobox.com)
>   3. Re: How to enter accented characters on US keyboard?
>      (skip at pobox.com)
>   4. Re: How to enter accented characters on US keyboard?
>      (Jochen Küpper)
>   5. Re: How to enter accented characters on US keyboard?
>      (skip at pobox.com)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 1 Apr 2009 11:15:18 -0700
> From: xah lee <xahlee at gmail.com>
> Subject: Re: [OS X Emacs] How to enter accented characters on US
> 	keyboard?
> To: Emacs on Mac OS X Mailing List <macosx-emacs at email.esm.psu.edu>
> Message-ID:
> 	<aa6b5cbe0904011115t2459909ap51a8f0c103ed5af at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> on this issue, basically one can't have a solution that satisfy all.
> There is the cmd key and opt key.
> 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.
>
> 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.
>
> For example, for me, my Cmd is Meta, my opt is for typing matching  
> pairs and
> also much unicode math chars.
>
> Here's some doc might be of help:
>
> • How to Define Keyboard Shortcuts in Emacs
>  http://xahlee.org/emacs/keyboard_shortcuts.html
>
> 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.
>
> 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.
>
> • How To Create Your Own Keybinding In Mac Os X
>  http://xahlee.org/emacs/osx_keybinding.html
>
>  Xah
> ∑ http://xahlee.org/
> On Wed, Apr 1, 2009 at 8:45 AM, Carsten Bormann <cabo at tzi.org> wrote:
>
>> On Apr 1, 2009, at 17:02, Jean-Christophe Helary wrote:
>>
>> In classic Mac software there are "dead keys" for that.
>>>>
>>>> OPTION n  --  appears to do nothing
>>>>
>>>> but the next key you press, probably another n will acquire an  
>>>> accent
>>>> mark above it as in canon -> cañon which might not survive this  
>>>> email.
>>>>
>>>> OPTION e and some others are available.
>>>>
>>>
>>> http://mac4translators.blogspot.com/search/label/accented%20letters
>>>
>>
>> The problem is that Aquamacs hijacks the option key and uses it for  
>> meta.
>> For those of us who regularly use the non-ASCII characters, that is a
>> problem.
>> It is easy to fix:
>>
>>       (setq mac-option-modifier nil)
>>
>> Now, of course, you need a different key to use as meta key.
>>
>> The obvious choice is the command key:
>>
>>       (setq mac-command-modifier 'meta)
>>
>> But then none of the nice Mac-Emulation key combinations (CMD-C for  
>> copy
>> etc.) work.
>>
>> Clumsy workaround for laptop users:
>>
>>   (setq mac-function-modifier 'alt) ;;; can't use this with Leopard  
>> and
>> CarbonEmacs
>>
>> This gives the fn key the same meaning normally occupied by the CMD  
>> key, so
>> now you can fn-C for copy etc.
>>
>> Do I like any of this?  No.
>> But I haven't found a better way to run Emacs on a Mac.
>>
>> Gruesse, Carsten
>>
>>
>> _____________________________________________________________
>> MacOSX-Emacs mailing list
>> MacOSX-Emacs at email.esm.psu.edu
>> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
>> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>>
>
>
>
> -- 
> Xah
> ∑ http://xahlee.org/
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20090401/ebd17b7e/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Wed, 1 Apr 2009 16:18:32 -0500
> From: skip at pobox.com
> Subject: Re: [OS X Emacs] How to enter accented characters on US
> 	keyboard?
> To: Emacs on Mac OS X Mailing List <macosx-emacs at email.esm.psu.edu>
> Message-ID: <18899.55848.2010.736022 at montanaro.dyndns.org>
> Content-Type: text/plain; charset=us-ascii
>
>
>    Jean-Christophe> There is an option to use the Option key as the  
> Mac
>    Jean-Christophe> option key and Esc as the Meta key.
>
>    Jean-Christophe> Then you can do all you want with the accented
>    Jean-Christophe> characters.
>
> Thanks.  That worked fine for the simple case I had.
>
> Skip
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 1 Apr 2009 16:19:37 -0500
> From: skip at pobox.com
> Subject: Re: [OS X Emacs] How to enter accented characters on US
> 	keyboard?
> To: Emacs on Mac OS X Mailing List <macosx-emacs at email.esm.psu.edu>
> Message-ID: <18899.55913.393846.516945 at montanaro.dyndns.org>
> Content-Type: text/plain; charset=us-ascii
>
>
>>> Esc as the Meta key
>
>    Carsten> But typing Escape in front of key combinations is just a  
> really
>    Carsten> bad workaround for not having a meta key, not a real  
> meta key.
>    Carsten> Not acceptable for serious Emacs users...
>
> You must be too young to have used Emacs before the advent of window  
> systems
> then. ;-)
>
> -- 
> Skip Montanaro - skip at pobox.com - http://www.smontanaro.net/
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 2 Apr 2009 10:05:56 +0200
> From: Jochen Küpper <kuepper.jochen at googlemail.com>
> Subject: Re: [OS X Emacs] How to enter accented characters on US
> 	keyboard?
> To: Emacs on Mac OS X Mailing List <macosx-emacs at email.esm.psu.edu>
> Message-ID: <E95CE8F0-087C-4B5E-83F0-54F8726388CE at googlemail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
>
> On 01.04.2009, at 23:19, <skip at pobox.com> <skip at pobox.com> wrote:
>
>>>> Esc as the Meta key
>>
>>   Carsten> But typing Escape in front of key combinations is just a
>> really
>>   Carsten> bad workaround for not having a meta key, not a real
>> meta key.
>>   Carsten> Not acceptable for serious Emacs users...
>>
>> You must be too young to have used Emacs before the advent of window
>> systems
>> then. ;-)
>
>
> Why's that? On pure ttys Meta is often simply available to the one
> application running, so there's no problem at all in that respect...
>
> Greetings,
> Jochen
> -- 
> Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
>     Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
>         Sex, drugs and rock-n-roll
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 2 Apr 2009 06:44:05 -0500
> From: skip at pobox.com
> Subject: Re: [OS X Emacs] How to enter accented characters on US
> 	keyboard?
> To: Emacs on Mac OS X Mailing List <macosx-emacs at email.esm.psu.edu>
> Message-ID: <18900.42245.298178.450039 at montanaro.dyndns.org>
> Content-Type: text/plain; charset=us-ascii
>
>
>>> You must be too young to have used Emacs before the advent of window
>>> systems then. ;-)
>
>    Jochen> Why's that? On pure ttys Meta is often simply available  
> to the
>    Jochen> one application running, so there's no problem at all in  
> that
>    Jochen> respect...
>
> I seem to recall either some terminals without meta keys or some  
> dialect of
> Emacs (maybe Gosling Emacs) which didn't support it.  In either  
> case, it was
> required to use ESC as a prefix.
>
> -- 
> Skip Montanaro - skip at pobox.com - http://www.smontanaro.net/
>
>
> ------------------------------
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>
> End of MacOSX-Emacs Digest, Vol 18, Issue 2
> *******************************************
>





More information about the MacOSX-Emacs mailing list