Commit e2314ec5 authored by Jeko's avatar Jeko 🌞
Browse files

Minor fix

parent 70771753
......@@ -19,14 +19,14 @@ This book is not intended to teach how to use Emacs. So I propose you hereafter
#### Highlight cursor line
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(global-hl-line-mode +1)
```
#### Highlight the pair of delimiters under the cursor
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(show-paren-mode 1)
(setq show-paren-delay 0)
```
......@@ -42,7 +42,7 @@ $ guix install emacs-rainbow-delimiters
*Activation*
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(require 'rainbow-delimiters)
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
```
......@@ -65,7 +65,7 @@ $ guix install emacs-geiser
M-x run-oil
```
*Use*
*Usage*
You can refer to [https://www.nongnu.org/geiser/geiser_5.html#Cheat-sheet](https://www.nongnu.org/geiser/geiser_5.html#Cheat-sheet)
......@@ -80,7 +80,7 @@ $ guix install emacs-ac-geiser
*Activation*
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(ac-config-default)
(require 'ac-geiser)
(add-hook 'geiser-mode-hook 'ac-geiser-setup)
......@@ -100,13 +100,13 @@ $ guix install emacs-paredit
*Activation*
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(require 'paredit)
(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
(add-hook 'scheme-mode-hook #'enable-paredit-mode)
```
*Use*
*Usage*
I couldn't do better than [this guide by Dan Midwood](http://danmidwood.com/content/2014/11/21/animated-paredit.html).
......@@ -122,13 +122,13 @@ $ guix install emacs-iedit
*Activation*
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(require 'iedit)
```
*Use*
*Usage*
`C-;` on a word to edit all its occurrences.
`C-;` on a word to edit all its occurrences.
`C-0 C-;` on a word to edit all its occurrences in the active region.
#### Edit several places in the file in the same way simultaneously.
......@@ -142,7 +142,7 @@ $ guix install emacs-multiple-cursors
*Activation*
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(require 'multiple-cursors)
(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
......@@ -150,9 +150,9 @@ $ guix install emacs-multiple-cursors
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)
```
*Use*
*Usage*
`C->` Add a cursor on the next line
`C->` Add a cursor on the next line
`C-<` Add a cursor on the previous line
When editing is finished, `C-g`.
......@@ -163,7 +163,7 @@ When editing is finished, `C-g`.
*Installation*
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(if (not (package-installed-p 'emr))
(progn
(package-refresh-contents)
......@@ -173,6 +173,7 @@ When editing is finished, `C-g`.
*Activation*
```lisp
;; paste this lines into your emacs config file
(require 'emr)
(autoload 'emr-show-refactor-menu "emr")
(define-key prog-mode-map (kbd "M-RET") 'emr-show-refactor-menu)
......@@ -183,5 +184,5 @@ When editing is finished, `C-g`.
*Usage*
`M-v` Extract a variable
`M-v` Extract a variable
`M-f` Extract a function
......@@ -19,14 +19,14 @@ Cet ouvrage n'a pas pour vocation à apprendre à utiliser Emacs. Je te propose
#### Surligner la ligne du curseur
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(global-hl-line-mode +1)
```
#### Surligner la paire de délimiteurs sous le curseur
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(show-paren-mode 1)
(setq show-paren-delay 0)
```
......@@ -39,10 +39,10 @@ Cet ouvrage n'a pas pour vocation à apprendre à utiliser Emacs. Je te propose
$ guix install emacs-rainbow-delimiters
```
**Activation*
*Activation*
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(require 'rainbow-delimiters)
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
```
......@@ -78,7 +78,7 @@ $ guix install emacs-ac-geiser
*Activation*
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(ac-config-default)
(require 'ac-geiser)
(add-hook 'geiser-mode-hook 'ac-geiser-setup)
......@@ -98,7 +98,7 @@ $ guix install emacs-paredit
*Activation*
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(require 'paredit)
(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
(add-hook 'scheme-mode-hook #'enable-paredit-mode)
......@@ -120,13 +120,13 @@ $ guix install emacs-iedit
*Activation*
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(require 'iedit)
```
*Utilisation*
`C-;` sur un mot pour éditer toutes ses occurences.
`C-;` sur un mot pour éditer toutes ses occurences.
`C-0 C-;` sur un mot pour éditer toutes ses occurences dans la région active.
#### Éditer plusieurs endroits du fichier de la même manière simultanément
......@@ -140,7 +140,7 @@ $ guix install emacs-multiple-cursors
*Activation*
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(require 'multiple-cursors)
(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
......@@ -150,7 +150,7 @@ $ guix install emacs-multiple-cursors
*Utilisation*
`C->` Ajouter un curseur sur la ligne suivante
`C->` Ajouter un curseur sur la ligne suivante
`C-<` Ajouter un curseur sur la ligne précédente
Lorsque l'édition est finie, `C-g`
......@@ -161,7 +161,7 @@ Lorsque l'édition est finie, `C-g`
*Installation*
```lisp
;; paste this line into your emacs config file
;; paste this lines into your emacs config file
(if (not (package-installed-p 'emr))
(progn
(package-refresh-contents)
......@@ -170,6 +170,8 @@ Lorsque l'édition est finie, `C-g`
*Activation*
```lisp
;; paste this lines into your emacs config file
(require 'emr)
(autoload 'emr-show-refactor-menu "emr")
(define-key prog-mode-map (kbd "M-RET") 'emr-show-refactor-menu)
......@@ -180,5 +182,5 @@ Lorsque l'édition est finie, `C-g`
*Utilisation*
`M-v` Extraire une variable
`M-v` Extraire une variable
`M-f` Extraire une fonction
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment