branch: elpa/gnuplot commit 821964c068079ecae39c065ec5454d0f77e74487 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Define gnuplot-mode via define-derived-mode --- gnuplot.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnuplot.el b/gnuplot.el index 02575bd764..8d4b511297 100644 --- a/gnuplot.el +++ b/gnuplot.el @@ -1974,7 +1974,7 @@ shown." ;;; --- autoloaded functions: gnuplot-mode and gnuplot-make-buffer ;;;###autoload -(defun gnuplot-mode () +(define-derived-mode gnuplot-mode prog-mode "Major mode for editing and executing GNUPLOT scripts. This was written with version 4.6 of gnuplot in mind, but should work with newer and older versions. @@ -2026,7 +2026,6 @@ a list: Key bindings: \\{gnuplot-mode-map}" - (interactive) (kill-all-local-variables) (use-local-map gnuplot-mode-map) (setq major-mode 'gnuplot-mode