Use standard emacs way of defining new modes, so we can have
`alloy-mode-hook'.