From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Martin Stepanek Newsgroups: gmane.emacs.help Subject: Re: macOS keybindings (alt in emacs vs alt in macOS) Date: Wed, 19 Apr 2023 21:03:03 +0200 Message-ID: <5579ff44-c409-be47-2c39-aebd6d9c9b9a@lo-res.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18224"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 19 21:04:00 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ppD60-0004Sv-76 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 19 Apr 2023 21:04:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppD5U-00020x-UI; Wed, 19 Apr 2023 15:03:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppD5R-00020N-CB for help-gnu-emacs@gnu.org; Wed, 19 Apr 2023 15:03:25 -0400 Original-Received: from mate.lo-res.org ([195.39.201.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppD5K-0006Gc-Ah for help-gnu-emacs@gnu.org; Wed, 19 Apr 2023 15:03:20 -0400 Original-Received: by mate.lo-res.org (Postfix, from userid 65534) id 22CE840F24; Wed, 19 Apr 2023 21:03:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lo-res.org; s=2021; t=1681930986; bh=NgSQSl+F2Gwh0GOfSPXUX5ZB+htgKGFC9b5k/AHqa8I=; h=Date:Subject:To:References:From:In-Reply-To:From; b=MTCS8vjvbPyAwQ7OuaIvd9b87JZ5Y9vR+gdVs65TruDe1uWTDTVkiOuvUpWiBwTDd UEH0rrzgBhvJrGx36+4DJ5aeEAEI4VAPepqEc7LFAlGVJPYCxN6BCkYmGAIBbLmcr3 vdXC87Juf4l0umnQWY9uGzmtzd1+XDdT8RSFE1sTIF0GBVG8EJzYP8fikvu0dXhs6I UQdCldf4spK4ndBXkMo5VFvRgG2NmvL77ruFdrir3MOgqV3wxebAm0eWrSQg2Xr8B8 4rpyQJYjAemSVeWqAqCeboMNZvpsB5ew24U0C20F2DtGSyP4blO8Osng3Sg/Ow3TWb FN9ArewUSCTYQ== Original-Received: from [IPV6:2a02:8388:8000:1a80:f863:86f0:5f42:1465] (2a02-8388-8000-1a80-f863-86f0-5f42-1465.cable.dynamic.v6.surfer.at [IPv6:2a02:8388:8000:1a80:f863:86f0:5f42:1465]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (No client certificate requested) by mate.lo-res.org (Postfix) with ESMTPSA id DFBDD403D9 for ; Wed, 19 Apr 2023 21:03:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lo-res.org; s=2021; t=1681930983; bh=NgSQSl+F2Gwh0GOfSPXUX5ZB+htgKGFC9b5k/AHqa8I=; h=Date:Subject:To:References:From:In-Reply-To:From; b=QvEVgSdvv1c6jpGe+hDpmTFjtJinadLmFHHODJIFvOkm/gQHM/782qGBpKj1LzrlG ST9crIRoIDuGOFDBUkE4Fa/W3jPzBdCeNikc4lGDWNjzg80fWM1sdPblK0P3jcRZTH FPAji4DOzIfrW0Y/ryposBZ87H7w7vh3UGvmgpzDfU0215nyxeQmGwlCRqnEVczhvJ HsjEiCh33RnJf7sG2UdBKoOySwRxUXdeuoMGrrDJZJxtS0Q6kgmCMhoPSJ+4Muytgr SkySL1c1VvjDTmA3LWuQ4ATGsvygmqV/XT5TSoP1aD+o1TeRpqmGSWs774Sh4hsinj mHjCZCtnpL9MQ== In-Reply-To: Received-SPF: pass client-ip=195.39.201.131; envelope-from=martin@lo-res.org; helo=mate.lo-res.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-2.597, RCVD_IN_DNSWL_LOW=-0.7, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143312 Archived-At: 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-/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" 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- and A- (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. >