Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evil leader broken in speedbar mode #3980

Closed
mclearc opened this issue Nov 28, 2015 · 2 comments
Closed

Evil leader broken in speedbar mode #3980

mclearc opened this issue Nov 28, 2015 · 2 comments

Comments

@mclearc
Copy link
Contributor

mclearc commented Nov 28, 2015

Since the change on develop to the new way of calling leader my keybindings for speedbar using sr-speedbar have broken. I have the following in my layers:

(defun sr-speedbar/init-sr-speedbar ()
  (use-package sr-speedbar
    :defer t
    :init
    ;; (require 'speedbar)
    (setq sr-speedbar-width 45)
    (setq sr-speedbar-max-width 45)
    (setq sr-speedbar-right-side nil)
    :config
    (setq speedbar-hide-button-brackets-flag t
          speedbar-show-unknown-files t
          speedbar-directory-button-trim-method 'trim
          speedbar-use-images nil
          speedbar-indentation-width 2
          speedbar-use-imenu-flag t
          speedbar-tag-hierarchy-method nil  ;; No grouping
          speedbar-file-unshown-regexp "flycheck-.*"
          speedbar-smart-directory-expand-flag t)
    ;; Add markdown support
    (setq speedbar-directory-unshown-regexp "^\\(CVS\\|RCS\\|SCCS\\|\\.\\.*$\\)\\'")
    (speedbar-add-supported-extension ".md")
    (spacemacs/set-leader-keys
      "oe" 'spacemacs/sr-speedbar-show-or-hide)
    ;; (evilify-map speedbar-mode-map)
    (evilified-state-evilify-map speedbar-mode-map)
    (define-key speedbar-mode-map (kbd "SPC") spacemacs-default-map)
    ))

Previously (evilify-map speedbar-mode-map) was all I needed to get SPC to work as leader in normal mode while in the speedbar. But that no longer works. I've tried both of the below and neither/both seem to do anything. SPC functions merely as a way toggling nodes in the speedbar rather than functioning as leader. Any advice would be appreciated :).

The rest of my setup is below:

System Info

  • OS: darwin
  • Emacs: 24.5.1
  • Spacemacs: 0.105.0
  • Spacemacs branch: develop (rev. f839f4a)
  • Distribution: spacemacs
  • Layers:
(auto-completion deft emacs-lisp helm-bibtex html
                 (git :variables git-gutter-use-fringe t)
                 markdown org osx pandoc
                 (ranger :variables ranger-show-preview t)
                 (shell :variables shell-default-term-shell "/usr/local/bin/zsh" shell-default-height 30 shell-default-shell 'multi-term shell-default-position 'bottom)
                 shell-scripts spell-checking sr-speedbar syntax-checking version-control yaml)
@TheBB
Copy link
Collaborator

TheBB commented Nov 28, 2015

I'm closing this in favour of #3981 which is now the collective go-to issue for this problem.

@TheBB TheBB closed this as completed Nov 28, 2015
@mclearc
Copy link
Contributor Author

mclearc commented Nov 28, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants