Variable: ConTeXt-environment-helper
ConTeXt-environment-helper is a variable defined in context.el.
Value
(("useMPgraphic" . ConTeXt-mp-region) ("MPpage" . ConTeXt-mp-region))
Documentation
Alist that holds functions to call for working on regions.
An entry looks like: ("environment" . function)
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/context.el
;; with the following we can call a function on an environment. Say
;; you have metapost stuff within your TeX file, go to the environment
;; and run ConTeXt-work-on-environment (suggested Key: C-c !). AUCTeX
;; sees that you are inside e.g. \startMPpage....\stopMPpage and
;; looks in ConTeXt-environment-helper for a function to be called.
;; % so pressing C-c ! inside the following ...
;;\startuseMPgraphic{Logo}{Scale}
;; % Top rectangle
;; filldraw (0,0)--(2cm,0)--(2cm,1cm)--(0,1cm)--cycle withcolor blue ;
;; % Bottom black rectangle
;; drawfill (0,0)--(2cm,0)--(2cm,-1cm)--(0,-1cm)--cycle withcolor black;
;; % White Text
;; draw btex \bf AB etex withcolor white ;
;; % resize to size
;; currentpicture := currentpicture scaled \MPvar{Scale} ;
;; \stopuseMPgraphic
;; % ...should give you a "new buffer" (currently narrowed to region
;; % and switched to metapost-mode and recursive-edit)
;; % Top rectangle
;; filldraw (0,0)--(2cm,0)--(2cm,1cm)--(0,1cm)--cycle withcolor blue ;
;; % Bottom black rectangle
;; drawfill (0,0)--(2cm,0)--(2cm,-1cm)--(0,-1cm)--cycle withcolor black;
;; % White Text
;; draw btex \bf AB etex withcolor white ;
;; % resize to size
;; currentpicture := currentpicture scaled \MPvar{Scale} ;
(defvar ConTeXt-environment-helper
'(("useMPgraphic" . ConTeXt-mp-region)
("MPpage" . ConTeXt-mp-region))
"Alist that holds functions to call for working on regions.
An entry looks like: (\"environment\" . function)")