doomemacs / doomemacs/core

Local leader is not accessible in custom evil states

Open
#5,653 0 comments 2 reactions 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

When binding `doom/leader` for a new evil state, the local leader commands should also be accessible.

### What actually happened?

Local leader commands are not accessible.

### Describe your attempts to resolve the issue

None, as it appears to be a hardcoded value in doom-core here:
https://github.com/hlissner/doom-emacs/blob/develop/core/core-keybinds.el#L177

Possibly related issue: https://github.com/hlissner/doom-emacs/issues/1364

### Steps to reproduce

1. Create a new evil state and bind `doom/leader` like so:
```
(evil-define-state foo "!")
(setq doom-evil-state-alist `((?f . foo) . ,doom-evil-state-alist))
(map! :map general-override-mode-map
:f "SPC" 'doom/leader)
(evil-foo-state)
```
2. Type `SPC m`

### System Information

https://pastebin.com/cSdb8EC0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.