File: align.el.html
This mode allows you to align regions in a context-sensitive fashion.
The classic use is to align assignments:
int a = 1;
short foo = 2;
double blah = 4;
becomes
int a = 1;
short foo = 2;
double blah = 4;
Defined variables (26)
align-c++-modes | A list of modes whose syntax resembles C/C++. |
align-default-spacing | An integer that represents the default amount of padding to use. |
align-dq-string-modes | A list of modes where double quoted strings should be excluded. |
align-exclude-rules-list | A list describing text that should be excluded from alignment. |
align-exclude-rules-list-type | The ‘type’ form for any ‘align-exclude-rules-list’ variable. |
align-highlight-change-face | The face to highlight with if changes are necessary. |
align-highlight-nochange-face | The face to highlight with if no changes are necessary. |
align-highlight-overlays | The current overlays highlighting the text matched by a rule. |
align-indent-before-aligning | If non-nil, indent the marked region before aligning it. |
align-large-region | If an integer, defines what constitutes a "large" region. |
align-lisp-modes | A list of modes whose syntax resembles Lisp. |
align-load-hook | Hook that gets run after the aligner has been loaded. |
align-mode-exclude-rules-list | Alignment exclusion rules specific to the current major mode. |
align-mode-rules-list | Alignment rules specific to the current major mode. |
align-open-comment-modes | A list of modes with a single-line comment syntax. |
align-perl-modes | A list of modes where Perl syntax is to be seen. |
align-regexp-history | Input history for the full user-entered regex in ‘align-regexp’. |
align-region-heuristic | If non-nil, used as a heuristic by ‘align-current’. |
align-region-separate | Select the method by which alignment sections will be separated. |
align-rules-list | A list describing all of the available alignment rules. |
align-rules-list-type | The ‘type’ form for any ‘align-rules-list’ variable. |
align-sq-string-modes | A list of modes where single quoted strings should be excluded. |
align-tex-modes | A list of modes whose syntax resembles TeX (and family). |
align-text-modes | A list of modes whose content is plain text. |
align-to-tab-stop | If non-nil, alignments will always fall on a tab boundary. |
align-vhdl-rules-list | Alignment rules for ‘vhdl-mode’. See ‘align-rules-list’ for more info. |
Defined functions (17)
align | (BEG END &optional SEPARATE RULES EXCLUDE-RULES) |
align--rule-should-run | (RULE) |
align--set-marker | (MARKER-VAR POS &optional TYPE) |
align-adjust-col-for-rule | (COLUMN RULE SPACING TAB-STOP) |
align-areas | (AREAS PROPS RULE FUNC) |
align-column | (POS) |
align-current | (&optional RULES EXCLUDE-RULES) |
align-entire | (BEG END &optional RULES EXCLUDE-RULES) |
align-highlight-rule | (BEG END TITLE &optional RULES EXCLUDE-RULES) |
align-match-tex-pattern | (REGEXP END &optional REVERSE) |
align-new-section-p | (BEG END SEPARATOR) |
align-newline-and-indent | () |
align-regexp | (BEG END REGEXP &optional GROUP SPACING REPEAT) |
align-region | (BEG END SEPARATE RULES EXCLUDE-RULES &optional FUNC) |
align-regions | (REGIONS PROPS RULE FUNC) |
align-set-vhdl-rules | () |
align-unhighlight-rule | () |