How can I configure zsh to let it explain to me where I can retrieve an executable instead of saying file not found?

In the default configuration of bash in ubuntu, when you type the
name of a software which is not installed, bash explains how to install it if
the executable if it exists, or how to install an executable with a really close name if it does not exist.
For example with emacs (which is not installed on my machine):