linux.el 627 B

12345678910111213141516171819202122
  1. ;; -*- no-byte-compile: t -*-
  2. ;; The Linux console handles Latin-1 by default.
  3. (defun terminal-init-linux ()
  4. "Terminal initialization function for linux."
  5. (unless (terminal-coding-system)
  6. (set-terminal-coding-system 'iso-latin-1))
  7. ;; It can't really display underlines.
  8. (tty-no-underline)
  9. (ignore-errors (when gpm-mouse-mode (require 't-mouse) (gpm-mouse-enable)))
  10. ;; Make Latin-1 input characters work, too.
  11. ;; Meta will continue to work, because the kernel
  12. ;; turns that into Escape.
  13. ;; The arg only matters in that it is not t or nil.
  14. (set-input-meta-mode 'iso-latin-1))
  15. ;;; linux.el ends here