1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#! /bin/sh
### wnn7egg Setup Script
### (c) Copyright OMRON SOFTWARE Co., Ltd. 2001
###
LINE1="(if (featurep 'xemacs)"
LINE2=" (setq load-path (append '(\"/usr/share/wnn7/elisp/xemacs21\") load-path))"
LINE3=" (setq load-path (append '(\"/usr/share/wnn7/elisp/emacs20\") load-path)))"
LINE4="(global-set-key \"\C-\\\\\" 'toggle-input-method)"
LINE5="(load \"wnn7egg-leim\")"
LINE6="(if (featurep 'xemacs)"
LINE7=" (select-input-method \"japanese-egg-wnn7\")"
LINE8=" (set-input-method \"japanese-egg-wnn7\"))"
LINE9="(set-language-info \"Japanese\" 'input-method \"japanese-egg-wnn7\")"
FILE1="$HOME/.emacs.el"
FILE2="$HOME/.emacs"
if [ -f $FILE1 ]; then
FILE=$FILE1
else
FILE=$FILE2
fi
echo
echo "$FILE €Ë wnn7egg €Îµ¯Æ°ÀßÄê€òŒ«Æ°ÄɲÀ·€Þ€¹¡£"
echo "œñ€¹þ€Þ€ì€ëÆâÍƀϰʲŒ€ÎÄÌ€ê€Ç€¹¡£"
echo "-----------------------------------------------------------------------------"
echo $LINE1
echo $LINE2
echo $LINE3
echo $LINE4
echo $LINE5
echo $LINE6
echo $LINE7
echo $LINE8
echo $LINE9
echo "-----------------------------------------------------------------------------"
#echo "€è€í€·€€€Ç€¹€«¡© (y/n)"
#read ans
#if [ "$ans" = "y" -o "$ans" = "Y" ]; then
echo ";;; auto defined with Setup_wnn7egg script ------------------" >> $FILE
echo $LINE1 >> $FILE
echo $LINE2 >> $FILE
echo $LINE3 >> $FILE
echo $LINE4 >> $FILE
echo $LINE5 >> $FILE
echo $LINE6 >> $FILE
echo $LINE7 >> $FILE
echo $LINE8 >> $FILE
echo $LINE9 >> $FILE
echo
echo "Ž°Î»€·€Þ€·€¿¡£"
echo "wnn7egg €Î»ÈÍÑÊýË¡¡¢²òÀâ€Ë€Ä€€Þ€·€Æ€Ï¡¢/usr/share/wnn7/elisp/README "
echo "€ò€ªÆɀ߲Œ€µ€€¡£"
#fi
|