I wanted a custom prompt for R with ESS. I wanted a double struck R. I probably did it wrong. It never worked. Actually it worked most of the time, and that is worse than never working. Kind people helped me. I still got it wrong. I take full responsibility. It was better not to do it. If you want to try, here is where I left it.
Make the ℝ prompt stand out (be sure to tell ESS how to handle this):
Tell ESS how to handle my custom prompt:
(setq inferior-ess-primary-prompt "ℝ> ")
Handle the custom ℝ prompt in
ess. Don’t use custom here.
(setq inferior-S-prompt "a-zA-Z0-9.*\\(?:[>+.] \\)*ℝ+> ")
Here is an example of how to format magrittr chains with ESS. Those interested will also be happy to learn of
For example, to get the an indent after only the first statement.
(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)
Thank you Mr. Vitalie Spinu.
How I did it:
(assoc 'RRR ess-style-alist)))
(setf (nth 0 gcr/ess-style) 'GCR)
(add-to-list 'ess-style-alist gcr/ess-style)
(setq ess-default-style 'GCR)
The latest version of ESS includes a
It formats Magrittr chains as expected by default with e
Here is a great overview how to get started with ess-tracebug.
Lately I’ve been curious whether or not my actual Emacs keymapping usage actually reflects how I think I use it. What I mean is that I have a goal of mapping frequently used operations to easily-accessible keybindings on the keyboard. What I plan to do is to record my usage so that I can study it to find mapping decisions that I got right, and wrong, and also identify things that I use that I should be mapping closer to home.
The simplest approach would be to use a keylogger, or advice inside of Emacs.
What I am curious about is your approach if you had done, or would do, something like this, and your thoughts an ideas.
In my case I lay out my mappings for how far away from home they are, and that has worked well so far, but I would like some numbers to back up that claim though it is not too serious depending upon how you look at it.
Cross posted from help-gnu-emacs