help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: macOS keybindings (alt in emacs vs alt in macOS)


From: Martin Stepanek
Subject: Re: macOS keybindings (alt in emacs vs alt in macOS)
Date: Wed, 19 Apr 2023 21:03:03 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

hello,

this is what i-m using:

(setq mac-option-modifier 'none) ;; use the left option-key for typing |, ­~, etc. (setq mac-right-option-modifier 'meta) ;; right option-key is meta, option-<left>/right moves one word left or right (setq mac-command-modifier 'meta) ;; so there is also a meta-key for the left hand (left cmd-key) (setq mac-right-command-modifier 'super) ;; the usual macos-cmd-keybindings work with the right cmd-key.

Am 19.04.23 um 14:59 schrieb Daniel Martín:
"l@tlo" <lists@traduction-libre.org> writes:

I'm trying to set cursor/point navigation in emacs is a way that's similar to 
the standard macOS settings.

I'm stuck at using alt/option + left-right as "left-word" / "right-word".

I have (ns-alternate-modifier 'none), because I need access to access
special non ascii characters, but that means that alt/option is then
ignored by Emacs, when I need A-<right> and A-<left> (and a few
others) for my setting.

Is there a way to have Emacs accept Alt as a modifier key in some defined 
contexts only and ignore it otherwise?
Could you set ns-right-alternate-modifier to 'none?  That'd free the
right Option key to enter non-ASCII characters, while you could use the
left one to navigate by words.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]