emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/ergoemacs-mode 730306e 66/87: Merge pull request #495 f


From: Stefan Monnier
Subject: [elpa] externals/ergoemacs-mode 730306e 66/87: Merge pull request #495 from wlandry/mac_meta_alt_switch
Date: Wed, 14 Apr 2021 18:47:09 -0400 (EDT)

branch: externals/ergoemacs-mode
commit 730306e406b0f8ae07333f7a37ca8ac6bbab9db5
Merge: 2091646 4769abe
Author: Matthew Fidler <matthew.fidler@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #495 from wlandry/mac_meta_alt_switch
    
    Update Mac instructions to swap Command and Alt
---
 web.org | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/web.org b/web.org
index 6553a9d..a41664c 100644
--- a/web.org
+++ b/web.org
@@ -1853,14 +1853,26 @@ You have some options to get to copy and paste:
 #+END_SRC
 
 
-*** I want to modify my modifiers to work differently on a mac
-Ergoemacs-mode uses the option as an alt key because you can press it
-with a thumb.  If you want a different option, set:
+*** I want to use the Command key as Meta on a mac
+The default for Emacs on the mac maps the Alt key to Meta and
+Command to Super.  Because Ergoemacs-mode uses the Meta key so
+extensively, you may want to swap this mapping.  To swap them, set:
 
 #+BEGIN_SRC emacs-lisp
-(setq ergoemacs-use-mac-command-as-meta nil)
+(setq ns-command-modifier 'meta)
+(setq ns-alternate-modifier 'super)
 #+END_SRC
 
+Note that this can interfere with some global shortcuts.  For example,
+Ergoemacs-mode uses Meta-SPC to set the mark.  However, typing Command-SPC
+ordinarily brings up Spotlight.  To disable this and allow Ergoemacs
+to use this binding, go into
+
+```
+System Preferences -> Keyboard -> Shortcuts -> Spotlight
+```
+
+and disable that binding.
 * Tips
 ** Gradual Adoption
   :PROPERTIES:



reply via email to

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