yatex

diff yatex23.el @ 353:2a72779d9c50

Rewrite lambda notations to suppress annoying warnings from emacs24
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 21 Dec 2014 14:20:01 +0900
parents bfd7a5998555
children 4ea63809a0ca
line diff
     1.1 --- a/yatex23.el	Thu Dec 18 23:00:08 2014 +0900
     1.2 +++ b/yatex23.el	Sun Dec 21 14:20:01 2014 +0900
     1.3 @@ -1,6 +1,6 @@
     1.4  ;;; yatex23.el --- YaTeX facilities for Emacs 23 or later -*- coding: sjis -*-
     1.5  ;;; (c)2014 by HIROSE Yuuji.[yuuji@yatex.org]
     1.6 -;;; Last modified Thu Dec 18 22:59:02 2014 on firestorm
     1.7 +;;; Last modified Fri Dec 19 21:43:54 2014 on firestorm
     1.8  ;;; $Id:$
     1.9  
    1.10  ;;; Code:
    1.11 @@ -69,12 +69,15 @@
    1.12  			       (key-description
    1.13  				(car (where-is-internal 'undo)))))
    1.14  		      (put 'YaTeX-dnd-auto-figure 'guide t)))))
    1.15 -	      (YaTeX-help "includegraphics")
    1.16 -	      )
    1.17 +	      (YaTeX-help "includegraphics"))
    1.18  	  (set-marker envstart nil) ;;sure to reset marker
    1.19  	  action))
    1.20         ((string-match "\\(.*\\)\\.tex$" path)
    1.21 -	(insert "\\include{" (match-string 1 path) "}"))))
    1.22 +	(insert "\\include{" (match-string 1 path) "}"))
    1.23 +       ((string-match "\\(.*\\)\\.bib$" path)
    1.24 +	(insert "\\bibliography{" (match-string 1 path) "}"))
    1.25 +       ((string-match "\\.ind$" path)
    1.26 +	(insert "\\input{" path "}"))))
    1.27       (t (message "%s" action)))))
    1.28  
    1.29  (provide 'yatex23)