]> err.no Git - dotfiles/commitdiff
better handling of terminal environments
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Fri, 28 Jul 2006 08:08:42 +0000 (08:08 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Fri, 28 Jul 2006 08:08:42 +0000 (08:08 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@945 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

emacs

diff --git a/emacs b/emacs
index d6f7ed194a54c733300173063ac07666cd3a57a2..205ba669d23c485716cab640831381ecaacca4b0 100644 (file)
--- a/emacs
+++ b/emacs
  (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")