# How to configure the editor?

**URL:** <https://discourse.pijul.org/t/how-to-configure-the-editor/897>\
**Category:** Uncategorized\
**Created:** [March 23, 2022, 7:28pm UTC](https://discourse.pijul.org/t/how-to-configure-the-editor/897 "2022-03-23T19:28:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxsnew](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/maxsnew/32/141_2.png) [@maxsnew](https://discourse.pijul.org/u/maxsnew)\
**Post date:** [March 23, 2022, 7:28pm UTC](https://discourse.pijul.org/t/how-to-configure-the-editor/897/1 "2022-03-23T19:28:52Z")

</div>

Hi, I’m trying out pijul again and it opens up nano when I record or push. How can I configure it to use say emacs or vi instead?

---

<div class="post-metadata">

**Author:** ![ScribblyBirb](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/scribblybirb/32/445_2.png) [@ScribblyBirb](https://discourse.pijul.org/u/ScribblyBirb)\
**Post date:** [March 23, 2022, 7:45pm UTC](https://discourse.pijul.org/t/how-to-configure-the-editor/897/2 "2022-03-23T19:45:48Z")

</div>

Pijul respects the $EDITOR environment variable, so set that for your shell to your preferred one (either temporarily or in your dotfiles or wherever).

E.g. you can do `export EDITOR=vim` for vim in bash or `set EDITOR "code --wait"` for VS Code in fish.
