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 enhancesthe 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-modeminor
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
Keybinding | Description |
---|---|
C-M-h | Kill 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 O | Go back to previous window (the inverse of other-window( C-x o)). |
C-^ | Join two lines into one(prelude-top-join-line). |
C-x p | Start proced(manage processes from Emacs; works only in Linux). |
C-x m | Start eshell. |
C-x M-m | Start your default shell. |
C-x C-m | Alias for M-x. |
C-h A | Run apropos(search in all Emacs symbols). |
M-/ | Run hippie-expand(a replacement for the default dabbrev-expand). |
C-x C-b | Open ibuffer(a replacement for the default buffer-list). |
F11 | Make the window full screen. |
F12 | Toggle the Emacs menu bar. |
C-x g | Open Magit's status buffer. |
C-= | Run expand-region(incremental text selection). |
C-a | Run prelude-move-beginning-of-line. Read this for details. |
Prelude Mode
Keybinding | Description |
---|---|
C-c o | Open the currently visited file with an external program. |
C-c g | Search in Google for the thing under point (or an interactive query). |
C-c G | Search in GitHub for the thing under point (or an interactive query). |
C-c y | Search in YouTube for the thing under point (or an interactive query). |
C-S-RET or M-o | Insert an empty line above the current line and indent it properly |
S-RET or M-O | Insert an empty line and indent it properly (as in most IDEs). |
C-S-up or M-S-up | Move the current line or region up. |
C-S-down or M-S-down | Move the current line or region down. |
C-c n | Fix indentation in buffer and strip whitespace. |
C-c f | Open recently visited file. |
C-M-\ | Indent region (if selected) or the entire buffer. |
C-c u | Open URL in your default browser. |
C-c e | Eval a bit of Emacs Lisp code and replace it with its result. |
C-c s | Swap two active windows. |
C-c d | Duplicate the current line (or region). |
C-c M-d | Duplicate and comment the current line (or region). |
C-c r | Rename the currently visited file and buffer. |
C-c t | Open a terminal emulator (ansi-term). |
C-c k | Kill all open buffers except the one you're currently in. |
C-c h | Open Helm (a useful means of navigating your buffers and project files). |
C-c + | Increment integer at point. |
C-c - | Decrement integer at point. |
Super-r | Recent files |
Super-x | Expand region |
Super-j | Join lines |
Super-k | Kill whole line |
Super-m m | Magit status |
Super-m l | Magit log |
Super-m f | Magit file log |
Super-m b | Magit blame mode |
Super-o | Open line above current line |
相关文章推荐
- 022-block与@protocol-OC笔记
- 剑指offer—二叉搜索树的第k个结点
- 卡榫函数
- on the way to c++
- UVa 893 - Y3K Problem
- 南阳oj A+BproblemII Java 解决 题目103
- Django中关于url的用法
- 021-ARC与分类-OC笔记
- 020-OC内存管理-OC笔记
- 缩放图片
- LA 3667 Ruler 两种不同形式的搜索来解决
- DEDECMS修改文章TAG 给TAG加链接 去掉TAG字数限制
- c#遍历checkBox控件,并用MessageBox显示出来
- 卡榫函数实现API
- Leetcode87: Find Minimum in Rotated Sorted Array
- 019-OC特有语法-OC笔记
- 理解依赖注入(Dependency Injection)
- 剑指offer—把二叉树打印成多行
- break 和continue以及return的区别
- leetcode 21:Merge Two Sorted Lists(15-10-9)