# The Hegemony Of \`==\` Must End; Welcome The \`⩵\` Upstart

**URL:** https://discourse.julialang.org/t/the-hegemony-of-must-end-welcome-the-upstart/63605
**Category:** Offtopic
**Tags:** syntax
**Created:** [June 26, 2021, 2:40pm UTC](https://discourse.julialang.org/t/the-hegemony-of-must-end-welcome-the-upstart/63605 "2021-06-26T14:40:57Z")
**Posts on this page:** 1
**Showing post:** 25

<div class="post-metadata">

### Author: ![blackeneth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/blackeneth/32/10353_2.png) [@blackeneth](https://discourse.julialang.org/u/blackeneth)
#### Post date: [June 28, 2021, 6:27pm UTC](https://discourse.julialang.org/t/the-hegemony-of-must-end-welcome-the-upstart/63605/25 "2021-06-28T18:27:43Z")

</div>

I **like** this idea. It meets the requirement.

The documentation for [custom keybindings](https://docs.julialang.org/en/v1/stdlib/REPL/#Customizing-keybindings)

The documentation says to \* Users should refer to `LineEdit.jl` to discover the available actions on key input.\*

This file can be found in julia/share/stdlib/v1.6/REPL/src

LineEdit.jl is a 2563 line program written by someone obviously very skilled in writing a character interface.

The “available actions” appear to start at line 238. “:edit\_insert” looks promising. Search for “edit\_insert” and you find the function edit\_insert() at line 736.

At that point, function edit\_insert() is incomprehensible to me.

So, let’s try guessing (if you consider this to be a bad method, you would be correct):

_This does not work:_

```julia
import REPL
import REPL.LineEdit

const mykeys = Dict{Any,Any}(
    # \ie[tab] to ==
    "\\ie" => (s,o...)->(LineEdit.edit_insert, s, "==") 
)

function customize_keys(repl)
    repl.interface = REPL.setup_interface(repl; extra_repl_keymap = mykeys)
end

atreplinit(customize_keys)

```

In fact, executing the above in your startup.jl will prevent you from typing the letter “e”.  
You can’t type exit() to get out.

It took me about two hours to come up with that guess (it is in fact guess version 4, the first three were worse).

---

_[View the full topic](https://discourse.julialang.org/t/the-hegemony-of-must-end-welcome-the-upstart/63605)._
