From: tfheen Date: Fri, 28 Jul 2006 08:08:42 +0000 (+0000) Subject: better handling of terminal environments X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=236f94b88d163baaaed95d093237693bc70cd053;p=dotfiles better handling of terminal environments git-svn-id: file:///svn/tfheen/trunk/dotfiles@945 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/emacs b/emacs index d6f7ed1..205ba66 100644 --- a/emacs +++ b/emacs @@ -26,11 +26,13 @@ (if (string-match "[Uu][Tt][Ff]-?8" (or (getenv "LC_ALL") (getenv "LANG") (format ""))) - (set-language-environment "UTF-8") ; UTF-8 mode - (set-language-environment "Latin-1")) - - (if (not window-system) - (set-keyboard-coding-system 'utf-8))) + (progn + (set-language-environment "UTF-8") ; UTF-8 mode + (if (not window-system) + (progn + (set-keyboard-coding-system 'utf-8) + (set-terminal-coding-system 'utf-8)))) + (set-language-environment "Latin-1"))) ;(prefer-coding-system "utf-8")