dotemacs 860 B

123456789101112131415161718192021
  1. ;;--------------------------------------------------------------------
  2. ;; Lines enabling gnuplot-mode
  3. ;; move the files gnuplot.el to someplace in your lisp load-path or
  4. ;; use a line like
  5. ;; (setq load-path (append (list "/path/to/gnuplot") load-path))
  6. ;; these lines enable the use of gnuplot mode
  7. (autoload 'gnuplot-mode "gnuplot" "gnuplot major mode" t)
  8. (autoload 'gnuplot-make-buffer "gnuplot" "open a buffer in gnuplot mode" t)
  9. ;; this line automatically causes all files with the .gp extension to
  10. ;; be loaded into gnuplot mode
  11. (setq auto-mode-alist (append '(("\\.gp$" . gnuplot-mode)) auto-mode-alist))
  12. ;; This line binds the function-9 key so that it opens a buffer into
  13. ;; gnuplot mode
  14. (global-set-key [(f9)] 'gnuplot-make-buffer)
  15. ;; end of line for gnuplot-mode
  16. ;;--------------------------------------------------------------------