Skip to content

Commit b568fbe

Browse files
committed
update emacs config code block
1 parent 214efd8 commit b568fbe

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

doc/v2/build_and_install/build_from_source_cn.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,10 @@ PaddlePaddle需要使用Docker环境完成编译,这样可以免去单独安
116116

117117
很多 PaddlePaddle 开发者使用 Emacs。他们在自己的 `~/.emacs` 配置文件里加两行
118118

119-
```emacs
120-
(global-set-key "\C-cc" 'compile)
121-
(setq compile-command
122-
"docker run --rm -it -v $(git rev-parse --show-toplevel):/paddle paddle:dev")
123-
```
119+
.. code-block:: emacs
120+
121+
(global-set-key "\C-cc" 'compile)
122+
(setq compile-command "docker run --rm -it -v $(git rev-parse --show-toplevel):/paddle paddle:dev")
124123
125124
就可以按 `Ctrl-C` 和 `c` 键来启动编译了。
126125

doc/v2/build_and_install/build_from_source_en.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,10 @@ Frequently Asked Questions
118118

119119
Many PaddlePaddle developers are using Emacs. They add the following few lines into their `~/.emacs` configure file:
120120

121-
```emacs
122-
(global-set-key "\C-cc" 'compile)
123-
(setq compile-command
124-
"docker run --rm -it -v $(git rev-parse --show-toplevel):/paddle paddle:dev")
125-
```
121+
.. code-block:: emacs
122+
123+
(global-set-key "\C-cc" 'compile)
124+
(setq compile-command "docker run --rm -it -v $(git rev-parse --show-toplevel):/paddle paddle:dev")
126125
127126
so they could type `Ctrl-C` and `c` to build PaddlePaddle from source.
128127

0 commit comments

Comments
 (0)