# How to delete to end of line in Juno

**URL:** <https://discourse.julialang.org/t/how-to-delete-to-end-of-line-in-juno/34372>\
**Category:** Juno\
**Created:** [February 9, 2020, 11:51am UTC](https://discourse.julialang.org/t/how-to-delete-to-end-of-line-in-juno/34372 "2020-02-09T11:51:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marty0801](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marty0801/32/12715_2.png) [@marty0801](https://discourse.julialang.org/u/marty0801)\
**Post date:** [February 9, 2020, 11:51am UTC](https://discourse.julialang.org/t/how-to-delete-to-end-of-line-in-juno/34372/1 "2020-02-09T11:51:49Z")

</div>

I would like to delete (or cut, either will do) from the cursor position to the end of the current line. In emacs this is Ctrl + k. I cannot find similar functionality in Juno: searching the keybindings for end-of-line shows only a command for selecting to end of line.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 9, 2020, 12:22pm UTC](https://discourse.julialang.org/t/how-to-delete-to-end-of-line-in-juno/34372/2 "2020-02-09T12:22:31Z")

</div>

Open the command pane with `Ctrl-Shift-P`, type in `Open Your Keymap` and add

```julia
'atom-text-editor':
  'alt-k': 'editor:delete-to-end-of-line'

```

to the file that opens (replace `alt-k` with whatever keybinding you fancy).

---

<div class="post-metadata">

**Author:** ![wsphillips](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsphillips/32/6777_2.png) [@wsphillips](https://discourse.julialang.org/u/wsphillips)\
**Post date:** [February 9, 2020, 4:07pm UTC](https://discourse.julialang.org/t/how-to-delete-to-end-of-line-in-juno/34372/3 "2020-02-09T16:07:34Z")

</div>

If you’re familiar with Vim modal editing alternatively, checkout: [vim-mode-plus](https://atom.io/packages/vim-mode-plus)

Then: `d$` from normal mode will do exactly that

---

<div class="post-metadata">

**Author:** ![marty0801](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marty0801/32/12715_2.png) [@marty0801](https://discourse.julialang.org/u/marty0801)\
**Post date:** [March 25, 2020, 2:36pm UTC](https://discourse.julialang.org/t/how-to-delete-to-end-of-line-in-juno/34372/4 "2020-03-25T14:36:20Z")

</div>

Thanks. That works for the editor. How do I make the same keybinding for the console (which I launch from the Atom menu by Julia-\> Open Console)
