Skip to content

Instantly share code, notes, and snippets.

@jams2
Last active August 28, 2020 19:08
Show Gist options
  • Save jams2/a3cb5454add824bb7403c1b71869ec2b to your computer and use it in GitHub Desktop.
Save jams2/a3cb5454add824bb7403c1b71869ec2b to your computer and use it in GitHub Desktop.
Getting terminal Emacs to play nice with suckless st
; Emacs terminal frames and st aren't great friends at the moment.
; No support for 256 colours.
; Setting TERM=xterm-256color before invoking emacs (or emacsclient) causes a startup delay.
; It looks like there's a fix in the works for Emacs 28:
; https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00236.html
; But for now, you can handle it by putting something like the following in your init file.
(setq term-file-aliases (cons (cons "st-256color" "rxvt") term-file-aliases))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment