Giter Site home page Giter Site logo

Comments (6)

jerrypnz avatar jerrypnz commented on September 24, 2024

@apnewberry Sorry for the late response. For some reason I didn't receive notification for this issue. That's definitely a reasonable suggestion. I didn't implement it as it got a bit complex and I personally always assign labels to the hydra heads. I'll give it another try hopefully in the next few days. Finally got a chance to get back to this project.

Also I'm really glad that you find it useful and thanks for your suggestion.

from major-mode-hydra.el.

jerrypnz avatar jerrypnz commented on September 24, 2024

@apnewberry Apparently it's already supported. I was looking at the tests and realised that it's already there: https://github.com/jerrypnz/major-mode-hydra.el/blob/master/test/major-mode-hydra-test.el#L37 It's been too long and I've totally forgot about it 😂

I also just tested it and can confirm it works, e.g:

(major-mode-hydra-bind clojure-mode "Connect"
      ("Q" cider-quit)

from major-mode-hydra.el.

jerrypnz avatar jerrypnz commented on September 24, 2024

Perhaps it could even have a default but customizable transformation of the name, such as stripping the name of the major mode off the front.

This is an interesting idea. I'm actually working on customisation options #11 and might give it a try.

from major-mode-hydra.el.

 avatar commented on September 24, 2024

Thanks, I hadn't tried it with major-mode-hydra-bind. The function I'm most interested in is pretty-hydra-define, which as far as I can tell doesn't do it. For example this display is empty:

(pretty-hydra-define my-tmp-hydra (:hint nil)
  ("label" (("C-c a" jump-to-register))))

from major-mode-hydra.el.

jerrypnz avatar jerrypnz commented on September 24, 2024

@apnewberry sorry for taking so long to get back to it but this issue has been fixed and is available on develop branch.

from major-mode-hydra.el.

jerrypnz avatar jerrypnz commented on September 24, 2024

Actually merged it to master. Should be available on Melpa soon.

from major-mode-hydra.el.

Related Issues (20)

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.