Giter Club home page Giter Club logo

Comments (7)

DogLooksGood avatar DogLooksGood commented on August 26, 2024 1

Hi, thank you for the nice words, and I'm glad you like it.

This is how you use INSERT as leader-key.

(define-key meow-normal-state-keymap [insert] meow-leader-keymap)
(define-key meow-motion-state-keymap [insert] meow-leader-keymap)

Even though Meow provides some helper functions, but meow-normal/motion/insert/keypad-state-keymap are just plain, simple Emacs keymap. You can customize them by whatever way you want. There's no command called meow-leader, instead you bind meow-leader-keymap to whatever key you like.

And if you don't need SPC as leader anymore, just unbind it.

(define-key meow-normal-state-keymap (kbd "SPC") nil)
(define-key meow-motion-state-keymap (kbd "SPC") nil)

If you want to check the code, see meow-keymap.el.

from meow.

DogLooksGood avatar DogLooksGood commented on August 26, 2024

Is your problem solved? so we can close this issue.

from meow.

AndersonTorres avatar AndersonTorres commented on August 26, 2024

To be honest, no. There is a small issue:

In Keypad state, the SPC key is still employed as modifier. Looking at the example of Section 5 in readme, the expected outcome should be something like "Vanilla C-h k is mapped to [insert] h [insert] k, but the second [insert] is treated like an insert key, not as a modifier.

More precisely, the first insert "prompts" a modifer (as expected) but the second one is not - it exhibits the message Overwrite mode enabled in current buffer and still expects a SPC key.

from meow.

DogLooksGood avatar DogLooksGood commented on August 26, 2024

Hi, in KEYPAD state the SPC is not a leader, it is called "literal prefix", controlled by variable meow--keypad-literal-prefix.

To use INSERT as literal prefix, you need these setup.

;; introduce INSERT key into KEYPAD state
(define-key meow-keypad-state-keymap [insert] 'meow-keypad-self-insert)
;; use INSERT as literal prefix
(defvar meow--keypad-literal-prefix 'insert)

This is not mentioned in doc since I never though someone would like to customize.

from meow.

DogLooksGood avatar DogLooksGood commented on August 26, 2024

I just rename prefix varables and add doc for them.

https://github.com/DogLooksGood/meow/blob/master/CUSTOMIZATIONS.md#meow-keypad-literal-prefix

Additionally INSERT key is added into keypad keymap by default.

from meow.

AndersonTorres avatar AndersonTorres commented on August 26, 2024

Now Meow works as expected!
Many thanks!

... and apologies for my bad English skills.

from meow.

DogLooksGood avatar DogLooksGood commented on August 26, 2024

Never mind, your English is good!

from meow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.