Doom-emacs: The right alt-key does not work as expected on swedish keyboard on macos

Created on 3 Jul 2020  路  1Comment  路  Source: hlissner/doom-emacs

What did you expect to happen?
When pressing right-alt and 2 the character "@" in expected to happen.

What actually happened?
The minibuffer shows "C-u 2-"

Additional details:
Vanilla doom emacs used.

Steps to reproduce:

  1. Press right alt and 2 and swedish keyboard on macos.

System information:


emacs   version    27.0.91
        features   IMAGEMAGICK DBUS NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS XIM MODULES THREADS JSON PDUMPER LCMS2 GMP
        build      Jul 01, 2020
        buildopts  (--prefix=/opt/local --with-mac --enable-mac-app=/Applications/MacPorts --with-modules --without-rsvg --with-gmp --with-harfbuzz --with-json --with-imagemagick 'CFLAGS=-pipe -Os -fobjc-arc -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64' 'CPPFLAGS=-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64')
        windowsys  mac
        daemonp    server-running
doom    version    2.0.9
        build      grafted, HEAD -> develop, origin/develop, origin/HEAD 46d6d0b 2020-06-29 15:12:30 -0400
        dir        ~/.doom.d/
system  type       darwin
        config     x86_64-apple-darwin19.5.0
        shell      /bin/zsh
        uname      Darwin 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64
        path       (~/.opam/default/bin ~/.emacs.d/bin ~/.opam/default/bin ~/bin ~/Library/Python/3.7/bin /opt/local/bin /opt/local/sbin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /opt/X11/bin /Applications/MacPorts/EmacsMac.app/Contents/MacOS/libexec/)
config  envfile    envvar-file
        elc-files  1
        modules    (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline ophints (popup +defaults) vc-gutter vi-tilde-fringe workspaces :editor file-templates fold snippets :emacs dired electric undo vc :checkers syntax spell grammar :tools (eval +overlay) lookup lsp macos magit make pdf :lang elm emacs-lisp fstar idris json javascript latex lean lua markdown nim ocaml org python rst sh :config (default +bindings +smartparens))
        packages   (n/a)
        unpin      (n/a)
        elpa       (n/a)

bug

Most helpful comment

Setting these variables seems to fix the problem:

(setq mac-option-modifier nil
      mac-command-modifier 'meta)

>All comments

Setting these variables seems to fix the problem:

(setq mac-option-modifier nil
      mac-command-modifier 'meta)

Was this page helpful?
0 / 5 - 0 ratings