TransWikia.com

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

Emacs Asked by alper on January 6, 2021

In shell-mode; alias keyword is not recognized as font-lock-builtin-face type and remain as white color (with the current theme I am using it should be in different color)

=> Is it possible to add alias keyword into font-lock-builtin-face class?


This issue occurs in Ubuntu machine; with the same configuration it does not occur in a mac machine.

One Answer

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)))

Correct answer by Muihlinn on January 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP