xwl / electric-spacing Goto Github PK
View Code? Open in Web Editor NEWInsert operators with surrounding spaces smartly. (Refactored and successor of smart-operator.el).
Insert operators with surrounding spaces smartly. (Refactored and successor of smart-operator.el).
Hi,
I'm using your package a few days. I like it a lot.
I'm trying accommodate the R style when using ess-mode in emacs. I'll ask you a pull request in the future.
When I was doing tests with the functionalities, I notice that comma isn't working as expected.
I did some tests and I conclude that this (?, . electric-spacing-\,)
isn't calling electric-spacing-\,
when ,
is pressed. As a prove, I replaced ?,
by ?+
and commas with space were inserted when +
were pressed. So, the problem is not about function implementation but key binding. Do you have any suggestion to fix this?
When I install from MELPA, the byte compiler reports unbalanced parentheses. Changing the new ?(
to ?\(
seems to fix the problem, although I couldn’t thoroughly test the solution.
Could you modify the behavior of inserting "=", so that there won't be space before "=" in "+=", "*=", "/="?
Hi,
I want to get:
[1,2,3][0:-1]
When I type this in with electric-spacing
I get:
[1, 2, 3][0:- 1]
Thanks,
Rasmus
PS: Do you prefer the github tracker or report-emacs-bug
?
inserts spaces after addressof
( &
) operator in C.
Hi William,
As I told you, I was working to extend electric-spacing for the R coding style based on what you did for C++. I did this in a new file, ess-electric-spacings. I did some testing, it seems to be working well. Now I can submit a pull request but I was thinking if is better to put electric-spacing-*
characters definitions in separated files, one for each mode/language, and keep generic functions (those in the top of file) in the electric-spacing.el
. This way, electric-spacings-c++.el
and electric-spacings-r.el
would be created now. The main file would call one of the other files based on the current major mode. Moreover, in the future someone can easily add more extensions, like python and shell.
Bests.
It is annoying that spaces are also inserted around the dot "." in many modes (e.g., "ess-mode","py-python-shell-mode"). Is there a way to permanently disable it (preferably not editing the source)?
Thanks.
well-formatted python looks like this:
a = 1 * 2 + 3 *4
some_function(foo, bar, force=True, silent=True)
this mode currently changes the second line to
some_function(foo, bar, force = True, silent = True)
...which violates the pep8 style guide.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.