X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/blobdiff_plain/6a2d05aef7b3ab539f1ec2cb0906324d918d6a51..eb10e77ab697e512f1bb16326ecf9005cd0ec98e:/dot/emacs 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)))