Commit | Line | Data |
---|---|---|
0a10297a | 1 | ;; -*- no-byte-compile: t -*- |
57cf80bf RS |
2 | ;; The Linux console handles Latin-1 by default. |
3 | ||
4f0c9ba7 DN |
4 | (defun terminal-init-linux () |
5 | "Terminal initialization function for linux." | |
6 | (unless (terminal-coding-system) | |
7 | (set-terminal-coding-system 'iso-latin-1)) | |
952e6ec2 | 8 | |
4f0c9ba7 DN |
9 | ;; It can't really display underlines. |
10 | (tty-no-underline) | |
f1487cc5 | 11 | |
4f0c9ba7 DN |
12 | ;; Make Latin-1 input characters work, too. |
13 | ;; Meta will continue to work, because the kernel | |
14 | ;; turns that into Escape. | |
952e6ec2 | 15 | |
4f0c9ba7 DN |
16 | (let ((value (current-input-mode))) |
17 | ;; The third arg only matters in that it is not t or nil. | |
18 | (set-input-mode (nth 0 value) (nth 1 value) 'iso-latin-1 (nth 3 value)))) | |
60370d40 | 19 | |
ab5796a9 | 20 | ;;; arch-tag: 5d0c4f63-739b-4862-abf3-041fe42adb8f |
60370d40 | 21 | ;;; linux.el ends here |