syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.68k stars 4.89k forks source link

Org-mode key bindings aren't set correctly until I enter and exit insert-state #6643

Closed bmag closed 4 years ago

bmag commented 8 years ago

Description :octocat:

Org-mode key bindings are initially wrong. The following recipe is demonstrates for M-j, but it's not the only one. cc @agzam

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: Before entring and exiting insert state, M-j is bound to indent-new-comment-line.

Expected behaviour: :heart: :smile: M-j is bound to org-metadown in both cases.

System Info :computer:

(helm
 (auto-completion :variables auto-completion-complete-with-key-sequence "jk" auto-completion-complete-with-key-sequence-delay 0.5 auto-completion-enable-snippets-in-popup nil auto-completion-enable-help-tooltip t company-tooltip-align-annotations t)
 command-log evil-cleverparens
 (git :variables git-magit-status-fullscreen t)
 ibuffer imenu-list nlinum org pdf-tools
 (shell :variables shell-default-shell 'shell shell-default-height 30 shell-default-position 'bottom)
 smex syntax-checking version-control c-c  
 (clojure :variables clojure-enable-fancify-symbols nil)
 emacs-lisp
 (latex :variables latex-enable-auto-fill t latex-enable-folding t)
 markdown octave ruby common-lisp window-purpose themes-megapack
 (theming :variables theming-modifications
          '((spacemacs-dark
             (aw-leading-char-face :foreground "red" :height 3.0))
            (spacemacs-light
             (aw-leading-char-face :foreground "red" :height 3.0))
            (monokai
             (aw-leading-char-face :foreground "red" :height 3.0))
            (flatland
             (aw-leading-char-face :foreground "red" :height 3.0))))
 python)
agzam commented 8 years ago

What would be a correct work-around that can be used in the interim until the issues is fixed?

agzam commented 8 years ago

Major-mode keybinding appears to be broken too. neither pressing , nor SPC m work

agzam commented 8 years ago

so I don't understand, if I have org layer added in dotspacemacs-configuration-layers, everything works as it used to, but org-version returns 8.2.10. If I remove that, after the restart it reports 8.3.5, but things are broken

agzam commented 8 years ago

I dunno what happened, but the issue doesn't seem to be appearing anymore. So I am assuming it was an upstream problem. @bmag Can you please close it? Thanks!

TheBB commented 8 years ago

FWIW I've seen this happen for a good while, and it's indeterministic to me. I wouldn't be so quick to close this.

It's likely that a timely evil-normalize-keymaps will fix this, but I haven't figured out timely means since it's hard to reproduce consistently. Is it enough to have it at the end of org-mode-hook? I don't know.

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!