merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 20 Feb 2011 21:11:26 +0200
changeset 576 259fabfae56e
parent 572 ead98b9f85c3 (current diff)
parent 575 d2730823e23f (diff)
child 578 66918a26149f
merged
.emacs-my
--- a/.emacs-autogen.sh	Wed Feb 09 15:20:49 2011 +0200
+++ b/.emacs-autogen.sh	Sun Feb 20 21:11:26 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	Wed Feb 09 15:20:49 2011 +0200
+++ b/.emacs-my	Sun Feb 20 21:11:26 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)