Change emacs theme color for a specific LaTeX command - emacs

I am trying to customize the tsdh-dark emacs theme, which I find particularly relaxing.
I am able to customize colors for functions, comments, etc.
However, typing LaTeX documents, particular kind of elements, such as custom or not built-in commands, have a color too close to default text.
See for example the \hypersetup command versus his content:
or shorttitle, \hh, tr versus normal text:
How can I change this color?

Related

VSCode highlight color for {braces} in python non-f-string (often an error)?

Editing Python source in VSCode, I notice some color themes highlight use of {braces like this} in non-f-strings. Others don't.
Such highlighting is useful - it often marks error where the string was supposed be an f-string but isn't.
The "Dark+ (default dark)" theme looks like this:
The "Dark (Visual Studio)" theme looks like this (same color for plain string and brace):
How can I change the highlight color for {foo2} in the color theme? I want to make it much more prominent so I'll notice it.
I think changing this requires something in editor.tokenColorCustomizations in settings.json, but what setting in there corresponds to the {foo2} syntax?

How to disable AUCTeX highlighting?

I'm trying to use GNU Emacs 26.3 + AUCTeX 12.2.3 and it seems to work, but the colors it shows in the source code are very annoying, specially in amsmath environment such as align, because it uses only one color for the whole block. I would like to ignore auctex highlighting so the code looks the same as before installing auctex package, this is something like this: source code before AUCTeX
I deleted some strings like "align" from "Font Latex Math Environments" so it doesn't use the font locking for math environments, and now it looks like normal text: current source code
It's better that one color, yes, but there are several commands that doesn't highlight and I would like them to. (Not highlighted commands occurs outside the align too). Another option would be adding a generic alphabetic string next to \ as a keyword so it would be highlighted but I also don't know how to achieve this.

Customizing the Emacs Monokai Theme to have a more Sublime Text 2 look

I am using Emacs Prelude. I didn't find most of the custom themes comfortable. I really liked Sublime Text 2's Monokai theme, so I installed the Monokai theme ported for Emacs. Though it is more or less similar to Sublime Text 2's Monokai, there are some differences which I want to correct, so as get my Emacs Monokai more close to Sublime's Monokai.
For example I don't want every Python keyword to be the bold pinkish. I would be prefer keywords like class,def to have a blue color than the pink ones and I would prefer the function arguments to have an orange color.
The Emacs Monokai theme seems to color the variable name to an orange color, which I don't want. How do I implement this? I checked the monokai-theme.el file, but I don't know what variable to edit and what variable to add to give the features in color changes I mentioned above.
I suppose you're referring to this version of Monokai?
You'll be able to make some of your changes, but without doing a huge amount of work some of them won't be feasible. This theme uses font-lock to identify many of the things to be coloured, and font-lock identifies all Python keywords the same way.
Have a look through the various font-lock variables in that file. This will give you a good idea of what you can easily change. For example, if you want to change variables from orange to something else, change
'(font-lock-variable-name-face
(:foreground monokai-orange))
to use one of the other monokai- colour variables, or define your own.
If you're trying to figure out how a particular character is recognized by Emacs, move your cursor over that character and do C-u C-x = (C-u M-x what-cursor-position). This will show, among other things, the face for that character.

Popup color from color string like `#f2d3aa` with Emacs

I'm using scss-mode in Emacs.
There are a lot of color string like #f2d3aa in text.
I wonder if there is a function that pop up a color square from string of current position.
Is there a emacs function like this?
I'm using rainbow-mode. It's a minor mode that fontifies the text color descriptions as you type them.
Very user-friendly, since it's got only one interactive function (i.e. rainbow-mode).
It's available from MELPA.
Here are a couple of tools that can help:
hexcolour.el -- shows such hex color codes in their own color in the text
palette.el -- interactive color palette: takes such hex codes as input and provides them as output (in addition to color names etc.)
hexrgb.el -- (used by the color palette and other libraries) color manipulation functions
The first one, hexcolour.el, is the closest to what you asked for.

How to change Emacs command line color

Is there a way to change the text of the command line in emacs?
I do not know, what the real name of the command line at the bottom ist, but I marked it on the picture. It is the blue text at the bottom:
The bottom part is called minibuffer if I recall correctly.
M-x customize-face
minibuffer-prompt
Two possibilities for this one:
One: http://www.gnu.org/software/emacs/windows/old/faq4.html
Just scroll down until you see the part about color, in which it gives you the libraries where you can change emacs colors using RGB values.
Two: http://www.emacswiki.org/emacs/ColorTheme
This one's definitely a lot more robust than you need, but it's basically a 'plugin' of sorts that allows you to customize literally any color in emacs, or use premade color themes.