;;
;; -*-emacs-lisp-*-
;;
;;
;;	$Revision: 1.1 $
;;	$Date: 1998/04/02 10:03:29 $
;;

;; load path
;(if (boundp 'MULE)
;    ; Lisp $B%i%$%V%i%j$N(B load path $B$K(B "~/lib/mule/lisp" $B$rDI2C$7$^$9(B
;    (setq load-path (cons (expand-file-name "~/lib/mule/lisp")
;			  load-path))

; $B%G%#%9%W%l%$$KI=<($9$k$H$-$NJ8;z%3!<%I$rF|K\8l(B EUC $B$K$7$^$9(B
(cond ((boundp 'NEMACS) (setq kanji-display-code 3))
      ((boundp 'MULE)
       (set-display-coding-system *euc-japan*)))

; $B?7%P%C%U%!:n@.;~$N%U%!%$%kJ8;z%3!<%I$r(B *euc-japan* $B$K$7$^$9!#(B
(if (boundp 'MULE)
    (set-default-file-coding-system *euc-japan*))

; MH $B$N%W%m%0%i%`$H$d$j$H$j$9$k$H$-$NJ8;z%3!<%I$r(B JIS $B$K;XDj$7$^$9!#(B
(if (boundp 'MULE)
    (progn
      (define-program-coding-system nil ".*scan.*" (cons *junet* *junet*))
      (define-program-coding-system nil ".*inc.*" (cons *junet* *junet*))))
(if (boundp 'NEMACS)
    (progn
      (define-program-kanji-code nil ".*scan.*" 2)
      (define-program-kanji-code nil ".*inc.*" 2)))

; Text $B%b!<%I$K$9$k$H$-!">o$K(B auto-fill-mode $B$K$7$^$9!#(B
;(setq text-mode-hook
;      '(lambda () (auto-fill-mode 1)))

; mail-mode $B$K$7$?$H$-$K!"%U%!%$%kJ8;z%3!<%I$r(B JIS $B$K%;%C%H$9$k$h$&$K$7(B
; $B$^$9!#(B
(setq mail-mode-hook
      '(lambda ()
 	 (setq kanji-fileio-code 2)  ; for Nemacs
  	 (if (boundp 'MULE)
    	     (set-file-coding-system *junet*))))

; $B%,!<%Y!<%8%3%l%/%7%g%s$r$*$3$j$K$/$/$9$k(B
(setq gc-cons-threshold 200000)

; $B%F%-%9%H$K?'$rIU$1$k(B
(cond (window-system
       (setq hilit-mode-enable-list
	     '(not text-mode)
	     hilit-background-mode    'light
	     hilit-inhibit-hooks      nil
	     hilit-inhibit-rebinding  nil)
       (require 'hilit19)
       ))
	     
; BS (C-h)$B%-!<$H(B DEL $B%-!<$rF~$l$+$($^$9(B
(cond ( (not window-system)
       (load-library "term/bobcat")
))

; $B%+!<%=%k$N0LCV$,2?9TL\$+I=<((B
(line-number-mode 1)

; $B%a%K%e!<%P!<$r>C$9(B
;(menu-bar-mode 0)
; $B%9%k%m!<%k%P!<$NI=<($r>C$9(B
;(scroll-bar-mode 0)
;  File $B%a%K%e!<$K$"$k(B rmail $B$r(B mh-rmail $B$KCV$-49$($k(B
(substitute-key-definition 'rmail 'mh-rmail menu-bar-file-menu)

;; AUC TeX
(require 'tex-site)

;; Wnn $B$N(B $BIQEY%U%!%$%k$H8D?M<-=q$N(B directory
;
;  $B<+J,$N%*!<%J!<$G=q$-9~$_$r$9$k(B
(defvar wnn-usr-dic-dir "!$HOME/dic/wnn")

;; MIME $BBP1~(B
(load "mime-setup")

;; display time
(display-time)

;; Mew 
;
; Add the following in your "~/.emacs"
;   Draft-Folder: drafts
;
; Execute the following command
;   mkdir ~/Mail/drafts
;   chmod 700 ~/Mail/drafts
;
(setq exec-path (cons "/usr/local/bin" exec-path))
(autoload 'mew "mew" nil t)
(autoload 'mew-send "mew" nil t)
(setq mew-mail-domain-list '("u-aizu.ac.jp"))
(setq mew-fcc "+Backup")
;;;;;;;;;;;;;;;;;; end ;;;;;;;;;;;;;;;;;;;;;;
