From d4e25c8ca496a625773974ae8957a79793c90f68 Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Sun, 17 Mar 2024 14:59:13 +0200 Subject: [PATCH] Recognize gnuplot on script #! line E.g. #! /usr/bin/env gnuplot --- gnuplot-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnuplot-mode.el b/gnuplot-mode.el index ff81922..0238327 100644 --- a/gnuplot-mode.el +++ b/gnuplot-mode.el @@ -351,7 +351,7 @@ See `gnuplot-find-indent-column' for details." (dolist (pattern '("\\.gnuplot\\'" "\\.gp\\'")) (add-to-list 'auto-mode-alist (cons pattern 'gnuplot-mode))) - +(add-to-list 'interpreter-mode-alist (cons "gnuplot" 'gnuplot-mode)) ;;; functions to run gnuplot (defun gnuplot-quit ()