[OS X Emacs] Mac french keyboard
Christian Lynbech
christian at defun.dk
Wed Aug 7 11:34:02 EDT 2024
I assume that the problem is that you are using the Option key (in Mac parlance) as Meta key and thus pressing Maj-Option-/ invokes some command. This is at least the default on my machine, and pretty common.
One option is to rebind what the Option and Command key means to Emacs. If you add this to .emacs:
(setq mac-command-modifier 'meta
mac-option-modifier ‘alt)
you get the Command key to act as Meta and the Option key to act as Alt. Normally, no commands are bout to Alt so either you will get the default keyboard binding or you can at least rebind the desired combinations to insert the expected characters (I do not remember if Emacs grabs all keys or not). This I have done myself, both because I like my meta key to always be the key next to the spacebar and because on Linux, where Alt normally is Meta, one often gets in conflict with the window manager also wanting to use the Alt key.
Alternatively, you can rebind the keys as they by default appear to Emacs, but this may be an issue if you like those commands and can also be a bit of a chase because different modes may bind the same sequence to different things and you will need to fix all of the modes you use.
A third option is to rebind you keyboard to have the problematic characters on different combinations, but that will of course only work as long as you have you own specialised layout available. I have done so myself (not for conflict reasons but because there are certain keys I like to have easy access to) and have used the Ukulele application for that.
https://software.sil.org/ukelele/
/Christian
> Den 7. aug. 2024 kl. 16.33 skrev Guilhem Bourrié <ghpbou at orange.fr>:
>
> Hello,
>
> I use a french Mac key board.
> I downloaded Emacs 29,4 x86_64-darwin18.7.0.
>
> How can I obtain the backslash \ and {, } ?
>
> The combination of keys Maj-Alt-/ conflicts in Emacs.
>
> The command ‘(emulate-mac-french-keyboard-mode t) in .emacs file does not solve the issue.
>
> This is solved in Aquamacs by the option Meta & French.
> But I would like to use Emacs too.
>
> Best regards,
>
>
>
>
> Guilhem Bourrié
> ghpbou at orange.fr <mailto:ghpbou at orange.fr>
>
>
>
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20240807/b5927cac/attachment.htm>
More information about the MacOSX-Emacs
mailing list