Skip to content

Commit 85c5a6a

Browse files
committed
Simplify syntax/abbrev table setup
1 parent 9848d22 commit 85c5a6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gnuplot.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,12 +1247,13 @@ this function is attached to `gnuplot-after-plot-hook'"
12471247
This sets font-lock and keyword completion in the comint/gnuplot
12481248
buffer."
12491249
:interactive nil
1250+
:syntax-table gnuplot-mode-syntax-table
1251+
:abbrev-table gnuplot-mode-abbrev-table
12501252

12511253
(setq-local font-lock-defaults gnuplot-font-lock-defaults
12521254
parse-sexp-lookup-properties t
12531255
syntax-propertize-function #'gnuplot--syntax-propertize)
12541256

1255-
(set-syntax-table gnuplot-mode-syntax-table)
12561257
(add-hook 'kill-buffer-hook #'gnuplot--close-down nil t)
12571258
(add-hook 'comint-output-filter-functions
12581259
#'comint-postoutput-scroll-to-bottom
@@ -1889,7 +1890,6 @@ a list:
18891890
font-lock-multiline t
18901891
parse-sexp-lookup-properties t
18911892
comint-process-echoes gnuplot-echo-command-line-flag)
1892-
(set-syntax-table gnuplot-mode-syntax-table)
18931893
(add-hook 'completion-at-point-functions #'gnuplot-completion-at-point-info-look nil t)
18941894
(add-hook 'syntax-propertize-extend-region-functions
18951895
#'gnuplot--syntax-propertize-extend-region nil t)

0 commit comments

Comments
 (0)