> For the complete documentation index, see [llms.txt](https://songapore.gitbook.io/ros-tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://songapore.gitbook.io/ros-tutorials/9-shi-yong-rosed-bian-ji-ros-zhong-de-wen-jian/9.3-bian-ji-qi.md).

# 9.3编辑器

`rosed`默认的编辑器是`vim`。如果想要将其他的编辑器设置成默认的，你需要修改你的 `~/.bashrc`文件，增加如下语句:

```
export EDITOR='emacs -nw'
```

这将emacs设置成为默认编辑器。

注意: .bashrc文件的改变，只会在新的终端才有效。已经打开的终端不受环境变量的影响。

打开一个新的终端，看看那是否定义了EDITOR:

```
$ echo $EDITOR
emacs -nw
```

现在你已经成功设置并使用了rosed，接下来我们将学习创建ROS消息和ROS服务.
