From: Mark Wooding Date: Tue, 1 Aug 2017 13:48:43 +0000 (+0100) Subject: dot/emacs: Hack around Emacs and screen terminal naming conventions. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/eb10e77ab697e512f1bb16326ecf9005cd0ec98e?ds=sidebyside dot/emacs: Hack around Emacs and screen terminal naming conventions. --- diff --git a/dot/emacs b/dot/emacs index 93e54f8..3dc860a 100644 --- a/dot/emacs +++ b/dot/emacs @@ -279,6 +279,15 @@ (apply #'set-input-mode (nconc (list (nth 0 im) (nth 1 im) 0) (nthcdr 3 im))))) +;; Some unpleasant terminal hackery. Screen prefixes the current terminal +;; name with `screen.', and Emacs is too dim to split the name at the `.'. +;; Help it out. + +(defun terminal-init-screen.xterm () + (tty-run-terminal-initialization (selected-frame) "screen")) +(defun terminal-init-screen.putty () + (tty-run-terminal-initialization (selected-frame) "screen")) + ;; Don't disable any commands. (mapatoms #'(lambda (sym) (put sym 'disabled nil)))