Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
philipper905
jeko.frama.io
Commits
e2314ec5
Commit
e2314ec5
authored
Jan 06, 2021
by
Jeko
🌞
Browse files
Minor fix
parent
70771753
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/en/emacs.md
View file @
e2314ec5
...
...
@@ -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 line
s
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 line
s
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 line
s
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*
*Us
ag
e*
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 line
s
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 line
s
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*
*Us
ag
e*
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 line
s
into your emacs config file
(
require
'iedit
)
```
*Use*
*Us
ag
e*
`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 line
s
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*
*Us
ag
e*
`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 line
s
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
src/fr/emacs.md
View file @
e2314ec5
...
...
@@ -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 line
s
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 line
s
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 line
s
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 line
s
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 line
s
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 line
s
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 line
s
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 line
s
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment