Git Product home page Git Product logo

Comments (4)

jrosdahl avatar jrosdahl commented on June 9, 2024

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.

vindarel avatar vindarel commented on June 9, 2024

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.

jrosdahl avatar jrosdahl commented on June 9, 2024

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.

vindarel avatar vindarel commented on June 9, 2024

Perfect thank you!

from fancy-dabbrev.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.