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 emacsis just as slow? What about withemacs -Qinstead ofemacs? – phils Apr 26 '19 at 00:27st.ellibrary 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. – phils Apr 26 '19 at 00:31/lisp/termdirectory. – Brian Fitzpatrick Apr 26 '19 at 00:48xterm.eland the slowness underst, you could always rephrase the question slightly to emphasise that the actual question truly is directly relevant to the observed problem. – phils Apr 26 '19 at 00:58