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.

1 Answer 1


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

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.