.emacs-autogen.sh
changeset 694 9c9c558e8a92
parent 693 0462d1dcbe75
child 696 8b1976f24f56
equal deleted inserted replaced
693:0462d1dcbe75 694:9c9c558e8a92
    32       host_os=unknown
    32       host_os=unknown
    33       ;;
    33       ;;
    34   esac
    34   esac
    35 }
    35 }
    36 
    36 
       
    37 print_header() {
       
    38   echo
       
    39   echo ';; ================================================================'
       
    40   echo ";; ${FUNCNAME[1]}."
       
    41   echo
       
    42 }
       
    43 
    37 check_ispell() {
    44 check_ispell() {
    38   command -v ispell >/dev/null && return 0 || return 1
    45   command -v ispell >/dev/null && return 0 || return 1
    39 }
    46 }
    40 
    47 
    41 check_aspell() {
    48 check_aspell() {
    57 print_aspell() {
    64 print_aspell() {
    58   echo '(setq-default ispell-program-name "aspell")'
    65   echo '(setq-default ispell-program-name "aspell")'
    59   echo '(setq-default ispell-local-dictionary "en")'
    66   echo '(setq-default ispell-local-dictionary "en")'
    60 }
    67 }
    61 
    68 
    62 check_speller() {
    69 print_speller() {
    63   echo
    70   print_header
    64   echo ';; ================================================================'
       
    65   echo ';; Speller settings (check_speller).'
       
    66   echo
       
    67   check_ispell
    71   check_ispell
    68   ispell_present=$?
    72   ispell_present=$?
    69   check_aspell
    73   check_aspell
    70   aspell_present=$?
    74   aspell_present=$?
    71   case $host_os in
    75   case $host_os in
   114 ;;
   118 ;;
   115 ;; For load order see README.
   119 ;; For load order see README.
   116 " >$cfg
   120 " >$cfg
   117 
   121 
   118 check_platform
   122 check_platform
   119 check_speller >>$cfg
       
   120 print_speller >>$cfg
   123 print_speller >>$cfg
       
   124 print_man >>$cfg
   121 
   125