;; Copyright 1992 NEC Corporation, Tokyo, Japan.
;;
;; Permission to use, copy, modify, distribute and sell this software
;; and its documentation for any purpose is hereby granted without
;; fee, provided that the above copyright notice appear in all copies
;; and that both that copyright notice and this permission notice
;; appear in supporting documentation, and that the name of NEC
;; Corporation not be used in advertising or publicity pertaining to
;; distribution of the software without specific, written prior
;; permission.  NEC Corporation makes no representations about the
;; suitability of this software for any purpose.  It is provided "as
;; is" without express or implied warranty.
;;
;; NEC CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
;; INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN 
;; NO EVENT SHALL NEC CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
;; CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF 
;; USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 
;; OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 
;; PERFORMANCE OF THIS SOFTWARE. 

;;  $Id: unix.canna,v 1.4 1996/10/25 05:23:02 kon Exp $

;; ֤ѴѤ뤫

(setq use-symbolic-definition t)

;;; ޻Ѵ
;
; ޻Ѵơ֥ꤷޤ޻Ѵơ֥
; (1) ȥǥ쥯ȥ
; (2) ۡǥ쥯ȥ
; (3) /usr/lib/canna/dic
; ν˥ޤ
;

;(setq romkana-table "unix.cbp")
(setq romkana-table "default.cbp")

;; Ѵ
;(setq english-table "canna/english.cbp")


;;; Ѥ뼭
;
; ñ˽¤٤ƤΤñϿԤʤǥƥ༭ʤɤ
; ޤ
;
; 󼭽˴ؤƤ :bushu ԤƵҤޤ
;
; ñϿ򤷤˴ؤƤ :user ԤƵҤޤñ
; Ͽ򤹤뼭ϥƥȷǤʤФʤޤñϿ
;  mkdic user ͤʥޥɤǤĤȤǤǴñ˺뤳Ȥ
; ޤ
;
(use-dictionary
 "gcanna"
 "gcannaf"
 "chimei"
; "iroha"
 "fuzokugo"
 "hojomwd"
 "hojoswd"
 "software"
 "keishiki"
 "zipcode"
 "geo"
; "zip99"
 "basho"
 "keisan"
 "pub"
 "scien"
 "sup"
 "bonobo"
 :bushu "bushu"
 :user  "user"
 )

;;; ޤޤʥѥ᥿
;
; ͤꤹΤˤĤƤϿˤĤƤ t ˤĤƤ nil 
; ꤷޤ

; ֱǱ˹ԤȤȺüˤ褦ˤ뤫
(setq cursor-wrap          t)	; default t

; ɽǿǤäȤ˥ưα(nil)ޤǤ
; ޤ(t)
(setq select-direct        t)	; default t

; ɽǿ򤹤뤫(t)nilλϿɽޤ
(setq numerical-key-select t)	; default t

; ɽʸζڤ˶򤤤뤫
(setq bunsetsu-kugiri nil)      ; default nil

; ʸ١ΰư򤹤뤫(t) nilλϥ޻Ѵñ̤ǥ
; ưԤޤ
(setq character-based-move t)	; default t

; ɤΤС뤫
(setq reverse-widely       nil)	; default nil

; ٳؽ򤹤뤫
(setq gakushu              t)	; default t

; κǸޤǤäöɽ뤫
(setq quit-if-end-of-ichiran nil); default nil

; ʸαüǱư򤹤ΤꤷƤޤ
(setq kakutei-if-end-of-bunsetsu nil) ; default nil

; ƱʸˤȤɤޤ뤫(t)nilλϰԤȤҤȤ
; ʸ˰ưޤ
(setq stay-after-validate  t)	; default t

; ɤߤ˥ХåڡǤĤȥ޻ޤǥХХˤ뤫
(setq break-into-roman     t)	; default nil

; ѴǰɽԤѴǤ
; ɽˤϰܤޤ󡣤ξˤ C-w Ϥưɽ
; 
(setq n-henkan-for-ichiran 2)	; default 2

; ñϿʸˡϢμ򤹤뤫(t)nilλŬʻդƤ
; ޤޤ
(setq gramatical-question  t)	; default t

; 䤬Τβܤɽ뤫
(setq kouho-count t)            ; default t

; ༡Ѵ򤹤뤫
(setq auto nil)                 ; default nil

; ༡Ѵ򤹤˲ĤʸޤǤ̤ݻ뤫
(setq n-kouho-bunsetsu 16)      ; default 16

; ޻Ѵǥ꡼ʥ޻ΤƤ뤫
(setq abandon-illegal-phonogram nil)              ; default nil

; λ⼡Ϥǧ뤫
(setq allow-next-input 		 t)	; default t

; ʸ٥Υ޻Ѵơ֥
(if use-symbolic-definition
    (progn
      (defsymbol ?-  "" "-" "" "")
      (defsymbol ?/  "/"  ""  "")
      (defsymbol ?\\ "\\" ""  "")
      (defsymbol
	?( "(" "" ""
	?) ")" "" "" )
      (defsymbol 
	?[ "" "" "" "" "["
	?] "" "" "" "" "]")
      (defsymbol 
	?. "" "" "."
	?, "" "" "," )
      (defsymbol
	?0 "0" "" "" ""
	?1 "1" "" "" ""
	?2 "2" "" "" ""
	?3 "3" "" "" ""
	?4 "4" "" "" ""
	?5 "5" "" "" ""
	?6 "6" "" "ϻ" "ϻ"
	?7 "7" "" "" ""
	?8 "8" "" "Ȭ" "Ȭ"
	?9 "9" "" "" "" )
      (defsymbol
	?? "?" ""
	?! "!" "")
      (defsymbol ?# "#" "")
      (defsymbol ?$ "$" "")
      (defsymbol ?% "%" "")
      (defsymbol ?& "&" "")
      (defsymbol ?+ "+" "")
      (defsymbol ?* "*" "" "")
      (defsymbol ?_ "_" "")
      (defsymbol ?' "'" "")
      (defsymbol ?` "`" "")
      (defsymbol ?\" "\"" "")
      ))

;; delete ХåڡƱ򤵤
(global-set-key "\Delete" 'delete-previous) ; necessary in using Emacs

;; Help ʤͤ⤤Τ F1 ǤƱư򤵤롣
(global-set-key "\F1" 'extend-mode)

;; Ctrl-o 
(global-unbind-key-function 'japanese-mode)
