[ESS] How can one tell rlang not to mess up R session in ESS ?
Dirk Eddelbuettel
edd @end|ng |rom deb|@n@org
Mon Nov 13 18:27:26 CET 2023
Thanks Lionel. I was pretty sure I could count on a non-empty intersection
between ESS and rlang...
On 13 November 2023 at 17:20, Lionel Henry wrote:
| See the cli website for disabling colours:
| https://cli.r-lib.org/reference/faq.html#how-do-i-turn-off-ansi-colors-and-styles-
Drats. I though of crayon but not cli. I still get lost in your endlessly
twisted maze of package. One day.
| I use nord-theme too and I see I have this in my config, in case that helps
| (I trimmed down this snippet manually, there might be a typo):
|
| ```lisp
| (let ((class '((class color) (min-colors 89)))
| (nord0 (if (nord-display-truecolor-or-graphic-p) "#2E3440" nil))
| (nord1 (if (nord-display-truecolor-or-graphic-p) "#3B4252" "black"))
| (nord2 (if (nord-display-truecolor-or-graphic-p) "#434C5E" "#434C5E"))
| (nord3 (if (nord-display-truecolor-or-graphic-p) "#4C566A" "brightblack"))
| (nord4 (if (nord-display-truecolor-or-graphic-p) "#D8DEE9" "#D8DEE9"))
| (nord5 (if (nord-display-truecolor-or-graphic-p) "#E5E9F0" "white"))
| (nord6 (if (nord-display-truecolor-or-graphic-p) "#ECEFF4" "brightwhite"))
| (nord7 (if (nord-display-truecolor-or-graphic-p) "#8FBCBB" "cyan"))
| (nord8 (if (nord-display-truecolor-or-graphic-p) "#88C0D0" "brightcyan"))
| (nord9 (if (nord-display-truecolor-or-graphic-p) "#81A1C1" "blue"))
| (nord10 (if (nord-display-truecolor-or-graphic-p) "#5E81AC" "brightblue"))
| (nord11 (if (nord-display-truecolor-or-graphic-p) "#BF616A" "red"))
| (nord12 (if (nord-display-truecolor-or-graphic-p) "#D08770"
| "brightyellow"))
| (nord13 (if (nord-display-truecolor-or-graphic-p) "#EBCB8B" "yellow"))
| (nord14 (if (nord-display-truecolor-or-graphic-p) "#A3BE8C" "green"))
| (nord15 (if (nord-display-truecolor-or-graphic-p) "#B48EAD" "magenta")))
| (let ((ansi-colours (vector nord1 ; black
| nord11 ; red
| nord14 ; green
| nord13 ; yellow
| nord8 ; blue
| nord15 ; magenta
| nord7 ; cyan
| nord5 ; white
| )))
| (setq xterm-color-names ansi-colours)
| (custom-theme-set-variables
| 'nord
| `(ansi-color-names-vector ,ansi-colours))))
| ```
Great, will play later. Do you use this instead of the nord theme, or on top
of the nord theme? Can you (briefly) describe what it does / what you like
about this addition?
Thanks, Dirk
| Best,
| Lionel
|
|
| On 11/13/23, Dirk Eddelbuettel via ESS-help <ess-help using r-project.org> wrote:
| >
| > Casual searching at the rlang repo doesn't reveal anything so pardon me for
| > asking here but what is a simple way to tell rlang to NOT do fancy pants
| > color error backtraces? At least under the theme I use ("nord", for Emacs)
| > it basically nixes readability by leaving a 'dark on dark' default.
| >
| > Thanks in advance for any pointers.
| >
| > Dirk
| >
| > --
| > dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
| >
| > ______________________________________________
| > ESS-help using r-project.org mailing list
| > https://stat.ethz.ch/mailman/listinfo/ess-help
| >
--
dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
More information about the ESS-help
mailing list