yatex
diff yahtml.el @ 409:781604df4cbd
New variables: YaTeX-electric-indent-mode, yahtml-electric-indent-mode
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Wed, 11 Feb 2015 11:45:37 +0900 |
parents | 2fc714f03ddf |
children | a4a2635c5158 |
line diff
1.1 --- a/yahtml.el Fri Jan 16 10:47:48 2015 +0900 1.2 +++ b/yahtml.el Wed Feb 11 11:45:37 2015 +0900 1.3 @@ -1,6 +1,6 @@ 1.4 ;;; yahtml.el --- Yet Another HTML mode -*- coding: sjis -*- 1.5 ;;; (c) 1994-2015 by HIROSE Yuuji [yuuji(@)yatex.org] 1.6 -;;; Last modified Fri Jan 16 10:44:54 2015 on firestorm 1.7 +;;; Last modified Wed Feb 11 08:58:55 2015 on firestorm 1.8 ;;; $Id$ 1.9 1.10 (defconst yahtml-revision-number "1.78.1" 1.11 @@ -286,6 +286,10 @@ 1.12 "*Non-nil means editing HTML 4.01 Strict. 1.13 Completing read for obsoleted attributes disabled.") 1.14 1.15 +(defvar yahtml-electric-indent-mode -1 1.16 + "*(Emacs 24.4+) Pass this value to electric-indent-local-mode. 1.17 +-1 means `off'.") 1.18 + 1.19 ;;; --- customizable variable ends here --- 1.20 (defvar yahtml-prefix-map nil) 1.21 (defvar yahtml-mode-map nil "Keymap used in yahtml-mode.") 1.22 @@ -671,10 +675,12 @@ 1.23 (use-local-map yahtml-mode-map) 1.24 (YaTeX-read-user-completion-table) 1.25 (yahtml-css-scan-styles) 1.26 - (turn-on-auto-fill) ;Sorry, this is prerequisite 1.27 + ;(turn-on-auto-fill) ;Sorry, this is prerequisite 1.28 (and (= 0 (buffer-size)) (file-exists-p yahtml-template-file) 1.29 (y-or-n-p (format "Insert %s?" yahtml-template-file)) 1.30 (insert-file-contents (expand-file-name yahtml-template-file))) 1.31 + (if (fboundp 'electric-indent-local-mode) 1.32 + (electric-indent-local-mode yahtml-electric-indent-mode)) 1.33 (run-hooks 'text-mode-hook 'yahtml-mode-hook) 1.34 1.35 ;; This warning should be removed after a while(2000/12/2)