]> err.no Git - dotfiles/commitdiff
random updates
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Tue, 28 Jun 2005 18:38:26 +0000 (18:38 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Tue, 28 Jun 2005 18:38:26 +0000 (18:38 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@792 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

emacs

diff --git a/emacs b/emacs
index fc1b267e7851f5a6ffc57510c54df89426915059..fa6aa1c1ba58847ce63160aa96683fba9131c4dc 100644 (file)
--- a/emacs
+++ b/emacs
 (auto-compression-mode t)
 
 (cw/for-emacs
- (set-language-environment "Latin-1")
+ (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 'latin-1)))
+     (set-keyboard-coding-system 'utf-8)))
 
 ;(prefer-coding-system "utf-8")
 
        (setq scrollbars-visible-p nil))))
 
 (setq scroll-bar-mode nil)
-(set-default-font "fixed")
+(set-default-font "fixed")
 
 ;      show-paren-style 'expression)
 
  (setq mmm-global-mode 'maybe)
  (set-face-background 'mmm-default-submode-face "White"))
 
-(set-face-foreground font-lock-string-face "Blue")
+(cw/requiring-package
+    (font-lock)
+  (set-face-foreground (find-face font-lock-string-face) "Blue"))
 
 (cw/requiring-package (tramp)
   (setq tramp-auto-save-directory "/home/tfheen/tmp"
 ;;                             tramp-file-name-structure '("\\`/r:\\(\\([a-zA-Z0-9]+\\)/\\)?\\(\\([-a-zA-Z0-9_#/:]+\\)@\\)?\\([-a-zA-Z0-9_#/:@.]+\\):\\(.*\\)\\'" 2 4 5 6)))
 
 
-(cw/for-emacs-21
+(cw/for-emacs-21-and-later
  (blink-cursor-mode 0)
  (if window-system
      (tooltip-mode 0))
 
 ; Mode line
 (display-time)
-(display-battery)
+
+;(cw/for-emacs-21
+; (display-battery))
+;(cw/for-emacs-22
+; (display-battery-mode))
 (setq display-time-format "%H:%M"
       display-time-string-forms '(24-hours ":" minutes))
 
 (setq show-trailing-whitespace t)
 (setq-default indent-tabs-mode nil)
-(cw/for-emacs-21
+(cw/for-emacs-21-and-later
  (define-coding-system-alias 'iso885915 'iso-8859-15)
  (if (not window-system)
      (define-coding-system-alias 'iso-8859-15 'iso-8859-1)))