Hi all, I'm trying to set the leader key of evil-mode as "SPC", but seems it can't apply with `evil-defin-key` later, this is the line of code where I set leader: https://github.com/ZWindL/.emacs.d/blob/master/settings/init-evil.el#L24 and here's the testing code I wrote in *scrach* ``` (defun my/test () (interactive) (message "test")) (evil-define-key 'normal 'global (kbd "<leader>m") #'my/test) ``` Not sure if it is the correct way to use <leader>, please help. Thanks & Best wishes zwindl
Hi, Have you checked this: https://superuser.com/questions/607858/space-as-a-leader-in-emacs-with-evil? Best, Sanel zwindl <[email protected]> writes:
Hi all, I'm trying to set the leader key of evil-mode as "SPC", but seems it can't apply with `evil-defin-key` later, this is the line of code where I set leader: https://github.com/ZWindL/.emacs.d/blob/master/settings/init-evil.el#L24 and here's the testing code I wrote in *scrach* ``` (defun my/test () (interactive) (message "test"))
(evil-define-key 'normal 'global (kbd "<leader>m") #'my/test) ``` Not sure if it is the correct way to use <leader>, please help.
Thanks & Best wishes zwindl
_______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Hi Sanel, Big thanks to you, although the problem is not relating to evil/leader. I just solved it by disabling override settings of general.el (and at last I deleted that package), it works fine now. Thanks & Regards zwindl ------- Original Message ------- On Monday, June 13th, 2022 at 6:54 PM, Sanel Zukan <[email protected]> wrote:
Hi,
Have you checked this: https://superuser.com/questions/607858/space-as-a-leader-in-emacs-with-evil?
Best, Sanel
zwindl [email protected] writes:
Hi all, I'm trying to set the leader key of evil-mode as "SPC", but seems it can't apply with `evil-defin-key` later, this is the line of code where I set leader: https://github.com/ZWindL/.emacs.d/blob/master/settings/init-evil.el#L24 and here's the testing code I wrote in scrach ``` (defun my/test () (interactive) (message "test"))
(evil-define-key 'normal 'global (kbd "<leader>m") #'my/test) ``` Not sure if it is the correct way to use <leader>, please help.
Thanks & Best wishes zwindl
_______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
participants (2)
-
Sanel Zukan -
zwindl