Skip to content

Commit 821964c

Browse files
committed
Define gnuplot-mode via define-derived-mode
1 parent c0e8f16 commit 821964c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gnuplot.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@ shown."
19741974
;;; --- autoloaded functions: gnuplot-mode and gnuplot-make-buffer
19751975

19761976
;;;###autoload
1977-
(defun gnuplot-mode ()
1977+
(define-derived-mode gnuplot-mode prog-mode
19781978
"Major mode for editing and executing GNUPLOT scripts.
19791979
This was written with version 4.6 of gnuplot in mind, but should
19801980
work with newer and older versions.
@@ -2026,7 +2026,6 @@ a list:
20262026
20272027
Key bindings:
20282028
\\{gnuplot-mode-map}"
2029-
(interactive)
20302029
(kill-all-local-variables)
20312030
(use-local-map gnuplot-mode-map)
20322031
(setq major-mode 'gnuplot-mode

0 commit comments

Comments
 (0)