hl-line-mode emacs color change - colors

Emacs' hl-line-mode is just what i need but i would like to change it's horrible yellow color, anyone know how can i do that?

I use (set-face-background hl-line-face "gray13").
here's what it looks like with a black background.
Very subtle. Mostly I notice it when moving the cursor, which is what I wanted.
If you want to see a display of all the various colors, try (list-colors-display). It will show a list of colors in a new buffer.
EDIT: heh heh, since I am getting upvoted for pretty pictures,
here it is "live":
(ps: that animated gif was produced with the Cropper tool and the AnimatedGif plugin.)

M-x customize-group RET hl-line RET
and modify "Hl Line face".
Alternatively, you could use (for example):
(set-face-background 'hl-line "#333333")
edit: cheeso's answer would be the more robust approach for that second version.

On top of all the nice answers, you can also do it with use-package as follows:
(use-package hl-line
:custom-face
(hl-line ((t (:background "#aaaaaa")))))
hl-line is the customizible face added in Emacs 22 according to the author of hl-line+.

Related

How to make the `CocInlayHints` background color transparent in `.vimrc`

This is a follow up question to Change the color of the type hint in coc.nvim's rust-analyzer
I'm wondering if it's possible to change the background color of inlay hints from Rust Analyzer in Vim. Adding a hex #ffffff00 doesn't seem to work, nor does just 0.
After some more experimenting I was able to find that if you just remove the option for a background color in the examples provided in the aforementioned question, it will not have a background as desired. For me, that looks like:
"For Types hint
hi default CocInlayHint ctermfg=71
The part to remove is ctermbg=0. I also removed other parts from the example provided but it seemed to have no effect so I've left them out here as well.

Unicode Font Color in Android TextView?

I am trying to insert Unicode characters into a TextView. In particular, I want to include a check mark and an "X". I found two Unicode characters to do this, namely \u2714 and \u2716. These show up as shown below. These are Ok I guess but I'm not crazy about the colors. Ideally, the check mark would be green and the cross red. Or at least both the same color. TextView.setTextColor doesn't help.
My guess is that these colors are baked into the font (typeface). I guess I could download a boatload of TrueType fonts and try them one-by-one, but that seems like cruel and unusual punishment.
Does anybody know a way to change the colors? (or otherwise do what I want)
I suppose I could re-architect the app to use images but that would entail unacceptably major re-structuring.
Well, no one responded, so I'm posting this answer to capture what I think I learned. From my reading, it appears that color in TrueType fonts is a non-standard, vendor-specific extension to the TrueType specification, which was added to accommodate emoticons. So I guess I'm out of luck. Fortunately, It works fine on my Samsung if I can tolerate the colors.

changing Mumamo custom face settings in emacs

I am using nXhtml, flymake and the solarized color theme in emacs 23.
Everything works fine but I am not particularly happy with the colors that are being used for displaying constants in php. Bright red and doesn't go well with the solarized dark theme and flymake errors. (see attached image)!
Although I have changed the flymake errline background to underline now but still the constants look ugly on their own.
I have tried customizing Mumamo but dont quite understand what exactly to change.
Kindly help.
Thanks
I have no experience with the modes you mentioned, however, it does not seem like mumamo is the right place to go looking. That mode merely divides up a buffer in to particular mode-ed regions. I think you probably want to go after customizing solarized. I am not sure where you got that, but I found one here. Looking at that file, solarized-definitions.el, which is part of that solarized package, I see lines like this:
'((base03 "#002b36" "#042028" "#1c1c1c" "#7f7f7f")
(base02 "#073642" "#0a2832" "#262626" "#000000") ...
These do not seem to be set up to be customizable, so you may have to edit the code to change them. If you look further down in the file, you see code like this:
(font-lock-builtin-face ((t (:foreground ,green))))
(font-lock-comment-face ((t (:foreground ,base01 :slant ,italic))))
(font-lock-constant-face ((t (:foreground ,cyan))))
These are assigning the color values to particular syntactically-significant font-lock faces. This is another location where changes could be made but they are limited to the palatte of colors defined earlier.
If you have solarized coming from another place, please let us know where.

Does anyone know a light Vim scheme which makes coding more readable and pleasant?

I know a lot of nice dark schemes for Vim which makes coding more readable and pleasant such as ir_black, wombat, zenburn. Its weird but I haven't seen so many popular light themes (white background).
Does anyone knows a light Vim scheme which makes code more readable and pleasant to see?
(that makes code less confusing to distinguish, something like Visual studio's default scheme?)
With all due bias-based disclaimers and caveats (I am the author of the color scheme), I find that Mayan Smoke both highly ergonomic as well as aesthetically pleasing (screenshot). Download page: http://www.vim.org/scripts/script.php?script_id=3065.
As alternative, you should also have a look at the immensely popular Pyte, which is eerily similar to Mayan Smoke (development was independent, and the similarity is convergence, I swear!), though the syntax colors are a lot more muted.
Check out http://vimcolorschemetest.googlecode.com/svn/html/index-c.html, it has a HUGE list of colorschemes with previews.
If you do not like C samples, there are samples with other programming languages, too: http://code.google.com/p/vimcolorschemetest/
Louver is a bare-bones, light color scheme that somewhat resembles the default Visual Studio look.
Screenshot:
http://jstap.web.fc2.com/louver.html
I like Solarized for LCD monitors. It sucks on CRTs.
http://www.vim.org/scripts/script.php?script_id=3520
Screenshots at http://ethanschoonover.com/solarized
This new theme is really nice, even with GVim on Windows:
https://github.com/reedes/vim-colors-pencil
I like dark background, but changing software a lot which like IE, VS studio .... So changing from dark to light and back is so uncomfortable, so light background is also my choice, I more prefer the theme name ironman, you can find it on vim plugin page.
You should try eclipse theme.
https://github.com/vim-scripts/eclipse.vim
Interesting subject and such contradictory statements. First: according to my experience, everything with dark background is very bad for my eyes, unless I work in total darkness. But you shouldn't work in darkness anyway, just turn the lamp on.
Second: for (my) eyes feels best the backround color which I would describe "light neutral gray with slight greenish tone". BUT: especially these colors are very different from one monitor to another (with same RGB value), for example these are "guibg" colors from my two computers' schemes: guibg = #E2E2D8 on one pc and guibg = #E6EDD8 on another. Despite the colors look very similar they have different values. So honestly, there is only one way to make it "good for your eyes" - just pick some good scheme and finetune the colors, especially this background color is important imho. Also you can set several schemes with bg color adopted to outer lighting conditions. So if you see a description like "this color scheme is very good for eyes", it's sort of bulls*it, since it really depends. But I'd certainly advise to avoid any dark schemes.
As for me, readability is high and uniform contrast of all syntax elements.
https://github.com/andbar-ru/vim-unicon

Preventing Color Bleed when using Graphics.Drawstring()?

How do I prevent colors form bleeding into one another when using the vb .net Graphics.Drawstring method. This Occurs with colors that really shouldnt be used together eg green/orange and black and red.
Thanks
Sounds like you have antialiasing enabled. Have you tried to disable that?
I fixed this by generating png's instead of jpegs the quality ended up being a lot better

Resources