4 votes
Accepted

How to define different font-lock-variable-name-face respect to different modes

My previous answer in this forum to a similar thread did not include an example using a major-mode hook How to modify-face for a specific buffer? , so I chose to write up this new answer. The function ...
lawlist's user avatar
  • 19.1k
2 votes
Accepted

Color settings with helm

First, instead of the code you're using to customize face helm-selection, just use M-x customize-face, and save your changes. Using Customize is nearly always a better idea. To your question: Put ...
Drew's user avatar
  • 77.5k
2 votes
Accepted

Lisp Mode Documentation Syntax color change?

(This applies to Emacs generally. Dunno whether Doom overrides something and requires you to customize faces differently.) Put your cursor on the doc string, and use C-u C-x =. That will show you the *...
Drew's user avatar
  • 77.5k
2 votes

Disable Fontification in Org-Mode while Keeping Color Highlighting

I found a temporary measure, which is not perfect but very close to what I wanted. Though this may be something obvious to experienced users, still I am sharing this for beginners like me: (setq org-...
bman25's user avatar
  • 43
2 votes
Accepted

custom-set-faces not working for client

Add (add-hook 'emacs-startup-hook (lambda () (custom-set-faces "Put your original “(custom-set-faces ...)” here!"))) to your configuration. I guess the ...
shynur's user avatar
  • 5,288
2 votes

Dired+ : Not change foreground color of compress files

Put your cursor on a colored character and use C-x =. Near the bottom of buffer *Help* you'll see the faces used for that character. Use M-x customize-face to customize any face. Save your changes (in ...
Drew's user avatar
  • 77.5k
2 votes
Accepted

shell-mode how to color only keywords

font-lock-add-keywords takes a list of regular expressions, not merely strings. You can use the regular expression syntax to match more complicated constructs. In particular, you can match word ...
db48x's user avatar
  • 18k
2 votes
Accepted

emacs 28.0.50 `sh-quoted-exec` has different coloring for `sh` and `bash`

You can manually toggle which features Emacs will apply to your file via M-x sh-set-shell: pick /bin/sh to get the variant you prefer. You can set this automatically for a file by adding the following ...
Tyler's user avatar
  • 22.3k
2 votes
Accepted

shell-mode `alias` keyword is not recognized as font-lock-builtin-face type

Adding this to your config should work the way you want, which BTW is the normal way to add font-lock keywords. (font-lock-add-keywords 'shell-mode '(("alias" . font-lock-builtin-face)))
Muihlinn's user avatar
  • 2,624
1 vote
Accepted

Changing some attributes of face `mode-line`

If you want to change the appearance of face mode-line for your personal use, and for future Emacs sessions, then use Customize - in this case, customize-face. If you want to change its appearance ...
Drew's user avatar
  • 77.5k
1 vote

Incompatible faces error

This answer on this reddit post seems to work. (when (featurep 'magit) (set-face-attribute 'ediff-current-diff-A nil :inherit 'magit-diff-removed-highlight) (set-face-attribute 'ediff-current-diff-...
Todd's user avatar
  • 211
1 vote
Accepted

Make Emacs 28 tab-line-tab-modified styling sensitive to whether tab is active or not

Instead of overriding background and foreground in tab-line-tab-modified you could just disable inheritance of these face attributes by using something like: (set-face-attribute 'tab-line-tab-modified ...
link0ff's user avatar
  • 1,186
1 vote
Accepted

Disable Fontification in Org-Mode while Keeping Color Highlighting

Font-lock isn't your problem, if you want to keep having it color text. If you just want to change the appearance font-lock gives you for some particular faces, e.g., by removing their boldness or ...
Drew's user avatar
  • 77.5k
1 vote
Accepted

Change background colour of the mode line in window

Customize face mode-line-inactive: M-x customize-face
Drew's user avatar
  • 77.5k
1 vote
Accepted

How can I disable font-latex-math-face?

There is no built-in way to enable font lock inside a math environment, but you can prevent AUCTeX from recognizing the dollar as a math delimiter replacing the definition of font-latex-match-dollar-...
matteol's user avatar
  • 1,998
1 vote

Occur mode face for buffer names

You can change list-matching-lines-buffer-name-face to the face what your want. (defface blue-underline '((t :foreground "blue" :underline t)) "blue-underline face.") (setq ...
Tianshu Wang's user avatar
  • 1,764
1 vote

How to remove gray color in Dired mode?

Put your cursor on a char with that gray foreground, and use C-u C-x =. The *Help* tells you (near the bottom) what face(s) are used there. Then use M-x customize-face to customize the face(s) to be ...
Drew's user avatar
  • 77.5k
1 vote

How to customize the rendering of the straight lines in mode line?

Following @lawlist advise, using :box attribute for mode-line-inactive made it. The mode lines images shown in the question are from inactive frames. The second image shows an inactive frame with a ...
nephewtom's user avatar
  • 2,261
1 vote

Font Size (Face Attributes, Height) in Org Mode's Column View

The culprit is Material theme. I like it, but it interferes with font size in Org's column view.
Pablo A Perez-Fernandez's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible