Comments (3)
I just read some code of which-key
, it seems like that which-key
determines the height and width according to the information it displays. This will align the information properly.
If we simply change the height and width of which-key-posframe
, the display will be destroyed, therefore which-key-posframe
just inherit the height and width from which-key
.
I do not know whether it needs a lot of work to do this right. I will investigate this later.
from which-key-posframe.
In case its helpful, I got changes to height and width to take effect by using posframe's default arghandler:
(setq posframe-arghandler #'wjb/posframe-arghandler)
(defun wjb/posframe-arghandler (buffer-or-name arg-name value)
(let ((info '(:internal-border-width 2 :width 90 :height 12)))
(or (plist-get info arg-name) value)))
It doesn't actually look good since the width and height are not tailored to the which-key content, but I'm sharing in case this is helpful in getting which-key-posframe to inherit height and width from which-key.
from which-key-posframe.
@sandinmyjoints Thanks!
However, it is very simple to make it is feasible to customize which-key-posframe
height and width, what I have not figured out is how to align the display if we do not inherit height and width from which-key
.
from which-key-posframe.
Related Issues (14)
- Error: "Attempt to make invisible the sole visible or iconified frame". HOT 1
- spacing issues (width / line wrapping), possibly related to font/ligatures HOT 1
- 请问怎么样才能在非图形模式下退化到原始的which-key模式呢? HOT 3
- which-key-posframe doesn't display all key bindings HOT 1
- Error while deleting posframe HOT 1
- Forked to Emacsorphanage
- Does not appear with minimal config HOT 2
- Issue with autoloads on Windows 10 HOT 1
- Setting width to frame width
- Two same variable define? HOT 3
- No border shown HOT 4
- Performance issues HOT 2
- C-h paging does not work.
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 which-key-posframe.