Comments (10)
Done in #146.
from god-mode.
thanks for flagging this @tangxinfa!
I'm fairly certain this will be fixed with an unwind-protect
form. I was not aware of this form when I wrote the god-mode-describe-key
function: it should remove the hook in all situations. Please try to reproduce your error with the updated code and let me know your experience.
@darth10 I have created a pull request with my fix, let me know your thoughts
from god-mode.
Great idea @andyjda!
This is currently a limitation of God mode, but it's something that can be improved.
from god-mode.
Great!
Do you know if there could be a more elegant/effective way to do this?
I'm not too familiar with the code, but I couldn't think of a way to achieve points 1) and 2) (as mentioned above) without overhauling a bit of the package. I'm not sure that'd be worth it.
If this is as good as we can get for now, should we include it in the code? Let me know if you have any edits/suggestions: I can write it up and do a pull-request (I think I'll also edit the README to outline the updated behavior for describe-key
)
from god-mode.
I think advice functions are fine as long as they're removed when the mode is switched off.
But you're right, they can help with describe-key
without a major overhaul of the codebase.
I'll get to this soon, but am more than happy to accept any contributions for this improvement.
from god-mode.
that's a great point, I'll make sure to remove the advice when the mode switches off.
I can work on this and get you a working solution in a few days. I'll let you know when it's ready
from god-mode.
Hey @darth10 here's my PR for this feature: #146
I think I got closer to my initial idea. All the useful information is now displayed in the Help buffer.
Also, while working on it I noticed a few minor compilation/flycheck warnings. I took the liberty of fixing these and made a separate PR for them: #147
Hope this is helpful! Let me know your thoughts
from god-mode.
Thanks for those PRs @andyjda!
I haven't had a chance to look at them as I'm travelling, but I'll take a look this weekend.
from god-mode.
sounds great, no rush! happy travels
from god-mode.
I found in rare cases god-mode--help-fn-describe-function
is leave in
help-fns-describe-function-functions
hook, break the system's describe-key
and describe-function
functioning in other non god-mode buffers.
error message:
god-mode--help-fn-describe-function: Wrong type argument: number-or-marker-p, nil
from god-mode.
Related Issues (20)
- The function "my-god-mode-update-modeline" does not work reliably HOT 4
- Fix mode line suggested in README resulting in unreadable mode line HOT 3
- God mode does not work in Transient UI HOT 8
- god-mode-all doesn't work in shell-mode HOT 4
- Keybinds recommendation
- Use Eldev HOT 1
- Add customisation to disable sticky `god-literal-key` HOT 10
- Idea: One-shot god-mode HOT 3
- [Idea] Disabling god mode after certain functions/key-presses HOT 5
- Have a discussion page for this project? HOT 1
- Extending god-mode system wide outside of Emacs HOT 13
- Make ESC just enter god-mode HOT 3
- Conflict with lispy-mode HOT 3
- Shifted key translation HOT 5
- Customize option to disable head icon showing on mode-line HOT 7
- god-mode doesn't work in *scratch* buffer
- god-mode does not work with "un-initialized" `projectile-mode-map` HOT 17
- binding for <C-tab> doesn't work in god-mode HOT 10
- Org-mode header navigation. HOT 1
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 god-mode.