In this tutorial you will learn how to turn off LED notifications on the HTC One M8.
Go to Settings > Display & Gestures
Tap on Notification Light
The apps allowed to use LED notifications will be listed in this section, simply uncheck them.
This document, titled « HTC One - How to disable LED notifications », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).