Variable: combobulate-go-envelope-list

combobulate-go-envelope-list is a variable defined in combobulate-go.el.

Value

((:description "v, err := ... | if err != nil { ... }" :key "E"
	       :mark-node t :shorthand general-statement :name
	       "handle-error" :template
	       ((p value "Value Variable") ", "
		(p err "Error Variable") " := " @ r> n> "if " (f err)
		" != nil {" n> @ n> "}" > n>))
 (:description "if ... { ... } [else { ... }]" :key "i" :mark-node t
	       :shorthand general-statement :name "if-statement"
	       :template
	       ("if " @ (p true "Condition") " {" n>
		(choice* :missing nil :rest (r> n>) :name "if-block")
		"}" >
		(choice* :missing nil :rest
			 (" else {" n> @ r> n> "}" > n>) :name
			 "else-block")))
 (:description "for ... { ... }" :key "f" :mark-node t :shorthand
	       general-statement :name "for-loop" :template
	       ("for "
		(choice* :name "Range" :rest
			 ("index, value := range "
			  (p variable "Variable")))
		(choice* :name "Iterator" :rest
			 ((p i "Iterator") " := 0; "
			  (choice* :name "<" :rest
				   ((f i) " < " (p to "Max")))
			  (choice* :name "<=" :rest
				   ((f i) " <= " (p to "Max")))
			  "; " (f i) "++"))
		" {" n> @ r> n> "}" > n>)))

Documentation

List of envelope definitions for this language.

Each entry is a list of properties that define the envelope. The properties are:

  (:description STRING
   :name STRING
   :key STRING
   :mark-node <t/nil>
   :template ENVELOPE
   [:extra-key STRING]
   [:shorthand SHORTHAND-SYMBOL]
   [:nodes NODES]
   [:point-placement <stay/after/before>])

Where :description is a human-readable description of the envelope.

:name is the name of the envelope that will be
inserted into the envelope command.

:key is the key binding (in kbd macro format) to bind to the
envelope such that it is created under C-c o e
<key>. :extra-key is an optional key binding that is bound to
any arbitrary key binding.

:shorthand is a shorthand symbol to use in place of
:nodes (see the shorthand procedures alist variable)

 :nodesis a list of nodes to look for at/around point before
 expanding the envelope template.

:mark-node is a boolean that determines whether to mark the
node that :nodes (or :shorthand) matches and remove it and insert it into the r/r> registers.

:template is the template to insert. See
combobulate-envelope-expand-instructions for a complete description of the template format.

:point-placement is a symbol that determines where point is
placed after the envelope is inserted. It can be stay, after, or before.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-go.el