branch: elpa/gnuplot commit e19886f1a9429cf9a4a7332ddf7db44dafa5d8c5 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
README: Mention M-X and read-extended-command-predicate --- README.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.org b/README.org index e5b924b31f..59fda1d3f1 100644 --- a/README.org +++ b/README.org @@ -29,6 +29,14 @@ The easiest way to install =gnuplot= is to directly get it from [[https://elpa.n or do =M-x list-packages= and search for =gnuplot= in the list. Note that there is a different [[https://github.com/mkmcc/gnuplot-mode][gnuplot-mode]] package on MELPA which is less featureful. +It is recommended to configure =read-extended-command-predicate= in your Emacs +configuration, such that =M-x= only completes commands which are relevant to the +current mode, such that =gnuplot-*= commands are only shown in Gnuplot buffers. + +#+begin_src emacs-lisp +(setq read-extended-command-predicate #'command-completion-default-include-p) +#+end_src + * Usage =gnuplot-mode= is enabled automatically for =*.gp= files. These functions are useful