Emacs ESS major mode font colour change after Error - emacs

When using the R console through the ESS major mode in emacs, I encounter the following problem:
Changed font color after Error
The font color of all text, except for explicitly highlighted text such as links and Errors, changes from the default light color to dark, which is not easily visible in my theme. It starts after an Error. More specifically, the first line with the darker font color starts with "Run".
Highlighted text
Is there a way to remedy this? It persists until I execute "Reload process" and refresh my console session.
EDIT: Note a hack was found to avoid R from printing the output that causes this issue: https://github.com/emacs-ess/ESS/issues/1193

Related

Visual Studio Code, how to change background of a specific

I want to change the background of a specific scope (code.block) in VSCode as I do with sublime. sublimetext
Block comment has different background, hence it is easier to notice.
Although I made necessary modifications to relevant json file, and foreground colors displayed correctly, backgroundcolor is always overriden by the background of editor. the background field (ff0000 marked with red) changes correctly but the displayed background field (1d1a18 marked with green) is the background of the editor.
VSCode
I use meterial dark soda theme.
Anyone knows how to disable this setting.
You can't. Here's the issue tracking: #3429.

How to change the gutter background colour in VS Code?

All the VS Code default themes (and any others that I've seen) have a uniform background color between the main view and the gutter. This makes it really hard to tell if you're at the start of a line (or to click there). Is the cursor at the start of the line here?
This is especially annoying with Python where indentation matters and you can't simply auto-indent a block once your indentation is messed up.
I often find myself pasting a block only to find that I was one space away from the start of the line and the pasted block therefore being offset.
Simply setting the gutter to a light grey background would fix this problem but looking at the default theme files I can't see any settings for the gutter. I've also looked at a theme from the store (Material) which has a few keys relating to gutter colours but changing them did not do anything.
Is there any way to modify the gutter background colour in VS Code?
Update: Version 1.8 of VS Code comes with a new setting to render the line highlight which can help with this when set to 'gutter':
You can change the gutter's background color (or colour) in settings.json. This was added in May.
"workbench.colorCustomizations": {
"editorGutter.background": "#000000" // your color here
}
or you can add
"editor.rulers": [ 0 ]
This won't change the background but it will add a line between the gutter and the editor.
The problems is that the gutter pointers are just not enabled by default.
Open preferences, workspace settings and set
{
"editor.renderIndentGuides": true,
"editor.renderWhitespace": "all"
}
You should see the guidelines and whitespace, hope it helps.
For more settings like this check -> https://code.visualstudio.com/Docs/customization/userandworkspace
Please install 'Python For VSCode' extension to solve the indentation issue.

Netbeans: How to change error row highlighting color away from red

I've dug through every damn color setting under Tools> Options. Went through every Fonts & Color, Editor, PHP etc and I'll be damned if I can figure out how to change the background row highlighting for when you have an error. I've been able to change ever other color to fit my personal preference cept this one. Here's a screen shot of the problem:
I would like to change the background red to a dark red so the text is easier to ready.
Using Netbeans 7.4
Thank you for your time and consideration.
Edit: Per Ben's point, here's the current options and the code behind the panel to show it's not working:
Final update, here's the end result which is close enough:
By looking at your screenshots (correct me if I am wrong) I can see that you have set your current row highlighting to red:
Tools-> Options-> Fonts&Colors-> Highlighting(Tab)-> Highlight Caret Row
As far as I know you can't set different background highlighting options for errors. So what you can do is set the formatting options for errors:
Font: No need to explain this.
Foreground: This is the text color if you change this it will disregard all other formatting options that you may have set, so lets leave it as is.
Background: This is what you want to change so that text don't get lost in the formatting. If you scroll to the bottom you can also set custom colors.
Effects: Irrelevant
Effect Color: Disabled if effects is None and only applies to the effect.
As you can see I set mine to yellow just as an example.
As you can see in this screen shot my background highlighting is light grey as well as my string formatting. So it is impossible to read, but by changing the error formatting this is the result:
Alternatively you can just select another background highlighting color that suits your formatting better.
Try Fonts&Colors->Syntax->Error
You can also try setting the Annotations color for "Error", mine was set to a specific color (after importing a theme) instead of 'Inherited', making text unreadable in a similar way.
This was really annoying for me too and most answers didn't help. I think that I have figured it out.
In netbeans 12 you need to change two things.
Tools->Options->Fonts&Colors->Syntax->Java->Error->change background color. This will only change the background of the code in error and not the red background of the rest of the lines white space.
To fix the red on the whitespace.
Tools->Options->Fonts&Colors->Annotations->Error(the one with the exclamation point)->change background color
I selected inherited to have no whitespace highlighting.
enter image description here

Controlling the background color of buffer and text in ansi-term in Emacs 24.x

I am running Emacs 24.1. On my .emacs start file I have the following line:
(load-theme 'tango-dark t)
However, when I run an ansi-term terminal, the background colors don't work well:
What's interesting is that for directories, the background color seems to be correct, while for some files the background color is black (even though the buffer's background color is dark grey).
I would like to either:
1: Have the background color of the buffer match the background color of the text (black in this case)
or
2: Have the background color of the text match the background color of the buffer (dark grey in this case), which in this case is configured by tango-dark.
How can I do this? (an answer for both possibilities would be ideal)
Since Emacs 24 the theming mechanism is built-in, and it is slightly different from the color-theme library used for the same purpose before, but it is very similar.
What I think happened is that somehow the theme was initialized before the setting for the terminal color was applied, or, maybe the old theme used to set this color, while the new one doesn't.
Essentially, the theme is a collection of faces, those the author of the theme believed you might use (so you can put into theme the faces that aren't built-in in Emacs). The theme, however, may set other things too, so it could've set the terminal background color using custom-theme-set-variables, or used to do that before, but not any more.
In any case, you should be always able to customize that by either customizing the face itself (which will override the theme settings), or customize the theme. You can do the first using M-xcustomize-faceRETdefaultRET and the second using M-xcustomize-themeRETtango-darkRET

Emacs color theme causes the minibuffer to disappear?

Here is a link to my color theme that causes the problem
https://gist.github.com/3d8cc59cbc1c7f87817f
Does anyone have any idea why it is removing the minibuffer?
This problem only occurred after installing and using this with the emacs-starter-kit
Try removing the emacs-starter-kit, the lines in your themes which affect the mini-buffer look fine.