开发者

How do i change the color of the font for the current directory in M-x term?

开发者 https://www.devze.com 2022-12-09 21:58 出处:网络
Normally when i need to change the color of a certain element in ema开发者_开发百科cs, i would do a M-x describe-face which will eventually bring up a customize buffer to change it. In the emacs term,

Normally when i need to change the color of a certain element in ema开发者_开发百科cs, i would do a M-x describe-face which will eventually bring up a customize buffer to change it. In the emacs term, It seems like i dont have the ability to enter the minibuffer to input that command. How do I figure out which variable to change?

Heres a picture, to make things a bit more clear:

http://imgur.com/jXHNC.png


Are you talking about the term you get to by doing M-x term? If so, you're probably not doing C-c C-j to enter line-run mode before you try to do M-x describe-face.


I would bet that the color is being set by the shell, and not by emacs (which then considers it to be displayed in the default face). If you're using bash, the prompt is controlled using the environment variable PS1, so try export PS1="\u@\h$ " to change the prompt to "username@host $ " with no coloring. If the change takes effect you can google for shell prompt color and find plenty of tutorials about what can be set, or doing the same for a different shell.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号