Gri Mode: code fragments

Chapters: 1: Introduction 2: Simple example 3: Invocation 4: Finer Control 5: X-Y Plots 6: Contour Plots 7: Image Plots 8: Examples 9: Gri Commands 10: Programming 11: Environment 12: Emacs Mode 13: History 14: Installation 15: Gri Bugs 16: Test Suite 17: Gri in Press 18: Acknowledgments 19: License Indices: Concepts Commands Variables | ### 12.4.7: Inserting gri code fragments in Emacs Since gri version 1.063, gri has special commands that begin with a question mark `?'. These special commands have no options, and are composed only of standard gri commands. Their purpose is to provide a short-cut for entering many lines of gri at once (e.g. bits of sample code about contouring grids, or your own preamble which you use at the time to set fonts and line widths). ``gri-complete`' acts in a special way with these commands, by replacing the abbreviated name which you are completing by all the lines contained within the gri command. The user is allowed to define new fragments in ``~/.grirc`', and also to override the gri system fragments. You can therefore fine-tune gri's fragments to your taste. To see the names of all gri fragments, type in a question mark at the beginning of a line in a gri buffer and press ``M-Tab`' twice to ``gri-complete`' it and display possible choices. The gri commands used to replace them are found in the ``*gri-syntax*`' buffer.