Emacs Python-mode syntax highlighting

后端 未结 3 1231
臣服心动
臣服心动 2021-02-09 10:14

I have GNU Emacs 23 (package emacs23) installed on an Ubuntu 10.04 desktop machine and package emacs23-nox installed on an Ubuntu 10.04 headless server

3条回答
  •  独厮守ぢ
    2021-02-09 10:42

    For me running emacs -nw from inside byobu with TERM=xterm produced the correct colours for syntax highlighting (the comments in python and bash are all red not just the #) and the function keys work. Note I set TERM as part of an alias for running emacs rather than setting it generally in .bashrc:

    alias emacs='TERM=xterm; emacs -nw'

    See also this post: Terminal emacs colors only work with TERM=xterm-256color

提交回复
热议问题