ztlevi / doom-config

Blazing fast Doom Emacs private configuration
MIT License
211 stars 31 forks source link

add key map SPC-l to evil-switch-to-windows-last-buffer #10

Closed liuzhishan closed 3 months ago

liuzhishan commented 3 months ago

Hi, I found I always switch between two recent buffer over and over again. This seems to be a common situation. So I think a new key mapping :leader l would be more convenient than :leader , RET.

(map! :leader :desc "Switch to last buffer" :n "l" #'evil-switch-to-windows-last-buffer)
ztlevi commented 3 months ago

Can you put this line above e.g. line 125? BTW, this is mapped to the key SPC `

liuzhishan commented 3 months ago

Can you put this line above e.g. line 125? BTW, this is mapped to the key SPC `

Hi, thanks for the advice, I have put this line to line 126. I didn't notice that it already mapped to SPC `. But maybe SPC l is easier to press the keyboard ?

ztlevi commented 3 months ago

yeah, you can check it by press SPC h f evil-switch-to-windows-last-buffer and check the function key bindings. I'll merge