0

I am using dracula-theme. Only change I did is adding following line under (faces ':

(faces '(;; default / basic faces
    (region :background ,dracula-yellow :foreground ,dracula-black :extend t)

Normal color:

enter image description here

When I highlight a region, bolded text's color becomes slightly gray instead of black, but unbolded text is black.

enter image description here

Would it be possible to for to make color of bolded text to black when its highlighted?

7
  • Do you see the problem with emacs -Q? If not, bisect your init file to find the culprit.
    – Drew
    Commented Apr 1, 2022 at 17:11
  • I just have (add-to-list 'load-path "~/.emacs.d/themes"); (load "dracula-theme.el") in my init file. But starting it using emacs -nw or emacs -q -nw -l init.el differs from each other
    – alper
    Commented Apr 1, 2022 at 20:07
  • If don't see the problem with emacs -Q then something in your init file is the culprit. That's the bottom line.
    – Drew
    Commented Apr 1, 2022 at 20:33
  • In emacs -Q I see the same problem. You should see something like this gist.github.com/avatar-lavventura/… , where bold string is gray on the highlighted region.
    – alper
    Commented Apr 1, 2022 at 21:38
  • So it's not from your init file (e.g. loading some theme). In that case, consider filing a bug report / enhancement request, using M-x report-emacs-bug.
    – Drew
    Commented Apr 2, 2022 at 15:45

1 Answer 1

0

Its a small hack but helped, I change the font color from black to darkblue for the region. Colors slightly improved and become sharper.

(custom-set-variables
    (region ((t (:extend t :background "#f1fa8c" :foreground "darkblue")))))

Example output:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.