unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Martin Stepanek <martin@lo-res.org>
To: help-gnu-emacs@gnu.org
Subject: Re: macOS keybindings (alt in emacs vs alt in macOS)
Date: Wed, 19 Apr 2023 21:03:03 +0200	[thread overview]
Message-ID: <5579ff44-c409-be47-2c39-aebd6d9c9b9a@lo-res.org> (raw)
In-Reply-To: <m1cz40f2ot.fsf@yahoo.es>

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.
>



      parent reply	other threads:[~2023-04-19 19:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-19  6:09 macOS keybindings (alt in emacs vs alt in macOS) l@tlo
2023-04-19 12:59 ` Daniel Martín
2023-04-19 15:10   ` l@tlo
2023-04-20  6:11     ` Eli Zaretskii
2023-04-19 19:03   ` Martin Stepanek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5579ff44-c409-be47-2c39-aebd6d9c9b9a@lo-res.org \
    --to=martin@lo-res.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).