Comments (8)
It's definitely possible to do this now. The replacements occur before the special key handling, so all you need is something like this for each one you want to do
(push '("TAB" . "↹") which-key-key-replacement-alist)
You can also set (setq which-key-special-keys nil)
which will disable the special key stuff (but it's actually unnecessary to do this if you are already replacing them.
from emacs-which-key.
Cool, thank you. I will definitely do that.
Do you think that these settings could be useful defaults too, or be bundled in some way?
from emacs-which-key.
I think unicode is cool, but it's been problematic, because the character width can change based on the font (screwing up the way the layout works) and of course everyone uses different fonts.
The best way to do it that I can think of right now would be to describe a setup in the readme that people could drop into their init file. That way they could immediately see if the characters are supported by their font. If you wanted to come up with nice replacements like you did here, I'd be happy to add a section to the readme
from emacs-which-key.
You are right it should not be the default.
We could add U+2196 ↖ (north west arrow) to the above list as suggestion for replacing escape
, which completes the list of default special keys and seems common enough to be supported by many fonts.
from emacs-which-key.
Nice, I'll add a section to the readme later. I think the special key stuff deserves it's own section. I can put the unicode alternative in there too. Thanks!
from emacs-which-key.
Cool!
I have to note however, that in my current setup, the symbols are no longer correctly aligned :-(
from emacs-which-key.
Yeah that's the width thing. The layout assumes a constant character width.
Your arrows are wide too probably but it doesn't cause problems since they
are in every column.
On Fri, Jul 24, 2015 at 10:32 AM epitzer [email protected] wrote:
Cool!
I have to note however, that in my current setup, the symbols are no
longer correctly aligned :-(
[image: 2015-07-24_162852]
https://cloud.githubusercontent.com/assets/1774452/8876684/7442de80-3221-11e5-9e7b-0d734b75d4a6.png—
Reply to this email directly or view it on GitHub
#52 (comment)
.
from emacs-which-key.
Added to readme
from emacs-which-key.
Related Issues (20)
- Composition not being used in which-key buffer HOT 2
- BUG: conflict between which-key-window and avy-goto-char-2. HOT 2
- which-key menu misalignment with ellipsis char HOT 1
- Setting which-key-show-operator-state-maps to true "breaks" outer and inner evil maps HOT 1
- which-key crashes when trying to display term-raw-map HOT 1
- How to switch among different pages of keys conveniently in which-key mode? HOT 1
- which-key can’t show keys: There is not enough space based on your settings and frame size HOT 2
- Customize which-key-C-h-dispatch prompt HOT 1
- Make "<prefix> C-h" display which key and prompt for command at the same time HOT 3
- The texts for the same key in different keymaps are overridden each other HOT 2
- Question about `which-key-undo` HOT 1
- which-key is good enough to be built-into Emacs HOT 1
- Question about full description popups HOT 3
- Automatic expansion of unnamed prefixes
- misoperation
- Once which-key popup is triggered via which-key-show-early-on-C-h all delays are ignored afterwards HOT 1
- Which-key shows wrong labels from inactive keymaps HOT 1
- Side window is too narrow HOT 1
- Scrolling/ moving the screen
- How can I hide keys from the which-key popup? HOT 2
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 emacs-which-key.