Comments (7)
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.
Is your problem solved? so we can close this issue.
from meow.
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.
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.
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.
Now Meow works as expected!
Many thanks!
... and apologies for my bad English skills.
from meow.
Never mind, your English is good!
from meow.
Related Issues (20)
- SPC SPC errors in meow-motion-mode HOT 2
- Duplicate Input Issue with BEACON Mode using negative-argument + meow-line + meow-insert
- Keypad bug ~SPC key~ not mapping to ~C-c key~ HOT 3
- feature request: ability to customize the keypad hints font HOT 2
- Feature request: Digit keys in normal mode act as universal-argument without needing C-u HOT 1
- What is `<remap>` in minibuffer? HOT 3
- 我想要一个不加入剪贴板的meow-kill
- C-h m -> describe-mode <leader>-h m -> view-order-manuals
- feature request: show `meow-search-indicator` on the mode-line rather than overlay behind the result
- insert mode i and a do the same thing HOT 2
- Shim for sly-inspector
- Feature Request: `meow-line-thing` HOT 1
- How to set meow-normal-mode? HOT 3
- Cannot bind <tab> in keypad HOT 3
- bug: defcustom's :key-value should be :value-type HOT 3
- meow-*-thing commands not working as expected with plain lists HOT 2
- act on selection
- Why don't we allow SPC (leader) key act as base of 'C-' HOT 2
- `SPC a` inserts an `a` HOT 2
- Meow leader doesn't play nice with prefix-keymaps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meow.