GNU Info

Info Node: (idlwave)Padding Operators

(idlwave)Padding Operators


Next: Case Changes Prev: Block Boundary Check Up: Actions
Enter node , (file) or (file)node

Padding Operators
-----------------

   Some operators can be automatically surrounded by spaces.  This can
happen when the operator is typed, or also later when the line is
indented.  IDLWAVE contains this setting for the operators `&', `<',
`>', `,', `=', and `->'(1), but the feature is turned off by default.
If you want to turn it on, customize the variables
`idlwave-surround-by-blank' and `idlwave-do-actions'.  You can also
define similar actions for other operators by using the function
`idlwave-action-and-binding' in the mode hook.  For example, to enforce
space padding of the `+' and `*' operators, try this in `.emacs'

     (add-hook 'idlwave-mode-hook
       (lambda ()
          (setq idlwave-surround-by-blank t)  ; Turn this type of actions on
          (idlwave-action-and-binding "*" '(idlwave-surround 1 1))
          (idlwave-action-and-binding "+" '(idlwave-surround 1 1))))

 - User Option: idlwave-surround-by-blank (`nil')
     Non-`nil' means, enable `idlwave-surround'.  If non-nil, `=', `<',
     `>', `&', `,', `->' are surrounded with spaces by
     `idlwave-surround'.

 - User Option: idlwave-pad-keyword (`t')
     Non-`nil' means pad `=' for keywords like assignments.

   ---------- Footnotes ----------

   (1) Operators longer than one character can only be padded during
line indentation.


automatically generated by info2www version 1.2.2.9