Emacs config utilizing prelude as a base
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

639 lines
23 KiB

12 years ago
12 years ago
13 years ago
14 years ago
14 years ago
12 years ago
12 years ago
12 years ago
  1. [![License GPL 3][badge-license]](http://www.gnu.org/licenses/gpl-3.0.txt)
  2. [![Gittip](http://img.shields.io/gittip/bbatsov.svg)](https://www.gittip.com/bbatsov/)
  3. Emacs Prelude
  4. =============
  5. Prelude is an Emacs distribution that aims to enhance the default
  6. Emacs experience. Prelude alters a lot of the default settings,
  7. bundles a plethora of additional packages and adds its own core
  8. library to the mix. The final product offers an easy to use Emacs
  9. configuration for Emacs newcomers and lots of additional power for
  10. Emacs power users.
  11. Prelude is compatible **ONLY with GNU Emacs 24.x**. In general you're
  12. advised to always run Prelude with the latest Emacs - currently
  13. **24.3**.
  14. **Table of Contents**
  15. - [Fast Forward](#fast-forward)
  16. - [Installing Emacs 24](#installing-emacs-24)
  17. - [Installation](#installation)
  18. - [Automated](#automated)
  19. - [Via Curl](#via-curl)
  20. - [Via Wget](#via-wget)
  21. - [Manual](#manual)
  22. - [Updating Prelude](#updating-prelude)
  23. - [Manual update](#manual-update)
  24. - [Update all bundled packages](#update-all-bundled-packages)
  25. - [Update Prelude's code](#update-preludes-code)
  26. - [Restart Prelude](#restart-prelude)
  27. - [Automatic update](#automatic-update)
  28. - [Enabling additional modules](#enabling-additional-modules)
  29. - [Running](#running)
  30. - [Getting to know Prelude](#getting-to-know-prelude)
  31. - [Keymap](#keymap)
  32. - [Global](#global)
  33. - [Prelude Mode](#prelude-mode)
  34. - [OSX modifier keys](#osx-modifier-keys)
  35. - [Projectile](#projectile)
  36. - [Key-chords](#key-chords)
  37. - [Disabling key-chords](#disabling-key-chords)
  38. - [Automatic package installation](#automatic-package-installation)
  39. - [Color Themes](#color-themes)
  40. - [Personalizing](#personalizing)
  41. - [Disabling whitespace-mode](#disabling-whitespace-mode)
  42. - [Disable flyspell-mode](#disable-flyspell-mode)
  43. - [Caveats & Pitfalls](#caveats--pitfalls)
  44. - [Updating bundled packages](#updating-bundled-packages)
  45. - [Problems with flyspell-mode](#problems-with-flyspell-mode)
  46. - [Ugly colors in the terminal Emacs version](#ugly-colors-in-the-terminal-emacs-version)
  47. - [MELPA error on initial startup](#melpa-error-on-initial-startup)
  48. - [No arrow navigation in editor buffers](#no-arrow-navigation-in-editor-buffers)
  49. - [Customized C-a behavior](#customized-c-a-behavior)
  50. - [Poor ido matching performance on large datasets](#poor-ido-matching-performance-on-large-datasets)
  51. - [Windows compatibility](#windows-compatibility)
  52. - [Known issues](#known-issues)
  53. - [Support](#support)
  54. - [Contributors](#contributors)
  55. - [Bugs & Improvements](#bugs--improvements)
  56. ## Fast Forward
  57. Assuming you're using an Unix-like OS (`*BSD`, `GNU/Linux`, `OS X`, `Solaris`,
  58. etc), you already have Emacs 24 installed, as well as `git` & `curl` you
  59. can skip the whole manual and just type in your favorite shell the
  60. following command:
  61. ```bash
  62. curl -L http://git.io/epre | sh
  63. ```
  64. You can now power up your Emacs, sit back and enjoy Prelude,
  65. forgetting about the rest of this manual.
  66. There are two environment variables you can use to control the
  67. source repository and the installation directory. To change the
  68. installation directory:
  69. ```bash
  70. export PRELUDE_INSTALL_DIR="$HOME/.emacs.d" && curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh
  71. ```
  72. To change the source repository:
  73. ```bash
  74. export PRELUDE_URL="https://github.com/yourname/prelude.git" && curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh
  75. ```
  76. Note that the installer will back up any existing `.emacs` file or
  77. `.emacs.d` since it will unpack Prelude's code in `.emacs.d`. If
  78. you're doing a manual install make sure you don't have a `.emacs` file
  79. or back up your existing `.emacs.d` directory manually.
  80. Don't forget to adjust your `prelude-modules.el` file once the installation is done.
  81. By default most of the modules that ship with Prelude are not loaded.
  82. ## Installing Emacs 24
  83. Obviously to use the Emacs Prelude you have to install Emacs 24
  84. first. Have a look at the [WikEmacs articles on installing Emacs](http://wikemacs.org/index.php/Installing_Emacs).
  85. ## Installation
  86. ### Automated
  87. You can install **Emacs Prelude** via the command line with either `curl` or
  88. `wget`. Naturally `git` is also required.
  89. #### Via Curl
  90. If you're using `curl` type the following command:
  91. ```bash
  92. curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh
  93. ```
  94. #### Via Wget
  95. If you're using `wget` type:
  96. ```bash
  97. wget --no-check-certificate https://github.com/bbatsov/prelude/raw/master/utils/installer.sh -O - | sh
  98. ```
  99. ### Manual
  100. ```bash
  101. git clone git://github.com/bbatsov/prelude.git path/to/local/repo
  102. ln -s path/to/local/repo ~/.emacs.d
  103. cd ~/.emacs.d
  104. ```
  105. If you are using Windows, you should check what Emacs thinks the `~` directory is by running Emacs and typing `C-x d ~/<RET>`, and then adjust the command appropriately.
  106. ## Updating Prelude
  107. ### Manual update
  108. The update procedure is fairly straightforward and consists of 3 steps:
  109. #### Update all bundled packages
  110. Just run <kbd>M-x package-list-packages RET U x</kbd>.
  111. #### Update Prelude's code
  112. ```bash
  113. cd path/to/prelude/installation
  114. git pull
  115. ```
  116. The `path/to/prelude/installation` is usually `~/.emacs.d` (at least
  117. on Unix systems).
  118. #### Restart Prelude
  119. It's generally a good idea to stop Emacs after you do the update. The
  120. next time Prelude starts it will install any new dependencies (if
  121. there are such).
  122. ### Automatic update
  123. Simply run <kbd>M-x prelude-update</kbd> from Emacs itself and restart Emacs afterwards.
  124. ## Enabling additional modules
  125. By default most of the modules that ship with Prelude are not loaded. For more information on the functionality provided by these modules visit the [docs](modules/doc/README.md).
  126. ```lisp
  127. ;;; Uncomment the modules you'd like to use and restart Prelude afterwards
  128. (require 'prelude-c)
  129. ;; (require 'prelude-clojure)
  130. ;; (require 'prelude-coffee)
  131. ;; (require 'prelude-common-lisp)
  132. ;; (require 'prelude-css)
  133. (require 'prelude-emacs-lisp)
  134. (require 'prelude-erc)
  135. ;; (require 'prelude-erlang)
  136. ;; (require 'prelude-haskell)
  137. (require 'prelude-js)
  138. ;; (require 'prelude-latex)
  139. (require 'prelude-lisp)
  140. ;; (require 'prelude-mediawiki)
  141. (require 'prelude-org)
  142. (require 'prelude-perl)
  143. ;; (require 'prelude-python)
  144. ;; (require 'prelude-ruby)
  145. ;; (require 'prelude-scala)
  146. (require 'prelude-scheme)
  147. ;; (require 'prelude-scss)
  148. ;; (require 'prelude-web)
  149. (require 'prelude-xml)
  150. ```
  151. You'll need to adjust your `prelude-modules.el` file once the
  152. installation is done. If you are doing a manual install then you first
  153. need to copy the `prelude-modules.el` available in the sample
  154. directory to the root of `path/to/prelude/installation` and then
  155. adjust that one.
  156. After you've uncommented a module you should either restart Emacs or evaluate the module
  157. `require` expression with <kbd>C-x C-e</kbd>.
  158. ## Running
  159. Nothing fancy here. Just start Emacs as usual. Personally I run Emacs
  160. in daemon mode:
  161. ```bash
  162. emacs --daemon
  163. ```
  164. Afterwards I connect to the server with either a terminal or a GUI
  165. client like this:
  166. ```bash
  167. emacsclient -t
  168. emacsclient -c
  169. ```
  170. You'd probably do well to put a few aliases in your `.zshrc` (or
  171. `.bashrc`):
  172. ```bash
  173. alias e='emacsclient -t'
  174. alias ec='emacsclient -c'
  175. alias vim='emacsclient -t'
  176. alias vi='emacsclient -t'
  177. ```
  178. The last two aliases are helpful if you're used to editing files from
  179. the command line using `vi(m)`.
  180. ## Getting to know Prelude
  181. Certainly the best way to understand how Prelude enhances the default
  182. Emacs experience is to peruse Prelude's source code (which is
  183. obviously written in Emacs Lisp). Understanding the code is not
  184. necessary of course. Prelude includes a `prelude-mode` minor Emacs mode
  185. which collects some of the additional functionality added by
  186. Prelude. It also adds an additional keymap that binds many of those
  187. extensions to keybindings.
  188. ### Keymap
  189. #### Global
  190. Keybinding | Description
  191. -------------------|------------------------------------------------------------
  192. <kbd>C-x \\</kbd> | `align-regexp`
  193. <kbd>C-+</kbd> | Increase font size(`text-scale-increase`).
  194. <kbd>C--</kbd> | Decrease font size(`text-scale-decrease`).
  195. <kbd>C-x O</kbd> | Go back to previous window (the inverse of `other-window` (`C-x o`)).
  196. <kbd>C-^</kbd> | Join two lines into one(`prelude-top-join-line`).
  197. <kbd>C-x p</kbd> | Start `proced` (manage processes from Emacs; works only in Linux).
  198. <kbd>C-x m</kbd> | Start `eshell`.
  199. <kbd>C-x M-m</kbd> | Start your default shell.
  200. <kbd>C-x C-m</kbd> | Alias for `M-x`.
  201. <kbd>C-h A</kbd> | Run `apropos` (search in all Emacs symbols).
  202. <kbd>C-h C-m</kbd> | Display key bindings of current major mode and descriptions of every binding.
  203. <kbd>M-/</kbd> | Run `hippie-expand` (a replacement for the default `dabbrev-expand`).
  204. <kbd>C-x C-b</kbd> | Open `ibuffer` (a replacement for the default `buffer-list`).
  205. <kbd>F11</kbd> | Make the window full screen.
  206. <kbd>F12</kbd> | Toggle the Emacs menu bar.
  207. <kbd>C-x g</kbd> | Open Magit's status buffer.
  208. <kbd>C-=</kbd> | Run `expand-region` (incremental text selection).
  209. <kbd>C-a</kbd> | Run `prelude-move-beginning-of-line`. Read [this](http://emacsredux.com/blog/2013/05/22/smarter-navigation-to-the-beginning-of-a-line/) for details.
  210. #### Prelude Mode
  211. Keybinding | Description
  212. -------------------|------------------------------------------------------------
  213. <kbd>C-c o</kbd> | Open the currently visited file with an external program.
  214. <kbd>C-c i</kbd> | Search for a symbol, only for buffers that contain code
  215. <kbd>C-c g</kbd> | Search in Google for the thing under point (or an interactive query).
  216. <kbd>C-c G</kbd> | Search in GitHub for the thing under point (or an interactive query).
  217. <kbd>C-c y</kbd> | Search in YouTube for the thing under point (or an interactive query).
  218. <kbd>C-c U</kbd> | Search in Duckduckgo for the thing under point (or an interactive query).
  219. <kbd>C-S-RET</kbd> or <kbd>Super-o</kbd> | Insert an empty line above the current line and indent it properly.
  220. <kbd>S-RET</kbd> or <kbd>M-o</kbd> | Insert an empty line and indent it properly (as in most IDEs).
  221. <kbd>C-S-up</kbd> or <kbd>M-S-up</kbd> | Move the current line or region up.
  222. <kbd>C-S-down</kbd> or <kbd>M-S-down</kbd>| Move the current line or region down.
  223. <kbd>C-c n</kbd> | Fix indentation in buffer and strip whitespace.
  224. <kbd>C-c f</kbd> | Open recently visited file.
  225. <kbd>C-M-\\</kbd> | Indent region (if selected) or the entire buffer.
  226. <kbd>C-c u</kbd> | Open a new buffer containing the contents of URL.
  227. <kbd>C-c e</kbd> | Eval a bit of Emacs Lisp code and replace it with its result.
  228. <kbd>C-c s</kbd> | Swap two active windows.
  229. <kbd>C-c D</kbd> | Delete current file and buffer.
  230. <kbd>C-c d</kbd> | Duplicate the current line (or region).
  231. <kbd>C-c M-d</kbd> | Duplicate and comment the current line (or region).
  232. <kbd>C-c r</kbd> | Rename the current buffer and its visiting file if any.
  233. <kbd>C-c t</kbd> | Open a terminal emulator (`ansi-term`).
  234. <kbd>C-c k</kbd> | Kill all open buffers except the one you're currently in.
  235. <kbd>C-c TAB</kbd> | Indent and copy region to clipboard
  236. <kbd>C-c h</kbd> | Open Helm (available if you've enabled the `prelude-helm` module).
  237. <kbd>C-c I</kbd> | Open user's init file.
  238. <kbd>C-c S</kbd> | Open shell's init file.
  239. <kbd>C-c . +</kbd> | Increment integer at point. Default is +1.
  240. <kbd>C-c . -</kbd> | Decrement integer at point. Default is -1.
  241. <kbd>C-c . *</kbd> | Multiply integer at point. Default is *2.
  242. <kbd>C-c . /</kbd> | Divide integer at point. Default is /2.
  243. <kbd>C-c . \\</kbd> | Modulo integer at point. Default is modulo 2.
  244. <kbd>C-c . ^</kbd> | Power to the integer at point. Default is ^2.
  245. <kbd>C-c . <</kbd> | Left-shift integer at point. Default is 1 position to the left.
  246. <kbd>C-c . ></kbd> | Right-shift integer at point. Default is 1 position to the right.
  247. <kbd>C-c . #</kbd> | Convert integer at point to specified base. Default is 10.
  248. <kbd>C-c . %</kbd> | Replace integer at point with another specified integer.
  249. <kbd>C-c . '</kbd> | Perform arithmetic operations on integer at point. User specifies the operator.
  250. <kbd>Super-g</kbd> | Toggle between God mode and non-God mode
  251. <kbd>Super-r</kbd> | Recent files
  252. <kbd>Super-j</kbd> | Join lines
  253. <kbd>Super-k</kbd> | Kill whole line
  254. <kbd>Super-m m</kbd> | Magit status
  255. <kbd>Super-m l</kbd> | Magit log
  256. <kbd>Super-m f</kbd> | Magit file log
  257. <kbd>Super-m b</kbd> | Magit blame mode
  258. **Note**: For various arithmetic operations, the prefix `C-c .` only needs to be pressed once for the first operation.
  259. For subsequent operations, only the appropriate operations (i.e. `+`, `-`, `*`, `/`... needs to be pressed).
  260. #### OSX modifier keys
  261. Prelude does not mess by default with the standard mapping of `Command` (to `Super`) and `Option` (to `Meta`).
  262. If you want to swap them add this to your personal config:
  263. ```lisp
  264. (setq mac-command-modifier 'meta)
  265. (setq mac-option-modifier 'super)
  266. ```
  267. You can also temporarily swap them with `C-c w` (`M-x prelude-swap-meta-and-super`).
  268. #### Projectile
  269. Here's a list of functionality provided by [Projectile](https://github.com/bbatsov/projectile):
  270. Keybinding | Description
  271. -------------------|------------------------------------------------------------
  272. <kbd>C-c p f</kbd> | Display a list of all files in the project. With a prefix argument it will clear the cache first.
  273. <kbd>C-c p d</kbd> | Display a list of all directories in the project. With a prefix argument it will clear the cache first.
  274. <kbd>C-c p T</kbd> | Display a list of all test files(specs, features, etc) in the project.
  275. <kbd>C-c p s g</kbd> | Run grep on the files in the project.
  276. <kbd>M-- C-c p s g</kbd> | Run grep on `projectile-grep-default-files` in the project.
  277. <kbd>C-c p b</kbd> | Display a list of all project buffers currently open.
  278. <kbd>C-c p o</kbd> | Runs `multi-occur` on all project buffers currently open.
  279. <kbd>C-c p r</kbd> | Runs interactive query-replace on all files in the projects.
  280. <kbd>C-c p i</kbd> | Invalidates the project cache (if existing).
  281. <kbd>C-c p R</kbd> | Regenerates the projects `TAGS` file.
  282. <kbd>C-c p k</kbd> | Kills all project buffers.
  283. <kbd>C-c p D</kbd> | Opens the root of the project in `dired`.
  284. <kbd>C-c p e</kbd> | Shows a list of recently visited project files.
  285. <kbd>C-c p s a</kbd> | Runs `ack` on the project. Requires the presence of `ack-and-a-half`.
  286. <kbd>C-c p s s</kbd> | Runs `ag` on the project. Requires the presence of `ag.el`.
  287. <kbd>C-c p a</kbd> | Runs `ack` on the project. Requires the presence of `ack-and-a-half`.
  288. <kbd>C-c p c</kbd> | Runs a standard compilation command for your type of project.
  289. <kbd>C-c p p</kbd> | Runs a standard test command for your type of project.
  290. <kbd>C-c p z</kbd> | Adds the currently visited to the cache.
  291. <kbd>C-c p p</kbd> | Display a list of known projects you can switch to.
  292. Prelude adds an extra keymap prefix `S-p` (`S` stands for
  293. `Super`), so you can use `S-p` instead of `C-c p`.
  294. If you ever forget any of Projectile's keybindings just do a:
  295. <kbd>C-c p C-h</kbd>
  296. #### Key-chords
  297. **Key-chords are available only when the `prelude-key-chord` module has been enabled.**
  298. Keybinding | Description
  299. -------------------|----------------------------------------------
  300. <kbd>jj</kbd> | Jump to the beginning of a word(`ace-jump-word-mode`)
  301. <kbd>jk</kbd> | Jump to a character(`ace-jump-char-mode`)
  302. <kbd>jl</kbd> | Jump to the beginning of a line(`ace-jump-line-mode`)
  303. <kbd>JJ</kbd> | Jump back to previous buffer(`prelude-switch-to-previous-buffer`)
  304. <kbd>uu</kbd> | View edits as a tree(`undo-tree-visualize`)
  305. <kbd>xx</kbd> | Executed extended command(`execute-extended-command`)
  306. <kbd>yy</kbd> | Browse the kill ring(`browse-kill-ring`)
  307. ##### Disabling key-chords
  308. In some cases you may not want to have a key-chord that is defined by prelude,
  309. in which case you can disable the binding in your `personal.el` file by setting
  310. its command to `nil`. For example, to disable the `jj` key-chord add the
  311. following line:
  312. ```lisp
  313. (key-chord-define-global "jj" nil)
  314. ```
  315. If you're an `evil-mode` user you'll probably do well to disable `key-chord-mode` altogether:
  316. ```lisp
  317. (key-chord-mode -1)
  318. ```
  319. #### vim emulation
  320. If you want to use vim inside of emacs enable the `prelude-evil` module which provides
  321. support for `evil-mode`.
  322. ## Automatic package installation
  323. The default Prelude installation comes with a bare minimum of
  324. functionality. It will however install add-ons for various programming
  325. languages and frameworks on demand. For instance - if you try to open
  326. a `.clj` file `clojure-mode`, `cider` and Prelude's enhanced Lisp
  327. configuration will be installed automatically for you.
  328. You can, of course, install anything you wish manually as well.
  329. ### Color Themes
  330. Emacs 24 ships with a new theming facility that effectively renders
  331. the old color-theme package obsolete. Emacs 24 provides a dozen of
  332. built-in themes you can use out-of-the-box by invoking the `M-x
  333. load-theme` command.
  334. [Zenburn](https://github.com/bbatsov/zenburn-emacs) is the default color theme in Prelude, but you can change it
  335. at your discretion. Why Zenburn? I (and lots of hackers around the
  336. world) find it pretty neat for some reason. Personally I find the
  337. default theme pretty tiresome for the eyes, that's why I took that
  338. "controversial" decision to replace it. You can, of course, easily go
  339. back to the default (or select another theme entirely).
  340. To disable Zenburn just put in your personal config the following
  341. line:
  342. ```lisp
  343. (disable-theme 'zenburn)
  344. ```
  345. Or you can use another theme altogether by adding something like:
  346. ```lisp
  347. (load-theme 'solarized-dark t)
  348. ```
  349. **P.S.** Solarized is not available by default - you'll have to
  350. install it from MELPA first (`M-x package-install RET
  351. solarized-theme`).
  352. ### Personalizing
  353. Fork the official Prelude repo and add your own touch to it. You're advised to avoid changing stuff outside of the
  354. personal folder to avoid having to deal with git merge conflicts in the future.
  355. If you'd like to add some auto installation of packages in your
  356. personal config use the following code:
  357. ```lisp
  358. (prelude-require-packages '(some-package some-other-package))
  359. ```
  360. If you require just a single package you can also use:
  361. ```lisp
  362. (prelude-require-package 'some-package)
  363. ```
  364. #### Preloading personal config
  365. Sometimes you might want to load code before Prelude has started loading. Prelude will automatically preload all
  366. Emacs Lisp files in your `personal/preload` directory. Note that at this point you can't using anything from
  367. Prelude, except a few variables like `prelude-dir`, etc (since nothing is yet loaded).
  368. #### Disabling whitespace-mode
  369. Although `whitespace-mode` is awesome some people might find it too
  370. intrusive. You can disable it in your
  371. personal config with the following bit of code:
  372. ```lisp
  373. (setq prelude-whitespace nil)
  374. ```
  375. If you like `whitespace-mode` but prefer it to not automatically
  376. cleanup your file on save, you can disable that behavior by setting
  377. prelude-clean-whitespace-on-save to nil in your config file with:
  378. ```lisp
  379. (setq prelude-clean-whitespace-on-save nil)
  380. ```
  381. The prelude-clean-whitespace-on-save setting can also be set on a
  382. per-file or directory basis by using a file variable or a
  383. .dir-locals.el file.
  384. #### Disable flyspell-mode
  385. If you're not fond of spellchecking on the fly:
  386. ```lisp
  387. (setq prelude-flyspell nil)
  388. ```
  389. ## Caveats & Pitfalls
  390. ### Updating bundled packages
  391. Generally it's a good idea to do a package update before running
  392. updating Prelude, since the latest Prelude code might depend on newer
  393. versions of the bundled packages than you would currently have
  394. installed.
  395. If you're doing manual Prelude updates you should always do a package update first.
  396. `M-x package-list-packages RET U x`
  397. That's not necessary if you're using `M-x prelude-update`, since it
  398. will automatically update the installed packages.
  399. ### Problems with flyspell-mode
  400. Prelude makes heavy use of the flyspell-mode package for spell
  401. checking of various things. The proper operation of flyspell depends
  402. on the presence of the `aspell` program and an `en` dictionary on your
  403. system. You can install `aspell` and the dictionary on OS X with
  404. `homebrew` like this:
  405. ```bash
  406. brew install aspell --with-lang=en
  407. ```
  408. On Linux distros - just use your distro's package manager.
  409. ### Ugly colors in the terminal Emacs version
  410. If your Emacs looks considerably uglier in a terminal (compared to the
  411. GUI version) try adding this to your `.bashrc` or `.zshrc`:
  412. ```bash
  413. export TERM=xterm-256color
  414. ```
  415. Source the `.bashrc` file and start Emacs again.
  416. ### MELPA error on initial startup
  417. If you get some http connection error related to the MELPA repo
  418. just do a manual `M-x package-refresh-contents` and restart Emacs
  419. afterwards.
  420. ### No arrow navigation in editor buffers
  421. This is not a bug - it's a feature! I firmly believe that the one true
  422. way to use Emacs is by using it the way it was intended to be used (as
  423. far as navigation is concerned at least). That's why I've disabled all
  424. movement commands with arrows (and keys like page up, page down,
  425. etc) - to prevent you from being tempted to use them.
  426. If you'd like to be able to use the arrow keys (but still be reminded of
  427. the alternatives) put this in your personal config:
  428. ```lisp
  429. (setq guru-warn-only t)
  430. ```
  431. To disable `guru-mode` completely add the following snippet to your
  432. personal Emacs config:
  433. ```lisp
  434. (setq prelude-guru nil)
  435. ```
  436. ### Customized C-a behavior
  437. Prelude overrides `C-a` to behave as described
  438. [here](http://emacsredux.com/blog/2013/05/22/smarter-navigation-to-the-beginning-of-a-line/). If
  439. you don't like that simply add this to your personal config:
  440. ```lisp
  441. (global-set-key [remap move-beginning-of-line]
  442. 'move-beginning-of-line)
  443. ```
  444. ### Poor ido matching performance on large datasets
  445. Prelude swaps the default `ido` flex matching with the more powerful
  446. [ido-flx](https://github.com/lewang/flx).
  447. The sorting algorithm `flx` uses is more complex, but yields better results.
  448. On slower machines, it may be necessary to lower `flx-ido-threshhold` to
  449. ensure a smooth experience.
  450. ```lisp
  451. (setq flx-ido-threshhold 1000)
  452. ```
  453. You can always disable the improved sorting algorithm all together like this:
  454. ```lisp
  455. (flx-ido-mode -1)
  456. ```
  457. ### Windows compatibility
  458. While everything in Prelude should work fine in Windows, I test it only
  459. with Linux & OSX, so there are Windows related problems from time to
  460. time. This situation will probably improve over time.
  461. ## Known issues
  462. Check out the project's
  463. [issue list](https://github.com/bbatsov/prelude/issues?sort=created&direction=desc&state=open)
  464. a list of unresolved issues. By the way - feel free to fix any of them
  465. and send me a pull request. :-)
  466. ## Support
  467. Support is available via the Prelude Google Group <emacs-prelude@googlegroups.com>.
  468. There's also a Freenode channel you can visit - `#prelude-emacs`.
  469. ## Contributors
  470. Here's a [list](https://github.com/bbatsov/prelude/contributors) of all the people who have contributed to the
  471. development of Emacs Prelude.
  472. ## Bugs & Improvements
  473. Bug reports and suggestions for improvements are always
  474. welcome. GitHub pull requests are even better! :-)
  475. I'm also accepting financial contributions via [gittip](https://www.gittip.com/bbatsov).
  476. [![Support via Gittip](https://rawgithub.com/twolfson/gittip-badge/0.2.0/dist/gittip.png)](https://www.gittip.com/bbatsov)
  477. Cheers,<br/>
  478. [Bozhidar](https://twitter.com/bbatsov)
  479. [badge-license]: https://img.shields.io/badge/license-GPL_3-green.svg