added eldoc mode hook