Skip to content

Commit e19886f

Browse files
committed
README: Mention M-X and read-extended-command-predicate
1 parent f3dd054 commit e19886f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.org

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ The easiest way to install =gnuplot= is to directly get it from [[https://elpa.n
2929
or do =M-x list-packages= and search for =gnuplot= in the list. Note that there is a
3030
different [[https://github.com/mkmcc/gnuplot-mode][gnuplot-mode]] package on MELPA which is less featureful.
3131

32+
It is recommended to configure =read-extended-command-predicate= in your Emacs
33+
configuration, such that =M-x= only completes commands which are relevant to the
34+
current mode, such that =gnuplot-*= commands are only shown in Gnuplot buffers.
35+
36+
#+begin_src emacs-lisp
37+
(setq read-extended-command-predicate #'command-completion-default-include-p)
38+
#+end_src
39+
3240
* Usage
3341

3442
=gnuplot-mode= is enabled automatically for =*.gp= files. These functions are useful

0 commit comments

Comments
 (0)