Doom-emacs: [BUG] Beim Eingeben von 'jk' wurde der Einfügemodus verlassen.

Erstellt am 24. Okt. 2019  ·  3Kommentare  ·  Quelle: hlissner/doom-emacs

Beschreibe das Problem
Wenn ich im Einfügemodus schnell tippe, werde ich aus dem Einfügemodus geworfen, wenn ich schnell die Zeichen 'jk' eingebe.

Schritte zur Reproduktion bei einer Neuinstallation:

  • Scratch Buffer öffnen (SPC x)
  • Gehe in den Einfügemodus (i)
  • Geben Sie schnell 'Dies ist ein Test jk haha' ein

    • Erwartetes Verhalten: "Dies ist ein Test jk haha" wird eingefügt.

    • Tatsächliches Verhalten: "Dies ist ein Test" wird eingefügt und ich werde aus dem Einfügemodus geworfen.

System Information

emacs   version    26.1
        features   XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2
        build      Apr 11, 2019
        buildopts  (--build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-cQxEw2/emacs-26.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro')
        windowsys  x
        daemonp    server-running
doom    version    2.0.9
        build      HEAD -> develop, origin/develop, origin/HEAD 0ccf31635 2019-10-22 01:58:17 -0400
system  type       gnu/linux
        config     x86_64-pc-linux-gnu
        shell      /bin/zsh
        uname      Linux 5.0.0-32-generic #34-Ubuntu SMP Wed Oct 2 02:06:48 UTC 2019 x86_64
        path       (~/.pyenv/shims/ ~/.pyenv/bin/ ~/.pyenv/shims/ ~/.pyenv/bin/ ~/.cargo/bin/ /usr/local/bin/ /usr/local/sbin/ ~/.cargo/bin/ ~/.local/bin/ /usr/sbin/ /usr/bin/ /sbin/ /bin/ /usr/games/ /usr/local/games/ /snap/bin/ ~/.dotnet/tools/ ~/Scripts/ ~/go/bin/ ~/.yarn/bin/ ~/bin/ ~/.local/bin/ ~/go/bin/ ~/Scripts/ ~/go/bin/ ~/.yarn/bin/ ~/bin/ ~/.local/bin/ ~/go/bin/ /usr/lib/emacs/26.1/x86_64-linux-gnu/)
config  envfile    envvar-file
        elc-files  0
        modules    (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +all +defaults) vc-gutter vi-tilde-fringe window-select workspaces :editor (evil +everywhere) file-templates fold multiple-cursors rotate-text snippets :emacs dired electric ibuffer vc :tools eval flycheck (lookup +docsets) magit :lang data emacs-lisp markdown (org +dragndrop +ipython +pandoc +present) sh :config (default +bindings +smartparens))
        packages   (n/a)
        elpa       (n/a)

question elisp resolved

Hilfreichster Kommentar

Besser: (after! evil-escape (evil-escape-mode -1)) oder deaktivieren Sie das Paket vollständig:

;; ~/.doom.d/packages.el
(package! evil-escape :disable t)

Führen Sie dann doom refresh und starten Sie Emacs neu.

Alle 3 Kommentare

https://github.com/hlissner/doom-emacs/blob/44eb11c028b9372e6f121639cea538da5b8d23b7/modules/editor/evil/config.el#L256

Es ist kein Fehler, es ist ein Feature. Vielleicht können wir es deaktivieren, aber zumindest können Sie diese Variable in Ihrer Konfiguration auf Null setzen, wenn Sie nicht möchten, dass dies geschieht

(setq evil-escape-key-sequence nil) . Vielen Dank!

Besser: (after! evil-escape (evil-escape-mode -1)) oder deaktivieren Sie das Paket vollständig:

;; ~/.doom.d/packages.el
(package! evil-escape :disable t)

Führen Sie dann doom refresh und starten Sie Emacs neu.

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen