predictive-setup-java.el 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ;;; predictive-setup-java.el --- predictive mode LaTeX setup function
  2. ;; Copyright (C) 2004 Nascif Abousalh-Neto
  3. ;; Author: Nascif Abousalh-Neto
  4. ;; Version: 0.1
  5. ;; Keywords: predictive, setup function, java
  6. ;; This file is part of the Emacs Predictive Completion package.
  7. ;;
  8. ;; The Emacs Predicive Completion package is free software; you can
  9. ;; redistribute it and/or modify it under the terms of the GNU
  10. ;; General Public License as published by the Free Software
  11. ;; Foundation; either version 2 of the License, or (at your option)
  12. ;; any later version.
  13. ;;
  14. ;; The Emacs Predicive Completion package is distributed in the hope
  15. ;; that it will be useful, but WITHOUT ANY WARRANTY; without even the
  16. ;; implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  17. ;; PURPOSE. See the GNU General Public License for more details.
  18. ;;
  19. ;; You should have received a copy of the GNU General Public License
  20. ;; along with the Emacs Predicive Completion package; if not, write
  21. ;; to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  22. ;; Boston, MA 02111-1307 USA
  23. ;;; Change Log:
  24. ;;
  25. ;; version 0.1: initial release (slight modification by Toby Cubitt for
  26. ;; packaging)
  27. ;;; Code:
  28. (defun predictive-setup-java ()
  29. "Sets up predictive mode for use with java major modes."
  30. (interactive)
  31. (require 'dict-java)
  32. (set (make-local-variable 'predictive-main-dict) 'dict-java)
  33. (set (make-local-variable 'predictive-switch-dict-regexps)
  34. (list
  35. (list "\"" 'self 'dict-english '(priority . 1))))
  36. t ; indicate succesful setup
  37. )
  38. ;;; predictive-setup-java.el ends here