Emacs people - I've searched high and low and can't work it out:
How do I configure it so that when I press and hold h, j, k, l (using evil mode) it moves till I take my finger off the key. At the moment I have to continually hit the key and it's annoying. When using the arrow keys, it works fine.

I've searched for character repeat, and all I get is how to repeat a command with . which is not what I want.

Tyia

#emacs #evilMode #OrgMode

@DodoTheDev if you press and hold j and then do C-h l (which runs view-lossage) what do you see in the buffer that pops up. If you see a single j then I think the problem is at the os level.

Thanks to @rahguzar for suggesting using lossage. I tried it and it doesn't show the letter I'm holding down. It shows the previous key presses, but not the one being held down.
Between the escape and the C-h l, I'm holding down j, so something is afoot...

#emacs #evilMode

Oh, blast, I've figured it out: it's most likely because my keyboard (ErgoDox EZ) doesn't have drivers in WSL. Because it's programmable, it can have functions assigned to key presses. If I use the laptop keyboard, the keys work as expected.

Thank you everyone who helped me figure this out and sorry for such a noob error. 🤦🏻‍♂️

@rahguzar

Sorted it now, it was a setting on my ErgoDox layout. I had h, j, k, l assigned to shortcuts for history, downloads, kill and omnibar. You can tap and hold and it would send C-h etc, which is what was causing the issue. Removed those shortcuts (I never used them anyway) and they work as expected.

Silly config bug, but that's why I love bug hunting: so satisfying when you figure it out!