.emacs-my
changeset 102 25585e240b4a
parent 101 5b5afd97d6f8
child 104 e921a5d906ca
child 106 0591d06cf752
--- a/.emacs-my	Tue Dec 09 09:06:11 2008 +0200
+++ b/.emacs-my	Tue Dec 09 17:07:30 2008 +0200
@@ -83,6 +83,8 @@
 (setq column-number-mode t)
 (setq line-number-mode t)
 
+(setq view-read-only t)
+
 ;; ----------------------------------------------------------------------
 ;; Switching, creating, selecting buffers.
 (iswitchb-mode 1)
@@ -106,7 +108,6 @@
 ;; ----------------------------------------------------------------------
 ;; *Text*
 (setq default-major-mode 'text-mode)
-(add-hook 'text-mode-hook 'turn-on-auto-fill)
 
 ;; ----------------------------------------------------------------------
 ;; syntax highlighting
@@ -124,7 +125,7 @@
 (pc-selection-mode)
 
 ;; ----------------------------------------------------------------------
-;; Line
+;; line
 (if window-system
     (progn
       (global-hl-line-mode t)
@@ -133,7 +134,7 @@
   )
 
 ;; ----------------------------------------------------------------------
-;; Paren
+;; paren, brace
 
 (show-paren-mode 1) ; Parenthesis matching via highlighting.
 ;; (setq show-paren-style 'expression) ; выделять все выражение в скобках
@@ -371,10 +372,14 @@
 ;; ======================================================================
 ;; *auto-fill*
 
-(setq-default fill-column 90)
+(setq-default fill-column 78)
+
+(setq sentence-end-double-space nil)
+(global-set-key (kbd "\e\ef") 'auto-fill-mode)
+
 ;; Turn on auto-fill mode
 (add-hook 'html-mode-hook 'turn-on-auto-fill)
-(global-set-key (kbd "\e\ef") 'auto-fill-mode)
+(add-hook 'text-mode-hook 'turn-on-auto-fill)
 
 ;; ----------------------------------------------------------------------
 ;; DESIRE
@@ -434,7 +439,6 @@
 ;; (desire 'psgml)
 ;; (desire 'sh-script)
 ;; (desire 'shell)
-;;; (desire 'sql-mode)
 ;; (desire 'tex)
 ;; (desire 'w3)
 
@@ -882,16 +886,11 @@
 ;; ECB
 ;; *******************
 
-;; load ECB
+(setq ecb-tip-of-the-day nil)
 ;; (add-to-list 'load-path  "~/emacs/site/ecb-2.32")
 ;; (require 'ecb)
 
-;; load ECB
-;(add-to-list 'load-path  "~/emacs/site/ecb-2.32")
-;(require 'ecb)
-;'(ecb-options-version "2.32")
-;'(ecb-wget-setup (quote cons))
-;(global-set-key (kbd "\e\eE") 'ecb-activate)
+;; (global-set-key (kbd "\e\eE") 'ecb-activate)
 
 ;; ======================================================================
 ;; Printing
@@ -931,6 +930,11 @@
 ;           "texify --tex-opt=--src --run-viewer --clean %s.tex"
 ;           'TeX-run-command nil t))))
 
+;; ----------------------------------------------------------------
+;; SQL
+
+;; (desire 'sql-mode)
+(setq sql-password "")
 
 ;; ======================================================================
 ;;