Giter Site home page Giter Site logo

Comments (5)

noctuid avatar noctuid commented on July 28, 2024

There is the formatting issue mentioned in that issue currently (e.g. delete does prettification that only makes sense for lisp modes). It may be annoying if you don't want to use safe operations always. You may need to configure lispy-left and lispy-right per-mode if you want lispyville to handle other delimiters. Performance will also be worse for larger selections (though the operators will not try to handle regions over the configured threshold safely). Other than that, it should be okay, but I haven't tried it myself, so there may be some other annoyances.

Also, I wouldn't alias evil-delete, I would bind [remap evil-delete] 'lispyville-delete.

from lispyville.

yyadavalli avatar yyadavalli commented on July 28, 2024

Thanks, for the info.

Wouldn't the remap be same as lispyville-mode with key-theme operators?

The reason I wanted an alias is https://github.com/Somelauw/evil-org-mode calls evil-delete directly and a remap wouldn't help in those cases.

Also it would be really awesome if we can generalize all operators and have a global-minor-mode in the same vein as smartparens-global-strict-mode, that does the safe operations.

from lispyville.

noctuid avatar noctuid commented on July 28, 2024

Yes, but you could use lispyville-mode with a different configuration for lisp modes (more than just operators) and just bind the operators globally if you wanted.

I'm not confident it's a good idea to change all calls to evil-delete. Where is evil-org-mode using evil-delete where you would want it to use lispyville-delete? If you do want to try that, I'd suggest using advice with :override instead, so that it's easier to undo.

I'm planning on having a global minor mode for non-lisp modes at some point when I get rid of the lisp-specific functionality in the operators.

from lispyville.

yyadavalli avatar yyadavalli commented on July 28, 2024

I'm planning on having a global minor mode for non-lisp modes at some point when I get rid of the lisp-specific functionality in the operators.

That would be awesome.

The main use case was my config file which is in org-mode and I have src blocks. It is partly a bad habit of mine to not open a org-src edit buffer, which will do the right thing. But in general I think safe operators are the better way.

I have never used :override but I will try that.

Thanks a lot for your advice.

from lispyville.

noctuid avatar noctuid commented on July 28, 2024

The main use case was my config file which is in org-mode and I have src blocks.

You could also try polymode if you haven't already.

from lispyville.

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.