Comments (4)
Hi there!
It doesn't break Magit for me at least (Emacs 27, Magit v3.1.1-15-g7f666751c022). Why do you think it does? Magit defines what TAB will do in its local keymaps, e.g. magit-status-mode-map
, and they have priority over the global keymap.
from fancy-dabbrev.
I think it does because I set the global key to expand or indent, TAB on magit doesn't work, for example to show a diff: suddenly I get
buffer is read only
:] I suppose TAB must tweaked only for fancy-dabbrev-mode. If it works for you, that's good news though^^
hey have priority over the global keymap.
I didn't know that, but it doesn't seem to be the case with me, since C-h k TAB
in a magit buffer to check shows it is bound to fancy-dabbrev-expand-or-indent
.
Magit 20210105. I might need to update and see.
from fancy-dabbrev.
Ah, now I understand. Emacs apparently performs translation between TAB
and <tab>
in a (to me) non-obvious way, and this interacts badly with Magit. See for example the comments to this stackexchange answer. And I of course use TAB
instead of <tab>
in my personal bindings, contrary to what I wrote as a hint in the README.
In other words, try this instead:
(global-set-key (kbd "TAB") 'fancy-dabbrev-expand-or-indent)
from fancy-dabbrev.
Perfect thank you!
from fancy-dabbrev.
Related Issues (13)
- Is it possible to do expansion for "." HOT 4
- Request/Suggestion: support for limiting completion to when the preview is visible HOT 1
- Request/Suggestion: support a customizable tab function
- Message suppression isn't working for `*Messages*` HOT 3
- Feature request support for vterm HOT 2
- It doesn't work in orgmode HOT 14
- Making fancy-dabbrev expansion triggers more configurable HOT 2
- Ability to preview and expand next word HOT 3
- Making sure case matches the sentence HOT 1
- dabbrev--substitute-expansion: Wrong type argument: arrayp, nil HOT 1
- Add minor mode keymap so that tab & shift-tab are bound by default when fancy-dabbrev is active.
- [Q] Do you know how to use dabbrev with a completion framework such as ivy-counsel? 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 fancy-dabbrev.