您的位置:首页 > 其它

emacs - Prelude

2015-10-08 21:42 211 查看


Prelude by bbatsov
http://batsov.com/prelude/

1.

cd %appdata%/.emacs.d

2.

git clone git://github.com/bbatsov/prelude.git




Getting to know Prelude

Certainly the best way to understand how Prelude enhances
the default Emacs experience is to perusePrelude's
source code (which is obviously written in Emacs Lisp). Understanding the code is not necessary of course. Prelude includes
a
prelude-mode
minor
Emacs mode which collects some of the additional functionality added by Prelude.
It also adds an additional keymap that binds many of those extensions to keybindings.


Keymap


Global

KeybindingDescription
C-M-hKill the previous word(
backward-kill-word
).
(as in Bash/Zsh)
C-x \
align-regexp
C-+Increase font size(
text-scale-increase
).
C--Decrease font size(
text-scale-decrease
).
C-x OGo back to previous window (the inverse of
other-window
(
C-x
 o
)).
C-^Join two lines into one(
prelude-top-join-line
).
C-x pStart
proced
(manage
processes from Emacs; works only in Linux).
C-x mStart
eshell
.
C-x M-mStart your default shell.
C-x C-mAlias for
M-x
.
C-h ARun
apropos
(search
in all Emacs symbols).
M-/Run
hippie-expand
(a
replacement for the default
dabbrev-expand
).
C-x C-bOpen
ibuffer
(a
replacement for the default
buffer-list
).
F11Make the window full screen.
F12Toggle the Emacs menu bar.
C-x gOpen Magit's status buffer.
C-=Run
expand-region
(incremental
text selection).
C-aRun
prelude-move-beginning-of-line
.
Read this for
details.


Prelude Mode

KeybindingDescription
C-c oOpen the currently visited file with an external program.
C-c gSearch in Google for the thing under point (or an interactive query).
C-c GSearch in GitHub for the thing under point (or an interactive query).
C-c ySearch in YouTube for the thing under point (or an interactive query).
C-S-RET or M-oInsert an empty line above the current line and indent it properly
S-RET or M-OInsert an empty line and indent it properly (as in most IDEs).
C-S-up or M-S-upMove the current line or region up.
C-S-down or M-S-downMove the current line or region down.
C-c nFix indentation in buffer and strip whitespace.
C-c fOpen recently visited file.
C-M-\Indent region (if selected) or the entire buffer.
C-c uOpen URL in your default browser.
C-c eEval a bit of Emacs Lisp code and replace it with its result.
C-c sSwap two active windows.
C-c dDuplicate the current line (or region).
C-c M-dDuplicate and comment the current line (or region).
C-c rRename the currently visited file and buffer.
C-c tOpen a terminal emulator (
ansi-term
).
C-c kKill all open buffers except the one you're currently in.
C-c hOpen Helm (a useful means of navigating your buffers and project files).
C-c +Increment integer at point.
C-c -Decrement integer at point.
Super-rRecent files
Super-xExpand region
Super-jJoin lines
Super-kKill whole line
Super-m mMagit status
Super-m lMagit log
Super-m fMagit file log
Super-m bMagit blame mode
Super-oOpen line above current line
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: