-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: include support for R package magrittr #96
Comments
Sorry, dear UH, but I pretty strongly disagree that ESS itself should start providing support for such things... There won't be an end if we start here... |
Here is some code for
This is how it looks:
|
I tend to agree with Martin. This seems like a good idea for a more general package "pretty-things". On the other hand I like the idea of lambda and composition that would make R even more functional than it is. I think you guys should try and push To wrap up, we would prefer to wait and see. If |
Actually, I have learned quite a bit more about the issue in the mean time, notably about the relative importance of |
That is, every use of
If support for |
Have a look at
With the following style: (add-to-list 'ess-style-alist
'(my-style
(ess-indent-level . 4)
(ess-first-continued-statement-offset . 2)
(ess-continued-statement-offset . 0)
(ess-brace-offset . -4)
(ess-expression-offset . 4)
(ess-else-offset . 0)
(ess-close-brace-offset . 0)
(ess-brace-imaginary-offset . 0)
(ess-continued-brace-offset . 0)
(ess-arg-function-offset . 4)
(ess-arg-function-offset-new-line . '(4))
))
(setq ess-default-style 'my-style) |
Fantastic, thanks! |
For what it's worth...with key-chord-mode, I make it easier to type the pipe operator by using two quick ">" keystrokes:
|
I have added As to the binding, smart operators is not ESS's business. I am experimenting with
|
Using key-combo is a really good solution. The above didn't quite work on my setup, though (Emacs 24.4.1). Here's a working version:
|
Simple solution is to put this line in your
It will provide the same binding as |
The R package magrittr defines the pipe-forwarding binary operator %>% that makes for much more readable code in my experience. It would be nice if ESS could provide support for this operator by a) providing a key binding for it and b) highlighting it as it does other operators.
The text was updated successfully, but these errors were encountered: