Giter Club home page Giter Club logo

electric-spacing's People

Contributors

davidmiller avatar davidshepherd7 avatar jasonm23 avatar pksadiq avatar xwl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

electric-spacing's Issues

Comma isn't putting space after

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?

+=, *=, /=

Could you modify the behavior of inserting "=", so that there won't be space before "=" in "+=", "*=", "/="?

hypen doesn't work with negative numbers

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?

Include electric-spacing for R coding style

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.

How do disable "?."

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.

no spacing for named arguments in python mode

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.

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.