Comments (5)
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.
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.
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.
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.
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)
- lispyville-toggle-mark-type appears to lose final character of selection on transition to visual state HOT 2
- Atom-movement key theme would be more useful if it were inhibited inside comments HOT 3
- Set text objects only in lispyville-mode HOT 2
- Don't delete quote characters when keeping open paren
- feature request: lispyville-beginning-of-previous-defun
- Possible solution for inner and outer local objects HOT 1
- [enhancement] issues using lispyville in non-lispy modes HOT 4
- Installation documentation? HOT 3
- Prettify escapes atoms in Clojure that starts with "." HOT 4
- How to transpose in normal mode? HOT 2
- What is the recommended way to delete an sexp? HOT 1
- lispyville-change word is too greedy HOT 6
- Issues with lispyville-delete-char-or-splice.
- [Guix] 5 tests fail HOT 8
- Are `lispy-splice`, `lispy-kill` and `lispy-splice` supposed to work in insert mode? HOT 2
- Evil navigation
- lispy-raise-some not working due to lispy-right-p HOT 2
- evil-replace counterpart? HOT 2
- [ binding conflicts with ability to type it in some languages like Racket 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 lispyville.