Skip to content

Instantly share code, notes, and snippets.

@jackdreilly
Created September 8, 2011 01:39
Show Gist options
  • Save jackdreilly/1202396 to your computer and use it in GitHub Desktop.
Save jackdreilly/1202396 to your computer and use it in GitHub Desktop.
Enabled minor modes: Auto-Compression Auto-Encryption Diff-Auto-Refine
Egg File-Name-Shadow Font-Lock Global-Auto-Complete Global-Font-Lock
Line-Number Menu-Bar Transient-Mark Yas/Global Yas/Minor
(Information about these minor modes follows the major mode info.)
Coffee mode:
Major mode for editing CoffeeScript.
This mode runs the hook `coffee-mode-hook', as the final step
during initialization.
key binding
--- -------
C-c Prefix Command
RET coffee-newline-and-indent
ESC Prefix Command
A-R coffee-compile-region
A-r coffee-compile-buffer
<remap> Prefix Command
C-c C-o Prefix Command
A-M-r coffee-repl
<remap> <comment-dwim> coffee-comment-dwim
C-c C-o C-s coffee-cos-mode
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).
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.
Egg minor mode (indicator Git:deployment):
Turn-on egg-minor-mode which would enable key bindings for
egg in current buffer.
C-x v b start a new branch from the current HEAD.
C-x v s shows the repo's current status
C-x v w start editing the commit message for the current staged changes.
C-x v i stage new changes of the current file
C-x v l shows repo's history
C-x v o checkout another version of the current file
C-x v u delete unstaged modifications in the current file
C-x v v perform the next logical action
C-x v = compare file with index or other commits
C-x v ~ show other version of the current file.
key binding
--- -------
C-x Prefix Command
C-x v Prefix Command
C-x v / egg-file-log-pickaxe
C-x v = egg-file-diff
C-x v L egg-reflog
C-x v a egg-file-toggle-blame-mode
C-x v b egg-start-new-branch
C-x v c egg-commit-log-edit
C-x v d egg-status
C-x v e egg-file-ediff
C-x v g egg-grep
C-x v h egg-file-log
C-x v i egg-file-stage-current-file
C-x v l egg-log
C-x v o egg-file-checkout-other-version
C-x v s egg-status
C-x v u egg-file-cancel-modifications
C-x v v egg-next-action
C-x v w egg-commit-log-edit
C-x v ~ egg-file-version-other-window
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.
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-Complete minor mode (no indicator):
Toggle Auto-Complete mode in every possible buffer.
With prefix ARG, turn Global-Auto-Complete mode on if and only if
ARG is positive.
Auto-Complete mode is enabled in all buffers where
`auto-complete-mode-maybe' would do it.
See `auto-complete-mode' for more information on Auto-Complete 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.
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'.
Menu-Bar minor mode (no indicator):
Toggle display of a menu bar on each frame.
This command applies to all frames that exist and frames to be
created in the future.
With a numeric argument, if the argument is positive,
turn on menu bars; otherwise, turn off menu bars.
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-%, M-x ispell, 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.
Yas/Global minor mode (no indicator):
Toggle Yas/Minor mode in every possible buffer.
With prefix ARG, turn Yas/Global mode on if and only if
ARG is positive.
Yas/Minor mode is enabled in all buffers where
`yas/minor-mode-on' would do it.
See `yas/minor-mode' for more information on Yas/Minor mode.
Yas/Minor minor mode (indicator yas):
Toggle YASnippet mode.
When YASnippet mode is enabled, the `tas/trigger-key' key expands
snippets of code depending on the mode.
With no argument, this command toggles the mode.
positive prefix argument turns on the mode.
Negative prefix argument turns off the mode.
You can customize the key through `yas/trigger-key'.
Key bindings:
key binding
--- -------
C-c Prefix Command
TAB yas/expand
C-c & Prefix Command
C-c & C-f yas/find-snippets
C-c & C-n yas/new-snippet
C-c & C-s yas/insert-snippet
C-c & C-v yas/visit-snippet-file
[back]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment