The definition of "delta function normalization" says a basis of eigenfunctions of a particle in free space are orthonormal when $$\int_{-\infty}^{\infty}\phi_n^*(\vec{r})\phi_m(\vec{r})\mathrm{d}\vec{r}=\delta_{n,m}$$ where $\delta_{n,m}$ is the Kronecker delta function.
Therefore, consider a particle in one-dimensional free space. The particle's position eigenfunctions are in the form of $\phi_{position}=\delta_n(x-x_n)$, and its momentum eigenfunctions $\phi_{momentum} =e^{ik_nx}$.
I understand that position eigenfunctions are orthonormal, as one can use the sifting property of the delta functions in the following formula, and show that indeed position eigenfunctions are orthonormal in the sense of delta function normalization. In other words$$\int_{-\infty}^{\infty}\delta_{n}^*(x-x_n)\delta_{m}(x-x_m)\mathrm{d}x=\delta_{n}^*(x-x_n)\delta_{m}(x-x_m)=\delta(x_n-x_m)=\delta_{n,m}.$$
However, I'm having a hard time applying the same definition to momentum eigenfunctions as $$\int_{-\infty}^{\infty}(e^{ik_nx})^*\ e^{ik_mx}\mathrm{d}x=\int_{-\infty}^{\infty}e^{-i(k_n-k_m)x}\mathrm{d}x$$ where if $n=m$, then the equation becomes $\int_{-\infty}^{\infty}1\ \mathrm{d}x=\infty$; and if $n\ne m$, then the equation remains oscillatory and does not converge.
In both cases, it is not clear that if the integral satisfies the definition of delta function normalization. For the $n=m$ case, $\int_{-\infty}^{\infty}1\ \mathrm{d}x = \infty$ could be any multiple of the delta function, i.e. $\delta$, $2\delta$, $3\delta$, etc., as the definition of infinity is vague. On the other hand, when $n\ne m$, the integral does not vanish to zero, and thus does not satisfy the definition.
I'm pretty sure that the confusion I have here is related to the definitions of integrating generalized functions, and fourier transform. Because modes in fourier transform are orthogonal to each other too. But as an electrical engineer, I just took fourier transform for granted, and forgot how to prove orthogonality.
What am I missing here? How does one prove $\int_{-\infty}^{\infty}1\ \mathrm{d}x = \infty = \delta$ and $\int_{-\infty}^{\infty}(e^{ik_nx})^*\ e^{ik_mx}\mathrm{d}x=\delta_{n,m}$?