Skip to content

Smart Operators for R language#24

Open
walmes wants to merge 81 commits intoxwl:masterfrom
walmes:master
Open

Smart Operators for R language#24
walmes wants to merge 81 commits intoxwl:masterfrom
walmes:master

Conversation

@walmes
Copy link

@walmes walmes commented Aug 3, 2017

Dear William Xu (@xwl),

In this pull request I send you the contributions made to adapt the electric-spacing for the R language. I preferred to create a new file, electric-spacing-r, to implement the electric rules between operators. R users need only electric-spacing-r and can enable it with

(require 'electric-spacing-r)
(add-hook 'ess-mode-hook #'electric-spacing-mode)

@xwl
Copy link
Owner

xwl commented Feb 15, 2018

Hmm, i think a cleaner solution is that electric-spacing-r.el still (require 'electric-spacing) as base, then apply necessary changes on top of affected functions (e.g., using advices).

Ultimately, I should add some sort of plugin support, making it easier to override for each language..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments