Emacs linum highlighing - emacs

I've recently moved to emacs and have a pretty simple question: when I'm on an specific line, linum changes it's foreground and background color. How can I disable this? What I'm trying to disable is the yellow foreground and grey background. I just get slightly distracted with it.

You seem to have linum-relative installed, it uses the face linum-relative-current-face to highlight current line, you can customize it so that it is less distractive. Here is an example of disabling the highlight completely
(set-face-attribute 'linum-relative-current-face nil :background nil :foreground nil :weight 'normal)

Related

How to disable current line "highlighting" in emacs (doom emacs)

I just installed Doom Emacs, and I get this screen:
picture link
I'd like for this "highlighting" feature to go away.
I thought it was hl-line-mode or global-hl-line-mode, but disabling those have no effect.
Using Emacs 27.2 on macOS 10.15.7 on Doom Emacs commit 2731685 (the current head).
Doom sets up a variable to control which modes it shows hl-line
global-hl-line-modes ;; What modes to enable hl-line-mode in.
I like to use hl-line mode at times, but disliked it appearing as a default so:
(setq global-hl-line-modes nil)
It should either be a list of modes, or nil.
;; for example...
(setq global-hl-line-modes '(prog-modes markdown-mode))
But for the love of Pete... don't fix this problem with a color change uurgh!!.
Forcibly change the background color:
(custom-set-faces
'(default ((t (:background "#000000"))))
'(hl-line ((t (:background "#000000"))))
)
add this to the end of ~/.doomd.d/config.el.

default font for spacemacs only changes inside terminal

I have tried the following things:
including the following in my .spacemacs
dotspacemacs-default-font '("Fira Code"
:size 16
:weight normal
:width normal
:powerline-scale 1.1)
Doing options, set default font, save options
neither of which has actually updated my font settings. When I restart spacemacs, the font is back to the default 12pt Source Code Pro. However, when I run spacemacs -nw so that spacemacs runs inside my terminal, my font settings ARE preserved. What am I doing wrong?
My emacs version is 26.3.
Thank you!
Hack found here:
If I add
(set-face-attribute 'default nil :family "Fira Code")
(set-face-attribute 'default nil :height 160)
to my .spacemacs above the automatically generated code for setting the font, it works.

How to disable color in flyspell (emacs)?

I would like to prevent flyspell from changing the foreground color of words, and just add a red underline.
I've tried the suggestions here, but it doesn't have any effect: How to overlay a face in Emacs that ONLY modifies the underline. Perhaps I'm missunderstanding the answer, but setting inherit: undefined in the customize interface does nothing.
Guessing I should customize flyspell-duplicate and flyspell-incorrect, but how?
As suggested by #chakravarthy-raghunandan the issue was with a local customization.
Turns out the theme I'm using set this, so my customizations were overwritten.
Putting this in my init.el fixed the issue:
(custom-theme-set-faces
'cyberpunk
'(flyspell-duplicate ((t (:weight bold :underline (:color "#ff0000" :style wave)))))
'(flyspell-incorrect ((t (:weight bold :underline (:color "#ff0000" :style wave))))))

Emacs: Have a completely different background-color in ansi-term

I'm normally using a light background color in all my Emacs faces. But I'm used to dark backgrounds in a terminal. Therefore I wanted to set the background color of ansi-term to black. However when I do this only the part where text has already been written to is colored correctly, the rest of the background is still light as in other faces. I'm looking for a way to completely set the background color of ansi-term to black.
An example: http://i.stack.imgur.com/F3pra.png
Check color-theme-buffer-local. I think this is what you need.
Default face / font, unless another definition overrides it:
(set-face-attribute 'default nil :background "black" :foreground "white"
:font "Courier" :height 180)
See also: Adjusting term faces in the new Emacs 24.3
(source: lawlist.com)

Emacs Linum-mode no fringe in Cocoa

I have the issue visualized here:
The problem is the fringe is not colouring the background of my linum line numbers. I'm using Emacs 24.3.1 with Solarized color theme.
I've looked over various threads, which claims to fix this issue. However, I couldn't get any of them to work.
Any clues?
Try M-x customize-face linum and then Show All Attributes. Change the value of the Background variable and it should change. Easier than having to edit the actual theme file.
(set-face-attribute 'fringe nil :background "white" :foreground "white")
Set the fringe color to whatever you want.