I recently switched from rxvt-unicode to st. This means I went from $TERM=rxvt-unicode-256color
to $TERM=st-256color
.
I'm happy with the switch and want to continue to use st
. However, I quickly noticed that emacs was not rendering my colors appropriately. After some googling, I found this question. Following mndrix's advice, I added
(add-to-list 'term-file-aliases
'("st-256color" . "xterm-256color"))
to my .emacs
. This solved the problem. However, my start time is now really slow.
Now I'm wondering if there is another solution. On my system, the directory /usr/share/emacs/26.2/lisp/term
has some el.gz
and elc
files corresponding to different terminals. For instance, this directory has xterm.el.gz
and xterm.elc
in it. I'm guessing that the fundamental issue is that this directory does not have st.el.gz
and st.elc
. Is it possible to add this support? If so, how might one go about this configuration?
env TERM=xterm-256color emacs
is just as slow? What about withemacs -Q
instead ofemacs
?st.el
library should behave any differently), it's probably best to remove that context from the question as, despite your efforts, it did seem rather like an XY question. It's probably also more a feature-request to submit withM-x report-emacs-bug
.