equal
deleted
inserted
replaced
51 |
51 |
52 print_ispell() { |
52 print_ispell() { |
53 echo '(setq-default ispell-program-name "ispell")' |
53 echo '(setq-default ispell-program-name "ispell")' |
54 case $host_distro in |
54 case $host_distro in |
55 debian) |
55 debian) |
56 echo '(setq-default ispell-local-dictionary "british")' |
56 echo '(setq-default ispell-local-dictionary "american")' |
57 ;; |
57 ;; |
58 unknown) |
58 unknown) |
59 echo '(setq-default ispell-local-dictionary "default")' |
59 echo '(setq-default ispell-local-dictionary "default")' |
60 ;; |
60 ;; |
61 esac |
61 esac |
62 } |
62 } |
63 |
63 |
64 print_aspell() { |
64 print_aspell() { |
65 echo '(setq-default ispell-program-name "aspell")' |
65 echo '(setq-default ispell-program-name "aspell")' |
66 echo '(setq-default ispell-local-dictionary "en")' |
66 echo '(setq-default ispell-local-dictionary "en_US")' |
67 } |
67 } |
68 |
68 |
69 print_speller() { |
69 print_speller() { |
70 print_header |
70 print_header |
71 check_ispell |
71 check_ispell |
72 ispell_present=$? |
72 ispell_present=$? |
73 check_aspell |
73 check_aspell |
74 aspell_present=$? |
74 aspell_present=$? |
75 case $host_os in |
75 case $host_os in |
76 windows) |
76 windows|linux) |
77 case $host_distro in |
77 if [ $aspell_present = 0 ]; then |
78 cygwin) |
78 print_aspell |
79 if [ $aspell_present = 0 ]; then |
79 elif [ $ispell_present = 0 ]; then |
80 print_aspell |
80 print_ispell |
81 elif [ $ispell_present = 0 ]; then |
81 fi |
82 print_ispell |
|
83 fi |
|
84 ;; |
|
85 esac |
|
86 ;; |
|
87 linux) |
|
88 case $host_distro in |
|
89 debian) |
|
90 if [ $ispell_present = 0 ]; then |
|
91 print_ispell |
|
92 elif [ $aspell_present = 0 ]; then |
|
93 print_aspell |
|
94 fi |
|
95 ;; |
|
96 esac |
|
97 ;; |
82 ;; |
98 darwin) |
83 darwin) |
99 print_aspell |
84 print_aspell |
100 ;; |
85 ;; |
101 *) |
86 *) |