AmaiKinono

Results 149 comments of AmaiKinono

Actually I just started to contribute my code to some Emacs packages recently and feels like getting to have an understanding of elisp. I don't know if this is a...

I've tried to play with `general-key`, but found myself really not good at dealing with macros. It keeps running into errors :rofl: Sorry for giving up. I'd better watch how...

> Are you binding `C-c` in an evil state and in general-override-mode? I'm binding `C-c` in visual and insert state. But I would like to have it in the `override`...

I tried your code: ``` emacs-lisp (toki-leader-def "C-c" (general-key "C-c" :let (emulation-mode-map-alists))) ``` This also works fine, and lexical binding is enabled in my configuration file. So everything works fine...

The same effect can be achieved without defining a macro: ``` emacs-lisp (general-create-definer moon-global-leader :prefix "S-SPC" :keymaps 'override) (general-def '(normal visual) "SPC" (general-simulate-key "S-SPC")) ``` But this and your code...

I would say a helper is simple and reliable, and can meet a variety of user needs that can or cannot be thought of now, so I prefer this.

@noctuid Hi. I think it's better to show you the whole scheme used by me, maybe it can be a reference. ``` emacs-lisp (defconst toki-leader-key "C-j") (defconst toki-normal-state-leader-key "SPC") (defconst...

It seems not work for me. I just tried the same code snippet. Now when I press ` C-c`, the echo area shows "Switched to emacs state for the next...

Here's another problem that shows up: I'd like to use `C-j` as my leader key, and `SPC` works like the leader key in normal state. My configuration is like this:...