Comments (2)
Sure, I will add this.
from general.el.
You can now use :global-prefix
like you suggested to bind in all states:
(general-define-key :states '(normal motion insert emacs)
:keymaps 'emacs-lisp-mode-map
:prefix ","
:global-prefix "M-m"
"/" #'swiper)
If you're using this a lot, you may want to abbreviate it like this:
(general-create-definer general-nmie-evil-define-key
:states '(normal motion insert emacs))
(general-nmie-evil-define-key
:keymaps 'emacs-lisp-mode-map
:prefix ","
:global-prefix "M-m"
"/" #'swiper)
from general.el.
Related Issues (20)
- which-key labels not shown in prefix-command keymaps HOT 1
- General.el byte-compile warning HOT 2
- using multi evil states/keymaps in single general-def
- keymaps not activating keymap during major-mode treemacs HOT 2
- `general-def` is not defined when used in `pre-` or `post-command-hook` HOT 1
- general is not working correctly for emacs-lisp-mode HOT 1
- Using general.el with meow HOT 4
- binding "TAB" in company-active-map to company-complete-selection problem HOT 2
- Creating a toggle to activate/deactivate keybindings HOT 3
- How to use custom definer in use-package definition? HOT 10
- Should `.dirs-local.el` be named `.dir-locals.el`? HOT 1
- Support for repeat-map HOT 1
- how can i overwrite keybinds already defined in the create-definer function in specific modes? HOT 1
- [Qustion] How to remap C-j in magit-revision-mode HOT 1
- SPC SPC as a leader key initialization Even in Insert state/mode or the Emacs Input mode. HOT 4
- Macros defined using general-create-definer cannot be used outside of the use-package statement. HOT 10
- Which-key shows wrong labels from inactive keymaps HOT 4
- Allow `general-simulate-key` to select registers HOT 1
- Can't figure out how to combine definers and nested prefixes HOT 2
- Sharp-quoting in use-package's :general-config keyword warns that function may not be defined at runtime
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 general.el.