Created
January 12, 2010 19:10
-
-
Save travis/275498 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption | |
Auto-Fill Column-Number Delete-Selection Diff-Auto-Refine | |
File-Name-Shadow Flyspell Font-Lock Global-Auto-Composition | |
Global-Font-Lock Hi-Lock Hl-Line Line-Number Mlinks Mouse-Wheel Nxhtml | |
Nxhtml-Global Pc-Selection Recentf Shell-Dirtrack Show-Paren | |
Transient-Mark | |
(Information about these minor modes follows the major mode info.) | |
Ruby/eruby-nxhtml mode: | |
Major mode for editing Ruby scripts. | |
TAB properly indents subexpressions of multi-line | |
class, module, def, if, while, for, do, and case statements, taking | |
nesting into account. | |
The variable ruby-indent-level controls the amount of indentation. | |
key binding | |
--- ------- | |
C-c Prefix Command | |
TAB ruby-indent-line | |
C-j reindent-then-newline-and-indent | |
RET reindent-then-newline-and-indent | |
C-x Prefix Command | |
ESC Prefix Command | |
{ ruby-electric-brace | |
} ruby-electric-brace | |
C-x C-e ruby-send-last-sexp | |
C-c C-b ruby-send-block | |
C-c C-l ruby-load-file | |
C-c C-r ruby-send-region | |
C-c C-s inf-ruby | |
C-c C-x ruby-send-definition | |
C-c C-z ruby-switch-to-inf | |
C-c ESC Prefix Command | |
C-c , Prefix Command | |
C-c l Keyboard Macro | |
C-M-a ruby-beginning-of-defun | |
C-M-b ruby-backward-sexp | |
C-M-e ruby-end-of-defun | |
C-M-f ruby-forward-sexp | |
C-M-h backward-kill-word | |
C-M-n ruby-end-of-block | |
C-M-p ruby-beginning-of-block | |
C-M-q ruby-indent-exp | |
C-M-x ruby-send-definition | |
C-c , f feature-verify-all-scenarios-in-project | |
C-c M-b ruby-send-block-and-go | |
C-c M-r ruby-send-region-and-go | |
C-c M-x ruby-send-definition-and-go | |
Auto-Composition minor mode (no indicator): | |
Toggle Auto Composition mode. | |
With ARG, turn Auto Composition mode off if and only if ARG is a non-positive | |
number; if ARG is nil, toggle Auto Composition mode; anything else turns Auto | |
Composition on. | |
When Auto Composition is enabled, text characters are automatically composed | |
by functions registered in `composition-function-table' (which see). | |
You can use `global-auto-composition-mode' to turn on | |
Auto Composition mode in all buffers (this is the default). | |
Auto-Compression minor mode (no indicator): | |
Toggle automatic file compression and uncompression. | |
With prefix argument ARG, turn auto compression on if positive, else off. | |
Return the new status of auto compression (non-nil means on). | |
Auto-Encryption minor mode (no indicator): | |
Toggle automatic file encryption and decryption. | |
With prefix argument ARG, turn auto encryption on if positive, else off. | |
Return the new status of auto encryption (non-nil means on). | |
Auto-Fill minor mode (indicator Fill): | |
Toggle Auto Fill mode. | |
With ARG, turn Auto Fill mode on if and only if ARG is positive. | |
In Auto Fill mode, inserting a space at a column beyond `current-fill-column' | |
automatically breaks the line at a previous space. | |
The value of `normal-auto-fill-function' specifies the function to use | |
for `auto-fill-function' when turning Auto Fill mode on. | |
Column-Number minor mode (no indicator): | |
Toggle Column Number mode. | |
With ARG, turn Column Number mode on if ARG is positive, | |
otherwise turn it off. When Column Number mode is enabled, the | |
column number appears in the mode line. | |
Delete-Selection minor mode (no indicator): | |
Toggle Delete Selection mode. | |
With prefix ARG, turn Delete Selection mode on if ARG is | |
positive, off if ARG is not positive. | |
When Delete Selection mode is enabled, Transient Mark mode is also | |
enabled and typed text replaces the selection if the selection is | |
active. Otherwise, typed text is just inserted at point regardless of | |
any selection. | |
Diff-Auto-Refine minor mode (no indicator): | |
Automatically highlight changes in detail as the user visits hunks. | |
When transitioning from disabled to enabled, | |
try to refine the current hunk, as well. | |
File-Name-Shadow minor mode (no indicator): | |
Toggle File-Name Shadow mode. | |
When active, any part of a filename being read in the minibuffer | |
that would be ignored (because the result is passed through | |
`substitute-in-file-name') is given the properties in | |
`file-name-shadow-properties', which can be used to make | |
that portion dim, invisible, or otherwise less visually noticeable. | |
With prefix argument ARG, turn on if positive, otherwise off. | |
Returns non-nil if the new state is enabled. | |
Flyspell minor mode (indicator Fly): | |
Minor mode performing on-the-fly spelling checking. | |
This spawns a single Ispell process and checks each word. | |
The default flyspell behavior is to highlight incorrect words. | |
With no argument, this command toggles Flyspell mode. | |
With a prefix argument ARG, turn Flyspell minor mode on if ARG is positive, | |
otherwise turn it off. | |
Bindings: | |
M-$: correct words (using Ispell). | |
M-x flyspell-auto-correct-word: automatically correct word. | |
M-x flyspell-auto-correct-previous-word: automatically correct the last misspelled word. | |
M-x flyspell-correct-word (or down-mouse-2): popup correct words. | |
Hooks: | |
This runs `flyspell-mode-hook' after flyspell mode is entered or exit. | |
Remark: | |
`flyspell-mode' uses `ispell-mode'. Thus all Ispell options are | |
valid. For instance, a different dictionary can be used by | |
invoking `ispell-change-dictionary'. | |
Consider using the `ispell-parser' to check your text. For instance | |
consider adding: | |
(add-hook 'tex-mode-hook (function (lambda () (setq ispell-parser 'tex)))) | |
in your .emacs file. | |
M-x flyspell-region checks all words inside a region. | |
M-x flyspell-buffer checks the whole buffer. | |
Font-Lock minor mode (no indicator): | |
Toggle Font Lock mode. | |
With arg, turn Font Lock mode off if and only if arg is a non-positive | |
number; if arg is nil, toggle Font Lock mode; anything else turns Font | |
Lock on. | |
(Font Lock is also known as "syntax highlighting".) | |
When Font Lock mode is enabled, text is fontified as you type it: | |
- Comments are displayed in `font-lock-comment-face'; | |
- Strings are displayed in `font-lock-string-face'; | |
- Certain other expressions are displayed in other faces according to the | |
value of the variable `font-lock-keywords'. | |
To customize the faces (colors, fonts, etc.) used by Font Lock for | |
fontifying different parts of buffer text, use M-x customize-face. | |
You can enable Font Lock mode in any major mode automatically by turning on in | |
the major mode's hook. For example, put in your ~/.emacs: | |
(add-hook 'c-mode-hook 'turn-on-font-lock) | |
Alternatively, you can use Global Font Lock mode to automagically turn on Font | |
Lock mode in buffers whose major mode supports it and whose major mode is one | |
of `font-lock-global-modes'. For example, put in your ~/.emacs: | |
(global-font-lock-mode t) | |
Where major modes support different levels of fontification, you can use | |
the variable `font-lock-maximum-decoration' to specify which level you | |
generally prefer. When you turn Font Lock mode on/off the buffer is | |
fontified/defontified, though fontification occurs only if the buffer is | |
less than `font-lock-maximum-size'. | |
To add your own highlighting for some major mode, and modify the highlighting | |
selected automatically via the variable `font-lock-maximum-decoration', you can | |
use `font-lock-add-keywords'. | |
To fontify a buffer, without turning on Font Lock mode and regardless of buffer | |
size, you can use M-x font-lock-fontify-buffer. | |
To fontify a block (the function or paragraph containing point, or a number of | |
lines around point), perhaps because modification on the current line caused | |
syntactic change on other lines, you can use M-o M-o. | |
See the variable `font-lock-defaults-alist' for the Font Lock mode default | |
settings. You can set your own default settings for some mode, by setting a | |
buffer local value for `font-lock-defaults', via its mode hook. | |
The above is the default behavior of `font-lock-mode'; you may specify | |
your own function which is called when `font-lock-mode' is toggled via | |
`font-lock-function'. | |
Global-Auto-Composition minor mode (no indicator): | |
Toggle Auto-Composition mode in every possible buffer. | |
With prefix ARG, turn Global-Auto-Composition mode on if and only if ARG is positive. | |
Auto-Composition mode is enabled in all buffers where `turn-on-auto-composition-if-enabled' would do it. | |
See `auto-composition-mode' for more information on Auto-Composition mode. | |
Global-Font-Lock minor mode (no indicator): | |
Toggle Font-Lock mode in every possible buffer. | |
With prefix ARG, turn Global-Font-Lock mode on if and only if ARG is positive. | |
Font-Lock mode is enabled in all buffers where `turn-on-font-lock-if-desired' would do it. | |
See `font-lock-mode' for more information on Font-Lock mode. | |
Hi-Lock minor mode (indicator Hi): | |
Toggle minor mode for interactively adding font-lock highlighting patterns. | |
If ARG positive, turn hi-lock on. Issuing a hi-lock command will also | |
turn hi-lock on. To turn hi-lock on in all buffers use | |
`global-hi-lock-mode' or in your .emacs file (global-hi-lock-mode 1). | |
When hi-lock is turned on, a "Regexp Highlighting" submenu is added | |
to the "Edit" menu. The commands in the submenu, which can be | |
called interactively, are: | |
M-s h r REGEXP FACE | |
Highlight matches of pattern REGEXP in current buffer with FACE. | |
M-s h p PHRASE FACE | |
Highlight matches of phrase PHRASE in current buffer with FACE. | |
(PHRASE can be any REGEXP, but spaces will be replaced by matches | |
to whitespace and initial lower-case letters will become case insensitive.) | |
M-s h l REGEXP FACE | |
Highlight lines containing matches of REGEXP in current buffer with FACE. | |
M-s h u REGEXP | |
Remove highlighting on matches of REGEXP in current buffer. | |
M-s h w | |
Write active REGEXPs into buffer as comments (if possible). They may | |
be read the next time file is loaded or when the M-s h f command | |
is issued. The inserted regexps are in the form of font lock keywords. | |
(See `font-lock-keywords'.) They may be edited and re-loaded with M-s h f, | |
any valid `font-lock-keywords' form is acceptable. When a file is | |
loaded the patterns are read if `hi-lock-file-patterns-policy' is | |
'ask and the user responds y to the prompt, or if | |
`hi-lock-file-patterns-policy' is bound to a function and that | |
function returns t. | |
M-s h f | |
Re-read patterns stored in buffer (in the format produced by M-s h w). | |
When hi-lock is started and if the mode is not excluded or patterns | |
rejected, the beginning of the buffer is searched for lines of the | |
form: | |
Hi-lock: FOO | |
where FOO is a list of patterns. These are added to the font lock | |
keywords already present. The patterns must start before position | |
(number of characters into buffer) `hi-lock-file-patterns-range'. | |
Patterns will be read until | |
Hi-lock: end | |
is found. A mode is excluded if it's in the list `hi-lock-exclude-modes'. | |
Hl-Line minor mode (no indicator): | |
Buffer-local minor mode to highlight the line about point. | |
With ARG, turn Hl-Line mode on if ARG is positive, off otherwise. | |
If `hl-line-sticky-flag' is non-nil, Hl-Line mode highlights the | |
line about the buffer's point in all windows. Caveat: the | |
buffer's point might be different from the point of a | |
non-selected window. Hl-Line mode uses the function | |
`hl-line-highlight' on `post-command-hook' in this case. | |
When `hl-line-sticky-flag' is nil, Hl-Line mode highlights the | |
line about point in the selected window only. In this case, it | |
uses the function `hl-line-unhighlight' on `pre-command-hook' in | |
addition to `hl-line-highlight' on `post-command-hook'. | |
Line-Number minor mode (no indicator): | |
Toggle Line Number mode. | |
With ARG, turn Line Number mode on if ARG is positive, otherwise | |
turn it off. When Line Number mode is enabled, the line number | |
appears in the mode line. | |
Line numbers do not appear for very large buffers and buffers | |
with very long lines; see variables `line-number-display-limit' | |
and `line-number-display-limit-width'. | |
Mlinks minor mode (indicator L): | |
Recognizes certain parts of a buffer as hyperlinks. | |
The hyperlinks are created in different ways for different major | |
modes with the help of the functions in the list | |
`mlinks-mode-functions'. | |
The hyperlinks can be hilighted when point is over them. Use | |
`mlinks-toggle-hilight' to toggle this feature for the current | |
buffer. | |
All keybindings in this mode are by default done under the prefi§x | |
key | |
C-c RET | |
which is supposed to be a kind of mnemonic for link (alluding to | |
the RET key commonly used in web browser to follow a link). | |
(Unfortunately this breaks the rules in info node `Key Binding | |
Conventions'.) Below are the key bindings defined by this mode: | |
key binding | |
--- ------- | |
C-c Prefix Command | |
C-c RET Prefix Command | |
C-c RET RET mlinks-goto | |
C-c RET f mlinks-goto-other-frame | |
C-c RET h mlinks-toggle-hilight | |
C-c RET n mlinks-next-saved-position | |
C-c RET p mlinks-prev-saved-position | |
C-c RET w mlinks-goto-other-window | |
C-c RET <S-tab> mlinks-backward-link | |
C-c RET <tab> mlinks-forward-link | |
For some major modes `mlinks-backward-link' and | |
`mlinks-forward-link' will take you to the previous/next link. | |
By default the link moved to will be active, see | |
`mlinks-active-links'. | |
Mouse-Wheel minor mode (no indicator): | |
Toggle mouse wheel support. | |
With prefix argument ARG, turn on if positive, otherwise off. | |
Return non-nil if the new state is enabled. | |
Nxhtml minor mode (no indicator): | |
Minor mode to turn on some key and menu bindings. | |
See `nxhtml-mode' for more information. | |
Nxhtml-Global minor mode (no indicator): | |
Toggle Nxhtml minor mode in every possible buffer. | |
With prefix ARG, turn Nxhtml-Global minor mode on if and only if ARG is positive. | |
Nxhtml minor mode is enabled in all buffers where `nxhtml-maybe-turn-on-minor-mode' would do it. | |
See `nxhtml-minor-mode' for more information on Nxhtml minor mode. | |
Pc-Selection minor mode (no indicator): | |
Change mark behavior to emulate Motif, MAC or MS-Windows cut and paste style. | |
This mode enables Delete Selection mode and Transient Mark mode. | |
The arrow keys (and others) are bound to new functions | |
which modify the status of the mark. | |
The ordinary arrow keys disable the mark. | |
The shift-arrow keys move, leaving the mark behind. | |
C-LEFT and C-RIGHT move back or forward one word, disabling the mark. | |
S-C-LEFT and S-C-RIGHT move back or forward one word, leaving the mark behind. | |
M-LEFT and M-RIGHT move back or forward one word or sexp, disabling the mark. | |
S-M-LEFT and S-M-RIGHT move back or forward one word or sexp, leaving the mark | |
behind. To control whether these keys move word-wise or sexp-wise set the | |
variable `pc-select-meta-moves-sexps' after loading pc-select.el but before | |
turning PC Selection mode on. | |
C-DOWN and C-UP move back or forward a paragraph, disabling the mark. | |
S-C-DOWN and S-C-UP move back or forward a paragraph, leaving the mark behind. | |
HOME moves to beginning of line, disabling the mark. | |
S-HOME moves to beginning of line, leaving the mark behind. | |
With Ctrl or Meta, these keys move to beginning of buffer instead. | |
END moves to end of line, disabling the mark. | |
S-END moves to end of line, leaving the mark behind. | |
With Ctrl or Meta, these keys move to end of buffer instead. | |
PRIOR or PAGE-UP scrolls and disables the mark. | |
S-PRIOR or S-PAGE-UP scrolls and leaves the mark behind. | |
S-DELETE kills the region (`kill-region'). | |
S-INSERT yanks text from the kill ring (`yank'). | |
C-INSERT copies the region into the kill ring (`copy-region-as-kill'). | |
In addition, certain other PC bindings are imitated (to avoid this, set | |
the variable `pc-select-selection-keys-only' to t after loading pc-select.el | |
but before calling PC Selection mode): | |
F6 other-window | |
DELETE delete-char | |
C-DELETE kill-line | |
M-DELETE kill-word | |
C-M-DELETE kill-sexp | |
C-BACKSPACE backward-kill-word | |
M-BACKSPACE undo | |
Recentf minor mode (no indicator): | |
Toggle recentf mode. | |
With prefix argument ARG, turn on if positive, otherwise off. | |
Returns non-nil if the new state is enabled. | |
When recentf mode is enabled, it maintains a menu for visiting files | |
that were operated on recently. | |
Shell-Dirtrack minor mode (no indicator): | |
Turn directory tracking on and off in a shell buffer. | |
The `dirtrack' package provides an alternative implementation of this | |
feature - see the function `dirtrack-mode'. | |
Show-Paren minor mode (no indicator): | |
Toggle Show Paren mode. | |
With prefix ARG, turn Show Paren mode on if and only if ARG is positive. | |
Returns the new status of Show Paren mode (non-nil means on). | |
When Show Paren mode is enabled, any matching parenthesis is highlighted | |
in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time. | |
Transient-Mark minor mode (no indicator): | |
Toggle Transient Mark mode. | |
With ARG, turn Transient Mark mode on if ARG is positive, off otherwise. | |
In Transient Mark mode, when the mark is active, the region is highlighted. | |
Changing the buffer "deactivates" the mark. | |
So do certain other operations that set the mark | |
but whose main purpose is something else--for example, | |
incremental search, <, and >. | |
You can also deactivate the mark by typing C-g or | |
M-ESC ESC. | |
Many commands change their behavior when Transient Mark mode is in effect | |
and the mark is active, by acting on the region instead of their usual | |
default part of the buffer's text. Examples of such commands include | |
M-;, M-x flush-lines, M-x keep-lines, M-%, C-M-%, s-:, and C-x u. | |
Invoke C-h d and type "transient" or | |
"mark.*active" at the prompt, to see the documentation of | |
commands which are sensitive to the Transient Mark mode. | |
[back] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment