# Hooks for autocompletion in REPL?

**URL:** <https://discourse.julialang.org/t/hooks-for-autocompletion-in-repl/3689>\
**Category:** General Usage\
**Tags:** repl\
**Created:** [May 13, 2017, 11:10am UTC](https://discourse.julialang.org/t/hooks-for-autocompletion-in-repl/3689 "2017-05-13T11:10:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidavdav](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidavdav/32/1065_2.png) [@davidavdav](https://discourse.julialang.org/u/davidavdav)\
**Post date:** [May 13, 2017, 11:10am UTC](https://discourse.julialang.org/t/hooks-for-autocompletion-in-repl/3689/1 "2017-05-13T11:10:28Z")

</div>

Hello,

Are there any hooks for defining autocompletion for my own functions? Suppose I have  
`func(enum::Symbol)` and I `enum` can only have values `:foo`, `:bar` and `:baz`, is there a autocompletion hook somewhere in julia base that I can define such that after typing `func(:` in the REPL, `\t` will suggest `:foo`, `:bar`, and `:baz`, and autocomplete up to the point of ambiguity?

Thanks
