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.

Revisions

  1. jams2 revised this gist Aug 28, 2020. 1 changed file with 1 addition and 5 deletions.
    6 changes: 1 addition & 5 deletions st.el
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,4 @@
    ; 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.

    (require 'term/xterm)
    (add-hook 'before-make-frame-hook
    (lambda ()
    (when (not (display-graphic-p))
    (tty-run-terminal-initialization (selected-frame) "xterm")))
    (setq term-file-aliases (cons (cons "st-256color" "rxvt") term-file-aliases))
  2. jams2 revised this gist Aug 27, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions st.el
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    ; 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.
  3. jams2 created this gist Aug 27, 2020.
    10 changes: 10 additions & 0 deletions st.el
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    ; Emacs terminal frames and st aren't great friends at the moment.
    ; 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.

    (require 'term/xterm)
    (add-hook 'before-make-frame-hook
    (lambda ()
    (when (not (display-graphic-p))
    (tty-run-terminal-initialization (selected-frame) "xterm")))