Variable: gnuplot-use-context-sensitive-completion
gnuplot-use-context-sensitive-completion is a customizable variable
defined in gnuplot.el.
Value
t
Documentation
Non-nil if gnuplot-context-sensitive-mode(var)/gnuplot-context-sensitive-mode(fun) should be enabled by default.
In context-sensitive mode, gnuplot-mode parses the current
command line to provide smarter completion and documentation
suggestions.
Source Code
;; Defined in /nix/store/xvcy7r1jiw71avhnh6kmin403kpqrdhc-emacs-packages-deps/share/emacs/site-lisp/elpa/gnuplot-20260623.1111/gnuplot.el
(defcustom gnuplot-use-context-sensitive-completion t
"Non-nil if `gnuplot-context-sensitive-mode' should be enabled by default.
In context-sensitive mode, `gnuplot-mode' parses the current
command line to provide smarter completion and documentation
suggestions."
:type 'boolean
:set (lambda (sym value)
(set sym value)
(cond
(value
(add-hook 'gnuplot-mode-hook #'gnuplot-context-sensitive-mode nil nil)
(add-hook 'gnuplot-comint-mode-hook #'gnuplot-context-sensitive-mode nil nil))
(t
(remove-hook 'gnuplot-mode-hook #'gnuplot-context-sensitive-mode)
(remove-hook 'gnuplot-comint-mode-hook #'gnuplot-context-sensitive-mode)))
(dolist (buffer (buffer-list))
(with-current-buffer buffer
(when (derived-mode-p 'gnuplot-mode 'gnuplot-comint-mode)
(gnuplot-context-sensitive-mode (if value 1 0))))))
:link '(emacs-commentary-link "gnuplot-context"))