Fix code examples markup
This commit is contained in:
parent
dea250ba88
commit
a09faa5f1f
4 changed files with 25 additions and 25 deletions
|
@ -17,13 +17,13 @@ select another theme entirely).
|
||||||
To disable Zenburn just put in your personal config the following
|
To disable Zenburn just put in your personal config the following
|
||||||
line:
|
line:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(disable-theme 'zenburn)
|
(disable-theme 'zenburn)
|
||||||
```
|
```
|
||||||
|
|
||||||
Or you can use another theme altogether by adding something in `personal/preload` like:
|
Or you can use another theme altogether by adding something in `personal/preload` like:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(setq prelude-theme 'tango)
|
(setq prelude-theme 'tango)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ Or you can use another theme altogether by adding something in `personal/preload
|
||||||
To use a non-built-in theme, like [Solarized](https://github.com/bbatsov/solarized-emacs),
|
To use a non-built-in theme, like [Solarized](https://github.com/bbatsov/solarized-emacs),
|
||||||
you'll have to install it from MELPA first by `M-x package-install RET solarized-theme`. Then add
|
you'll have to install it from MELPA first by `M-x package-install RET solarized-theme`. Then add
|
||||||
|
|
||||||
``` lisp
|
```emacs-lisp
|
||||||
(setq prelude-theme 'solarized-dark)
|
(setq prelude-theme 'solarized-dark)
|
||||||
```
|
```
|
||||||
in `personal/preload`.
|
in `personal/preload`.
|
||||||
|
@ -40,7 +40,7 @@ in `personal/preload`.
|
||||||
Finally, if you don't want any theme at all, you can add this to your
|
Finally, if you don't want any theme at all, you can add this to your
|
||||||
`personal/preload`:
|
`personal/preload`:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(setq prelude-theme nil)
|
(setq prelude-theme nil)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ Suppose you want to configure `go-mode` to autoformat on each save. You
|
||||||
can create a file in `personal/`, let's call this one
|
can create a file in `personal/`, let's call this one
|
||||||
`config-go-mode.el` and add the following to it.
|
`config-go-mode.el` and add the following to it.
|
||||||
|
|
||||||
``` emacs-lisp
|
```emacs-lisp
|
||||||
(add-hook 'go-mode-hook
|
(add-hook 'go-mode-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(add-hook 'before-save-hook 'gofmt-before-save)
|
(add-hook 'before-save-hook 'gofmt-before-save)
|
||||||
|
@ -79,13 +79,13 @@ in the future.
|
||||||
If you'd like to add some auto installation of packages in your
|
If you'd like to add some auto installation of packages in your
|
||||||
personal config use the following code:
|
personal config use the following code:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(prelude-require-packages '(some-package some-other-package))
|
(prelude-require-packages '(some-package some-other-package))
|
||||||
```
|
```
|
||||||
|
|
||||||
If you require just a single package you can also use:
|
If you require just a single package you can also use:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(prelude-require-package 'some-package)
|
(prelude-require-package 'some-package)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ Although `whitespace-mode` is awesome, some people might find it too
|
||||||
intrusive. You can disable it in your
|
intrusive. You can disable it in your
|
||||||
personal config with the following bit of code:
|
personal config with the following bit of code:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(setq prelude-whitespace nil)
|
(setq prelude-whitespace nil)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ If you like `whitespace-mode`, but prefer it to not automatically
|
||||||
cleanup your file on save, you can disable that behavior by setting
|
cleanup your file on save, you can disable that behavior by setting
|
||||||
`prelude-clean-whitespace-on-save` to `nil` in your config file with:
|
`prelude-clean-whitespace-on-save` to `nil` in your config file with:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(setq prelude-clean-whitespace-on-save nil)
|
(setq prelude-clean-whitespace-on-save nil)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ cleanup your file on save, you can disable that behavior by setting
|
||||||
|
|
||||||
If you're not fond of spellchecking on the fly:
|
If you're not fond of spellchecking on the fly:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(setq prelude-flyspell nil)
|
(setq prelude-flyspell nil)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ If you're not fond of spellchecking on the fly:
|
||||||
If you prefer not to automatically format your file on save, you can disable that behavior by setting
|
If you prefer not to automatically format your file on save, you can disable that behavior by setting
|
||||||
`prelude-format-on-save` to `nil` in your config file with:
|
`prelude-format-on-save` to `nil` in your config file with:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(setq prelude-format-on-save nil)
|
(setq prelude-format-on-save nil)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ If you want to join a list of servers on `M-x start-irc`, other than
|
||||||
the default list, please redefine the variable `my-fav-irc` as follows
|
the default list, please redefine the variable `my-fav-irc` as follows
|
||||||
in your personal config
|
in your personal config
|
||||||
|
|
||||||
``` emacs-lisp
|
```emacs-lisp
|
||||||
(setq my-fav-irc '("irc.freenode.net"
|
(setq my-fav-irc '("irc.freenode.net"
|
||||||
"irc.oftc.net"
|
"irc.oftc.net"
|
||||||
"irc.mozilla.org"
|
"irc.mozilla.org"
|
||||||
|
@ -19,7 +19,7 @@ If you want to customize your IRC Last Quit Message from *Asta la
|
||||||
vista* to something more funkier, please redefine `bye-irc-message` as
|
vista* to something more funkier, please redefine `bye-irc-message` as
|
||||||
follows
|
follows
|
||||||
|
|
||||||
``` emacs-lisp
|
```emacs-lisp
|
||||||
(setq bye-erc-message "adios")
|
(setq bye-erc-message "adios")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ follows
|
||||||
If you want to automatically authenticate while logging into IRC
|
If you want to automatically authenticate while logging into IRC
|
||||||
servers set the `erc-prompt-for-password` to nil as follows
|
servers set the `erc-prompt-for-password` to nil as follows
|
||||||
|
|
||||||
``` emacs-lisp
|
```emacs-lisp
|
||||||
(setq erc-prompt-for-password nil)
|
(setq erc-prompt-for-password nil)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -45,6 +45,6 @@ to group all the ERC buffers into one perspective called `IRC` when
|
||||||
`start-irc` is called. To enable this set the `prelude-new-irc-persp`
|
`start-irc` is called. To enable this set the `prelude-new-irc-persp`
|
||||||
variable to true as follows
|
variable to true as follows
|
||||||
|
|
||||||
``` emacs-lisp
|
```emacs-lisp
|
||||||
(setq prelude-new-irc-persp t)
|
(setq prelude-new-irc-persp t)
|
||||||
```
|
```
|
||||||
|
|
|
@ -54,14 +54,14 @@ far as navigation is concerned at least).
|
||||||
If you'd like to be take this a step further and disable the arrow key navigation
|
If you'd like to be take this a step further and disable the arrow key navigation
|
||||||
completely put this in your personal config:
|
completely put this in your personal config:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(setq guru-warn-only nil)
|
(setq guru-warn-only nil)
|
||||||
```
|
```
|
||||||
|
|
||||||
To disable `guru-mode` completely add the following snippet to your
|
To disable `guru-mode` completely add the following snippet to your
|
||||||
personal Emacs config:
|
personal Emacs config:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(setq prelude-guru nil)
|
(setq prelude-guru nil)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ Prelude overrides `C-a` to behave as described
|
||||||
[here](http://emacsredux.com/blog/2013/05/22/smarter-navigation-to-the-beginning-of-a-line/). If
|
[here](http://emacsredux.com/blog/2013/05/22/smarter-navigation-to-the-beginning-of-a-line/). If
|
||||||
you don't like that simply add this to your personal config:
|
you don't like that simply add this to your personal config:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(global-set-key [remap move-beginning-of-line]
|
(global-set-key [remap move-beginning-of-line]
|
||||||
'move-beginning-of-line)
|
'move-beginning-of-line)
|
||||||
```
|
```
|
||||||
|
@ -86,13 +86,13 @@ The sorting algorithm `flx` uses is more complex, but yields better results.
|
||||||
On slower machines, it may be necessary to lower `flx-ido-threshold` to
|
On slower machines, it may be necessary to lower `flx-ido-threshold` to
|
||||||
ensure a smooth experience.
|
ensure a smooth experience.
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(setq flx-ido-threshold 1000)
|
(setq flx-ido-threshold 1000)
|
||||||
```
|
```
|
||||||
|
|
||||||
You can always disable the improved sorting algorithm all together like this:
|
You can always disable the improved sorting algorithm all together like this:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(flx-ido-mode -1)
|
(flx-ido-mode -1)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
10
doc/usage.md
10
doc/usage.md
|
@ -135,7 +135,7 @@ Prelude does not mess by default with the standard mapping of `Command` (to `Sup
|
||||||
|
|
||||||
If you want to swap them add this to your personal config:
|
If you want to swap them add this to your personal config:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(setq mac-command-modifier 'meta)
|
(setq mac-command-modifier 'meta)
|
||||||
(setq mac-option-modifier 'super)
|
(setq mac-option-modifier 'super)
|
||||||
```
|
```
|
||||||
|
@ -239,13 +239,13 @@ in which case you can disable the binding in your `personal.el` file by setting
|
||||||
its command to `nil`. For example, to disable the `jj` key-chord add the
|
its command to `nil`. For example, to disable the `jj` key-chord add the
|
||||||
following line:
|
following line:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(key-chord-define-global "jj" nil)
|
(key-chord-define-global "jj" nil)
|
||||||
```
|
```
|
||||||
|
|
||||||
If you're an `evil-mode` user you'll probably do well to disable `key-chord-mode` altogether:
|
If you're an `evil-mode` user you'll probably do well to disable `key-chord-mode` altogether:
|
||||||
|
|
||||||
```lisp
|
```emacs-lisp
|
||||||
(key-chord-mode -1)
|
(key-chord-mode -1)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -264,7 +264,7 @@ Use `C-h k <key>` (`<key>` are the ones listed on the left) or `C-h f <function>
|
||||||
|
|
||||||
Install [LaTeX](https://www.latex-project.org/get/)
|
Install [LaTeX](https://www.latex-project.org/get/)
|
||||||
|
|
||||||
``` bash
|
```bash
|
||||||
cd modules/doc
|
cd modules/doc
|
||||||
pdflatex prelude-cheatsheet.tex
|
pdflatex prelude-cheatsheet.tex
|
||||||
```
|
```
|
||||||
|
@ -273,7 +273,7 @@ pdflatex prelude-cheatsheet.tex
|
||||||
|
|
||||||
Install [Poppler](https://poppler.freedesktop.org/)
|
Install [Poppler](https://poppler.freedesktop.org/)
|
||||||
|
|
||||||
``` bash
|
```bash
|
||||||
cd modules/doc
|
cd modules/doc
|
||||||
pdftocairo -png -singlefile prelude-cheatsheet.pdf cheatsheet
|
pdftocairo -png -singlefile prelude-cheatsheet.pdf cheatsheet
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue