.emacs-my
changeset 148 7df64d2c9f3d
parent 147 91afa4a1017f
child 149 f89eb11ecc21
equal deleted inserted replaced
147:91afa4a1017f 148:7df64d2c9f3d
   407 (add-hook 'write-file-hooks 'time-stamp)
   407 (add-hook 'write-file-hooks 'time-stamp)
   408 
   408 
   409 ;; ======================================================================
   409 ;; ======================================================================
   410 ;; *auto-fill*
   410 ;; *auto-fill*
   411 
   411 
       
   412 ;; To enable/disable auto-fill mode type ESC M-f.
       
   413 
   412 (setq-default fill-column 78)
   414 (setq-default fill-column 78)
   413 
   415 
       
   416 ;; By default used American convention - sentence and with two spaces. Change
       
   417 ;; it to one space. Has affect on filling and M-a, M-e commands.
   414 (setq sentence-end-double-space nil)
   418 (setq sentence-end-double-space nil)
   415 (global-set-key (kbd "\e\ef") 'auto-fill-mode)
       
   416 
   419 
   417 ;; Turn on auto-fill mode
   420 ;; Turn on auto-fill mode
   418 (add-hook 'html-mode-hook 'turn-on-auto-fill)
   421 (add-hook 'html-mode-hook 'turn-on-auto-fill)
   419 (add-hook 'text-mode-hook 'turn-on-auto-fill)
   422 (add-hook 'text-mode-hook 'turn-on-auto-fill)
   420 
   423