Many spiritual teachings, including those inspired by Buddhist philosophy, suggest that certain mental habits can quietly take away your happiness.