;;; predictive-latex-graphicx.el --- predictive mode LaTeX graphicx ;;; package support ;; Copyright (C) 2004-2006 Toby Cubitt ;; Author: Toby Cubitt ;; Version: 0.2.1 ;; Keywords: predictive, latex, package, graphicx ;; URL: http://www.dr-qubit.org/emacs.php ;; This file is part of the Emacs Predictive Completion package. ;; ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License ;; as published by the Free Software Foundation; either version 2 ;; of the License, or (at your option) any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, write to the Free Software ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, ;; MA 02110-1301, USA. ;;; Change Log: ;; ;; Version 0.2.1 ;; * improved regexp definitions ;; ;; Version 0.2 ;; * updated for new auto-overlay regexp definition interface ;; ;; Version 0.1 ;; * initial version ;;; Code: (require 'predictive-latex) (provide 'predictive-latex-graphicx) ;; add load and unload functions to alist (push '("graphicx" predictive-latex-load-graphicx predictive-latex-unload-graphicx) predictive-latex-usepackage-functions) (defun predictive-latex-load-graphicx () ;; load regexp (auto-overlay-load-regexp 'predictive 'brace `("\\([^\\]\\|^\\)\\(\\\\\\\\\\)*\\\\includegraphics\\(\\[.*?\\]\\)?{" :edge start :id graphicx (dict . t) (priority . 40) (face . (background-color . ,predictive-overlay-debug-color))) t) ) (defun predictive-latex-unload-graphicx () ;; unload regexp (auto-overlay-unload-regexp 'predictive 'brace 'graphicx) ) ;;; predictive-latex-graphicx ends here