Cosmic-Ray induced diffuse emissions from the Milky Way and Local Group galaxies