https://wikemacs.org/api.php?action=feedcontributions&user=211.27.195.116&feedformat=atomWikEmacs - User contributions [en]2024-03-28T14:47:21ZUser contributionsMediaWiki 1.35.14https://wikemacs.org/index.php?title=Prelude&diff=3715Prelude2013-03-12T11:09:48Z<p>211.27.195.116: /* Basic setup */</p>
<hr />
<div>{{Package<br />
|name=Emacs Prelude<br />
|description=Advanced Emacs config<br />
|author=[[User:Bozhidar|Bozhidar Batsov]]<br />
|maintainer=[[User:Bozhidar|Bozhidar Batsov]]<br />
|source=https://github.com/bbatsov/prelude<br />
}}<br />
<br />
'''Prelude''' has the goal to ease the initial Emacs setup process and to provide you with a much more powerful and productive experience than that you get out of the box. By using Emacs Prelude you're basically getting a "Get me out of the Prelude, I just want to use Emacs" card.<br />
<br />
Emacs Prelude is compatible ONLY with GNU Emacs 24.<br />
<br />
= Basic setup =<br />
<br />
Assuming you're using an Unix-like OS (*BSD, GNU/Linux, OS X, Solaris, etc), you already have Emacs 24 installed, as well as git & curl you can skip the whole manual and just type in your favorite shell the following command:<br />
<br />
<syntaxhighlight lang="bash"><br />
# curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh<br />
# You really should not be running commands from an anonymously editable wiki<br />
</syntaxhighlight><br />
<br />
You can now power up your Emacs, sit back and enjoy Prelude.<br />
<br />
= Helpful keybindings =<br />
<br />
; {{Keys|C-c f}}<br />
: Find a recently accessed file.<br />
<br />
; {{Keys|C-c r}}<br />
: Rename file and buffer.<br />
<br />
<!-------------------------------------------------------------------------><br />
= Common Customization =<br />
<!-- Customization common to all platforms goes here --><br />
<br />
You can tweak Prelude's config by adding '''.el''' files under the<br />
'''personal''' directory. All files ending in ".el" will be read automatically when emacs starts up.<br />
<br />
== Re-enable the arrow keys ==<br />
<br />
Arrow keys for navigation are turned off by default. This is to get people to use the preferred Emacs defaults. To re-enable them, add the following to a file in your personal directory:<br />
<br />
<syntaxhighlight lang="lisp"><br />
(defun disable-guru-mode ()<br />
(guru-mode -1)<br />
)<br />
(add-hook 'prelude-prog-mode-hook 'disable-guru-mode t)<br />
</syntaxhighlight><br />
<br />
== Turn off whitespace mode ==<br />
<br />
Prelude adds a lot of functionality from whitespace mode, including line-ending markers, highlighting of long-lines, space visualization. If you find these distracting, add the following to a file in your personal directory:<br />
<br />
<syntaxhighlight lang="lisp"><br />
(add-hook 'prog-mode-hook 'prelude-turn-off-whitespace t)<br />
</syntaxhighlight><br />
<br />
== Change the default theme ==<br />
<br />
Emacs Prelude uses the Zenburn theme by default, but you can easily<br />
change this:<br />
<br />
<syntaxhighlight lang="lisp"><br />
(load-theme 'solarized-dark t)<br />
</syntaxhighlight><br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[GNU/Linux]] =<br />
<!-- Customization/Notes specific to GNU/Linux goes here --><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[OS X]] =<br />
<!-- Customization/Notes specific to OS X goes here --><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[Windows]] =<br />
<!-- Customization/Notes specific to Windows goes here --><br />
Note: on Windows 7 (Enterprise), <br />
<br />
ln -s <prelude-directory> ~/emacs.d <br />
<br />
did not work. But copying the content of prelude directory to .emacs.d worked as expected. <br />
<br />
Note: it also expects git to be on the system paths defined in PATH. I used git from Cygwin. It worked.<br />
<br />
= See Also =<br />
[[Emacs Starter Kit]]<br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Project Pages =<br />
* [http://batsov.com/prelude Project Page]<br />
* [http://github.com/bbatsov/prelude GitHub]<br />
* [http://github.com/bbatsov/prelude-modules Add-ons for Prelude]<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Tutorial Pages =<br />
<br />
<!-------------------------------------------------------------------------><br />
<!-- Add categories based on user-level (beginner etc), user-role (programming, emacs contributor etc), platform (windows, linux etc) or work flow (text editing, document authoring etc) --><br />
<br />
[[Category:Beginner]][[Category:Starter Kit]]</div>211.27.195.116