Add '-a' option to Man-switches.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 07 Sep 2011 14:10:42 +0300
changeset 693 0462d1dcbe75
parent 692 6e566f6c7386
child 694 9c9c558e8a92
Add '-a' option to Man-switches.
.emacs-autogen.sh
--- a/.emacs-autogen.sh	Mon Sep 05 11:31:35 2011 +0300
+++ b/.emacs-autogen.sh	Wed Sep 07 14:10:42 2011 +0300
@@ -100,6 +100,15 @@
   esac
 }
 
+print_man() {
+  print_header
+  if man -a man >/dev/null 2>&1; then
+    echo '(setq Man-switches "-a")'
+  else
+    echo '(setq Man-switches "")'
+  fi
+}
+
 # Remove old auto-generated config and fill it by standard header.
 echo ";; -*- mode: emacs-lisp; coding: utf-8; fill-column: 78 -*-
 ;;
@@ -108,3 +117,5 @@
 
 check_platform
 check_speller >>$cfg
+print_speller >>$cfg
+