merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 21 Feb 2011 21:09:27 +0200
changeset 578 66918a26149f
parent 576 259fabfae56e (diff)
parent 577 d24848aec7d1 (current diff)
child 579 b71e74cfe817
merged
.emacs-my
--- a/.emacs-autogen.sh	Sun Feb 20 16:05:14 2011 +0200
+++ b/.emacs-autogen.sh	Mon Feb 21 21:09:27 2011 +0200
@@ -7,12 +7,16 @@
 
 cfg=$1
 
-if which aspell; then
+if command -v ispell; then
+  echo >>$cfg
+  echo "(setq-default ispell-program-name \"ispell\")" >>$cfg
+  if [ -e /etc/debian_version ]; then
+    echo "(setq-default ispell-local-dictionary \"british\")" >>$cfg
+  else
+    echo "(setq-default ispell-local-dictionary \"default\")" >>$cfg
+  fi
+elif command -v aspell; then
   echo >>$cfg
   echo "(setq-default ispell-program-name \"aspell\")" >>$cfg
   echo "(setq-default ispell-local-dictionary \"english\")" >>$cfg
-elif which ispell; then
-  echo >>$cfg
-  echo "(setq-default ispell-program-name \"ispell\")" >>$cfg
-  echo "(setq-default ispell-local-dictionary \"default\")" >>$cfg
 fi
--- a/.emacs-my	Sun Feb 20 16:05:14 2011 +0200
+++ b/.emacs-my	Mon Feb 21 21:09:27 2011 +0200
@@ -126,6 +126,11 @@
   (when (>= emacs-major-version 22) (tooltip-mode -1))
   )
 
+(when window-system
+  ;; Prefer horizontal windows splitting.
+  (setq split-height-threshold 15)
+  )
+
 (setq frame-title-format "Emacs - %b")
 
 (setq default-header-line-format nil)