-
Notifications
You must be signed in to change notification settings - Fork 52
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
god-mode does not work with "un-initialized" projectile-mode-map
#156
Comments
This supersedes issue #155 I've opened/closed before. |
It depends on how you initialise God mode. |
I do use The issue happens once Emacs is initialised, then I turn god-mode on using the binding. Interestingly, if I add |
Sorry, I can't seem to recreate this, although I'm using Calling Would it be possible to share your Emacs config? |
Apologies, realised my github didn't contain the config I was working with. Here is the version which reproduces the problem for me. The Also, I've disabled Since I am not using Doom Emacs, only the individual Regarding the |
Actually, I've encountered another issue. For some reason enabling god-mode on startup using the The behaviour is present in my earlier config. |
Just had a quick look, and it looks like you're setting I've not yet investigated the issue with projectile and God mode. |
I've also tried using When I don't automatically start god-mode with either of the hooks, then setting |
Uh, oh... just noticed somehow I've been using the wrong name for the function-key option! It seems I didn't notice the issue, because I usually press Sorry, my bad! |
Not a problem. |
Yes, indeed. The issue with initializing projectile key-binding still exists. |
Okay, looking at your config, it's because projectile key bindings aren't exposed through your package configuration that uses (use-package projectile
:hook
(projectile-grep-finished . (lambda () (pop-to-buffer next-error-last-buffer)))
:bind-keymap
("C-c p" . projectile-command-map)
:init
(require 'projectile)
:config
(dolist (dir (list "node_modules" "target"))
(add-to-list 'projectile-globally-ignored-directories dir))
(projectile-mode)) This is sort of what Doom Emacs does too. |
I don't understand. My config is exactly the same as what you wrote. |
Haha not exactly. (use-package projectile
:hook
(projectile-grep-finished . (lambda () (pop-to-buffer next-error-last-buffer)))
:bind-keymap
("C-c p" . projectile-command-map)
+ :init
+ (require 'projectile)
:config
(dolist (dir (list "node_modules" "target"))
(add-to-list 'projectile-globally-ignored-directories dir))
(projectile-mode)) |
Adding the |
This seems to have solved it though:
The difference is that I've used ...not sure how you've added those nice highlights on your code examples though! ;) |
This is to solve interoperability issue with god-mode: emacsorphanage/god-mode#156
This is to solve interoperability issue with god-mode: emacsorphanage/god-mode#156
This is to solve interoperability issue with god-mode: emacsorphanage/god-mode#156
Still, it might worth looking into why |
This is to solve interoperability issue with god-mode: emacsorphanage/god-mode#156
This is to solve interoperability issue with god-mode: emacsorphanage/god-mode#156
This is to solve interoperability issue with god-mode: emacsorphanage/god-mode#156
This is to solve interoperability issue with god-mode: emacsorphanage/god-mode#156
This is to solve interoperability issue with god-mode: emacsorphanage/god-mode#156
This also resolves interoperability issue with god-mode: emacsorphanage/god-mode#156
This also resolves interoperability issue with god-mode: emacsorphanage/god-mode#156
This also resolves interoperability issue with god-mode: emacsorphanage/god-mode#156
This also resolves interoperability issue with god-mode: emacsorphanage/god-mode#156
Until
projectile-mode-map
prefix binding (e.g.C-c p p
) has been called manually (i.e. without god-mode) at least once, the calling the enhanced binding with god-mode enabled (i.e.c SPC p p
) does not work.Once the prefix binding has been entered manually (without using god-mode) at least once, then calling it from god-mode with the enhanced binding starts to work too.
Choosing and executing one of the subcommands in the
projectile-mode-map
is not even necessary, it is enough to just enter the prefix binding (e.g.C-c p p
) and then terminate the minibuffer withC-g
.The text was updated successfully, but these errors were encountered: