From 56c12996adfe3b571e4db2d080c74196a4726cd9 Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Sun, 3 Apr 2022 23:42:40 -0500 Subject: [PATCH] Replace `astyle` comments with `clang-format` equivalents in examples This applies to turning off formatting of keymaps. There were a few files that were missing these comments, so those were added where necessary, as well. Signed-off-by: Michael Richters --- examples/Basic/Basic.ino | 4 ++-- examples/Devices/EZ/ErgoDox/ErgoDox.ino | 4 ++-- examples/Devices/KBDFans/KBD4x/KBD4x.ino | 4 ++-- examples/Devices/Keyboardio/Atreus/Atreus.ino | 4 ++-- examples/Devices/Keyboardio/Imago/Imago.ino | 4 ++-- examples/Devices/Keyboardio/Model01/Model01.ino | 7 ++----- examples/Devices/Keyboardio/Model100/Model100.ino | 4 ++-- examples/Devices/OLKB/Planck/Planck.ino | 4 ++-- examples/Devices/SOFTHRUF/Splitography/Splitography.ino | 4 ++-- examples/Devices/Technomancy/Atreus/Atreus.ino | 4 ++-- examples/Devices/gHeavy/ButterStick/ButterStick.ino | 4 ++-- examples/Devices/gHeavy/FaunchPad/FaunchPad.ino | 4 ++-- examples/Features/AppSwitcher/AppSwitcher.ino | 4 ++-- examples/Features/CycleTimeReport/CycleTimeReport.ino | 4 ++-- examples/Features/EEPROM/DynamicMacros/DynamicMacros.ino | 4 ++-- .../EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino | 4 ++-- examples/Features/EEPROM/EEPROM-Keymap/EEPROM-Keymap.ino | 4 ++-- .../Features/EEPROM/EEPROM-Settings/EEPROM-Settings.ino | 4 ++-- examples/Features/FocusSerial/FocusSerial.ino | 4 ++-- .../Features/GhostInTheFirmware/GhostInTheFirmware.ino | 4 ++-- examples/Features/HostOS/HostOS.ino | 4 ++-- .../Features/HostPowerManagement/HostPowerManagement.ino | 4 ++-- examples/Features/Layers/Layers.ino | 4 ++-- examples/Features/ShiftBlocker/ShiftBlocker.ino | 4 ++-- examples/Features/Steno/Steno.ino | 4 ++-- examples/Features/TypingBreaks/TypingBreaks.ino | 4 ++-- .../Internal/Sketch_Exploration/Sketch_Exploration.ino | 4 ++-- examples/Keystrokes/AutoShift/AutoShift.ino | 4 ++-- examples/Keystrokes/CharShift/CharShift.ino | 4 ++-- examples/Keystrokes/Cycle/Cycle.ino | 4 ++-- examples/Keystrokes/DynamicTapDance/DynamicTapDance.ino | 4 ++-- examples/Keystrokes/Escape-OneShot/Escape-OneShot.ino | 4 ++-- examples/Keystrokes/Leader/Leader.ino | 4 ++-- examples/Keystrokes/LeaderPrefix/LeaderPrefix.ino | 4 ++-- examples/Keystrokes/Macros/Macros.ino | 4 ++-- examples/Keystrokes/MagicCombo/MagicCombo.ino | 4 ++-- examples/Keystrokes/OneShot/OneShot.ino | 4 ++-- examples/Keystrokes/OneShotMetaKeys/OneShotMetaKeys.ino | 4 ++-- examples/Keystrokes/Qukeys/Qukeys.ino | 4 ++-- examples/Keystrokes/Redial/Redial.ino | 4 ++-- examples/Keystrokes/ShapeShifter/ShapeShifter.ino | 4 ++-- examples/Keystrokes/SpaceCadet/SpaceCadet.ino | 4 ++-- examples/Keystrokes/Syster/Syster.ino | 4 ++-- examples/Keystrokes/TapDance/TapDance.ino | 4 ++-- examples/Keystrokes/TopsyTurvy/TopsyTurvy.ino | 4 ++-- examples/Keystrokes/Turbo/Turbo.ino | 4 ++-- examples/Keystrokes/Unicode/Unicode.ino | 4 ++-- examples/Keystrokes/WinKeyToggle/WinKeyToggle.ino | 4 ++-- examples/LEDs/Colormap/Colormap.ino | 4 ++-- examples/LEDs/FingerPainter/FingerPainter.ino | 4 ++-- examples/LEDs/Heatmap/Heatmap.ino | 4 ++-- examples/LEDs/IdleLEDs/IdleLEDs.ino | 4 ++-- .../LEDs/LED-ActiveLayerColor/LED-ActiveLayerColor.ino | 4 ++-- examples/LEDs/LED-ActiveModColor/LED-ActiveModColor.ino | 4 ++-- examples/LEDs/LED-AlphaSquare/LED-AlphaSquare.ino | 4 ++-- examples/LEDs/LED-Brightness/LED-Brightness.ino | 4 ++-- examples/LEDs/LED-Palette-Theme/LED-Palette-Theme.ino | 4 ++-- examples/LEDs/LED-Stalker/LED-Stalker.ino | 4 ++-- examples/LEDs/LED-Wavepool/LED-Wavepool.ino | 2 ++ .../LEDs/LEDEffect-BootGreeting/LEDEffect-BootGreeting.ino | 4 ++-- examples/LEDs/LEDEffects/LEDEffects.ino | 4 ++-- examples/LEDs/PersistentLEDMode/PersistentLEDMode.ino | 4 ++-- 62 files changed, 124 insertions(+), 125 deletions(-) diff --git a/examples/Basic/Basic.ino b/examples/Basic/Basic.ino index 91f76053..6030da8d 100644 --- a/examples/Basic/Basic.ino +++ b/examples/Basic/Basic.ino @@ -17,7 +17,7 @@ #include "Kaleidoscope.h" -/* *INDENT-OFF* */ +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -38,7 +38,7 @@ KEYMAPS( Key_NoKey ), ) -/* *INDENT-ON* */ +// clang-format on void setup() { Kaleidoscope.setup(); diff --git a/examples/Devices/EZ/ErgoDox/ErgoDox.ino b/examples/Devices/EZ/ErgoDox/ErgoDox.ino index d78779e2..a2e11e52 100644 --- a/examples/Devices/EZ/ErgoDox/ErgoDox.ino +++ b/examples/Devices/EZ/ErgoDox/ErgoDox.ino @@ -19,7 +19,7 @@ #include "Kaleidoscope.h" -/* *INDENT-OFF* */ +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -46,7 +46,7 @@ KEYMAPS( Key_PageDown, Key_Tab, Key_Enter ), ) -/* *INDENT-ON* */ +// clang-format on void setup() { Kaleidoscope.setup(); diff --git a/examples/Devices/KBDFans/KBD4x/KBD4x.ino b/examples/Devices/KBDFans/KBD4x/KBD4x.ino index 3dddaa1e..31d03b20 100644 --- a/examples/Devices/KBDFans/KBD4x/KBD4x.ino +++ b/examples/Devices/KBDFans/KBD4x/KBD4x.ino @@ -31,7 +31,7 @@ enum { #define MO(n) ShiftToLayer(n) -/* *INDENT-OFF* */ +// clang-format off KEYMAPS( /* Qwerty @@ -71,7 +71,7 @@ KEYMAPS( ,___ ,___ ,___ ,___ ,___ ,___ ,___ ,___ ,___ ,___ ,___ ) ); -/* *INDENT-ON* */ +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(Macros); diff --git a/examples/Devices/Keyboardio/Atreus/Atreus.ino b/examples/Devices/Keyboardio/Atreus/Atreus.ino index 2a360d0a..e036466b 100644 --- a/examples/Devices/Keyboardio/Atreus/Atreus.ino +++ b/examples/Devices/Keyboardio/Atreus/Atreus.ino @@ -57,7 +57,7 @@ enum { UPPER }; -/* *INDENT-OFF* */ +// clang-format off KEYMAPS( [QWERTY] = KEYMAP_STACKED ( @@ -98,7 +98,7 @@ KEYMAPS( ,___ ,___ ,MoveToLayer(QWERTY) ,Key_PrintScreen ,Key_ScrollLock ,Consumer_PlaySlashPause ) ) -/* *INDENT-ON* */ +// clang-format on KALEIDOSCOPE_INIT_PLUGINS( EEPROMSettings, diff --git a/examples/Devices/Keyboardio/Imago/Imago.ino b/examples/Devices/Keyboardio/Imago/Imago.ino index f76df8ad..9813eece 100644 --- a/examples/Devices/Keyboardio/Imago/Imago.ino +++ b/examples/Devices/Keyboardio/Imago/Imago.ino @@ -54,7 +54,7 @@ enum { _QWERTY, }; -/* *INDENT-OFF* */ +// clang-format off KEYMAPS( [_QWERTY] = KEYMAP( @@ -67,7 +67,7 @@ Key_F5, Key_LeftControl,Key_LeftAlt, Key_LeftGui, Key_Backspace, Key_LeftAr )); -/* *INDENT-ON* */ +// clang-format on diff --git a/examples/Devices/Keyboardio/Model01/Model01.ino b/examples/Devices/Keyboardio/Model01/Model01.ino index 823f04d0..d8aef7ab 100644 --- a/examples/Devices/Keyboardio/Model01/Model01.ino +++ b/examples/Devices/Keyboardio/Model01/Model01.ino @@ -32,7 +32,7 @@ #define NUMPAD_KEYMAP 2 - +// clang-format off #define GENERIC_FN2 KEYMAP_STACKED ( \ ___, Key_F1, Key_F2, Key_F3, Key_F4, Key_F5, XXX, \ Key_Tab, Key_mouseBtnM, Key_mouseUp, ___, Key_mouseWarpNW, Key_mouseWarpNE, Consumer_ScanNextTrack, \ @@ -49,9 +49,6 @@ ___\ ) - - - #define NUMPAD KEYMAP (\ ___, ___, ___, ___, ___, ___, ___, ___, ___, Key_Keypad7, Key_Keypad8, Key_Keypad9, Key_KeypadSubtract, ___, \ ___, ___, ___, ___, ___, ___, ___, ___, ___, Key_Keypad4, Key_Keypad5, Key_Keypad6, Key_KeypadAdd, ___, \ @@ -75,7 +72,7 @@ KEYMAPS( GENERIC_FN2, NUMPAD ) - +// clang-format on static kaleidoscope::plugin::LEDSolidColor solidRed(60, 0, 0); static kaleidoscope::plugin::LEDSolidColor solidOrange(60, 20, 0); diff --git a/examples/Devices/Keyboardio/Model100/Model100.ino b/examples/Devices/Keyboardio/Model100/Model100.ino index 879f3985..7311780d 100644 --- a/examples/Devices/Keyboardio/Model100/Model100.ino +++ b/examples/Devices/Keyboardio/Model100/Model100.ino @@ -168,7 +168,7 @@ enum { PRIMARY, NUMPAD, FUNCTION }; // layers /* This comment temporarily turns off astyle's indent enforcement * so we can make the keymaps actually resemble the physical key layout better */ -// *INDENT-OFF* +// clang-format off KEYMAPS( @@ -279,7 +279,7 @@ KEYMAPS( ) // KEYMAPS( /* Re-enable astyle's indent enforcement */ -// *INDENT-ON* +// clang-format on /** versionInfoMacro handles the 'firmware version info' macro * When a key bound to the macro is pressed, this macro diff --git a/examples/Devices/OLKB/Planck/Planck.ino b/examples/Devices/OLKB/Planck/Planck.ino index 6fd163de..a6c2f46a 100644 --- a/examples/Devices/OLKB/Planck/Planck.ino +++ b/examples/Devices/OLKB/Planck/Planck.ino @@ -30,7 +30,7 @@ enum { _QWERTY, }; -/* *INDENT-OFF* */ +// clang-format off KEYMAPS( /* Qwerty @@ -161,7 +161,7 @@ KEYMAPS( // ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ //) ); -/* *INDENT-ON* */ +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(Macros); diff --git a/examples/Devices/SOFTHRUF/Splitography/Splitography.ino b/examples/Devices/SOFTHRUF/Splitography/Splitography.ino index d0a83bd7..43a76cfb 100644 --- a/examples/Devices/SOFTHRUF/Splitography/Splitography.ino +++ b/examples/Devices/SOFTHRUF/Splitography/Splitography.ino @@ -24,7 +24,7 @@ enum { _STENO, }; -/* *INDENT-OFF* */ +// clang-format off KEYMAPS( /* Steno (GeminiPR) @@ -45,7 +45,7 @@ KEYMAPS( ,S(A) ,S(O) ,S(E) ,S(U) ) ); -/* *INDENT-ON* */ +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(GeminiPR); diff --git a/examples/Devices/Technomancy/Atreus/Atreus.ino b/examples/Devices/Technomancy/Atreus/Atreus.ino index b5760783..004e6389 100644 --- a/examples/Devices/Technomancy/Atreus/Atreus.ino +++ b/examples/Devices/Technomancy/Atreus/Atreus.ino @@ -37,7 +37,7 @@ enum { #define Key_Star LSHIFT(Key_8) #define Key_Plus LSHIFT(Key_Equals) -/* *INDENT-OFF* */ +// clang-format off KEYMAPS( [QWERTY] = KEYMAP_STACKED ( @@ -78,7 +78,7 @@ KEYMAPS( ,___ ,___ ,M(QWERTY),Key_PrintScreen ,Key_ScrollLock ,Consumer_PlaySlashPause ) ) -/* *INDENT-ON* */ +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(Macros); diff --git a/examples/Devices/gHeavy/ButterStick/ButterStick.ino b/examples/Devices/gHeavy/ButterStick/ButterStick.ino index 35cf5aff..8443be1c 100644 --- a/examples/Devices/gHeavy/ButterStick/ButterStick.ino +++ b/examples/Devices/gHeavy/ButterStick/ButterStick.ino @@ -24,14 +24,14 @@ enum { }; -/* *INDENT-OFF* */ +// clang-format off KEYMAPS( [_DEFAULT] = KEYMAP( Key_Q, Key_W, Key_E, Key_R, Key_T, Key_Y, Key_U, Key_I, Key_O, Key_P, Key_A, Key_S, Key_D, Key_F, Key_G, Key_H, Key_J, Key_K, Key_L, Key_Semicolon ) ); -/* *INDENT-ON* */ +// clang-format on void setup() { Kaleidoscope.setup(); diff --git a/examples/Devices/gHeavy/FaunchPad/FaunchPad.ino b/examples/Devices/gHeavy/FaunchPad/FaunchPad.ino index 5b69281c..232b4a1d 100644 --- a/examples/Devices/gHeavy/FaunchPad/FaunchPad.ino +++ b/examples/Devices/gHeavy/FaunchPad/FaunchPad.ino @@ -24,13 +24,13 @@ enum { }; -/* *INDENT-OFF* */ +// clang-format off KEYMAPS( [_DEFAULT] = KEYMAP( Key_Q, Key_W, Key_E, Key_R, Key_T, Key_Y, Key_U, Key_I ) ); -/* *INDENT-ON* */ +// clang-format on void setup() { Kaleidoscope.setup(); diff --git a/examples/Features/AppSwitcher/AppSwitcher.ino b/examples/Features/AppSwitcher/AppSwitcher.ino index 56f3c0ac..0ab0d44f 100644 --- a/examples/Features/AppSwitcher/AppSwitcher.ino +++ b/examples/Features/AppSwitcher/AppSwitcher.ino @@ -22,7 +22,7 @@ #include "AppSwitcher.h" -/* *INDENT-OFF* */ +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -43,7 +43,7 @@ KEYMAPS( AppSwitcher_Prev ), ) -/* *INDENT-ON* */ +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(HostOS, AppSwitcher); diff --git a/examples/Features/CycleTimeReport/CycleTimeReport.ino b/examples/Features/CycleTimeReport/CycleTimeReport.ino index 4248e90d..be45aebc 100644 --- a/examples/Features/CycleTimeReport/CycleTimeReport.ino +++ b/examples/Features/CycleTimeReport/CycleTimeReport.ino @@ -18,7 +18,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -38,7 +38,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_skip), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(CycleTimeReport); diff --git a/examples/Features/EEPROM/DynamicMacros/DynamicMacros.ino b/examples/Features/EEPROM/DynamicMacros/DynamicMacros.ino index 60bc9f24..b2c7fa60 100644 --- a/examples/Features/EEPROM/DynamicMacros/DynamicMacros.ino +++ b/examples/Features/EEPROM/DynamicMacros/DynamicMacros.ino @@ -21,7 +21,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey, @@ -40,7 +40,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_skip), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS( EEPROMSettings, diff --git a/examples/Features/EEPROM/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino b/examples/Features/EEPROM/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino index a3ddd53d..e614907b 100644 --- a/examples/Features/EEPROM/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino +++ b/examples/Features/EEPROM/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino @@ -21,7 +21,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (M(0), Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey, @@ -40,7 +40,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_NoKey), ) -// *INDENT-ON* +// clang-format on const macro_t *macroAction(uint8_t macro_id, KeyEvent &event) { if (macro_id == 0 && keyToggledOff(event.state)) { diff --git a/examples/Features/EEPROM/EEPROM-Keymap/EEPROM-Keymap.ino b/examples/Features/EEPROM/EEPROM-Keymap/EEPROM-Keymap.ino index 89c331ca..7f7f1b89 100644 --- a/examples/Features/EEPROM/EEPROM-Keymap/EEPROM-Keymap.ino +++ b/examples/Features/EEPROM/EEPROM-Keymap/EEPROM-Keymap.ino @@ -19,7 +19,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey, @@ -38,7 +38,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_skip), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(EEPROMKeymap, Focus); diff --git a/examples/Features/EEPROM/EEPROM-Settings/EEPROM-Settings.ino b/examples/Features/EEPROM/EEPROM-Settings/EEPROM-Settings.ino index 81e3f3f6..54230144 100644 --- a/examples/Features/EEPROM/EEPROM-Settings/EEPROM-Settings.ino +++ b/examples/Features/EEPROM/EEPROM-Settings/EEPROM-Settings.ino @@ -18,7 +18,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey, @@ -37,7 +37,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_skip), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(EEPROMSettings); diff --git a/examples/Features/FocusSerial/FocusSerial.ino b/examples/Features/FocusSerial/FocusSerial.ino index 26de9f28..ce11cbae 100644 --- a/examples/Features/FocusSerial/FocusSerial.ino +++ b/examples/Features/FocusSerial/FocusSerial.ino @@ -18,7 +18,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey, @@ -37,7 +37,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_skip), ) -// *INDENT-OFF* +// clang-format on namespace kaleidoscope { class FocusTestCommand : public Plugin { diff --git a/examples/Features/GhostInTheFirmware/GhostInTheFirmware.ino b/examples/Features/GhostInTheFirmware/GhostInTheFirmware.ino index 5cd5a108..9c9b6544 100644 --- a/examples/Features/GhostInTheFirmware/GhostInTheFirmware.ino +++ b/examples/Features/GhostInTheFirmware/GhostInTheFirmware.ino @@ -27,7 +27,7 @@ // will type out the letters from A to N, but the right palm key can be used to // toggle the custom EventDropper plugin to suppress USB output. -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (___, ___, ___, ___, ___, ___, ___, @@ -46,7 +46,7 @@ KEYMAPS( ___, ___, ___, ___, M(1)), ) -// *INDENT-ON* +// clang-format on namespace kaleidoscope { namespace plugin { diff --git a/examples/Features/HostOS/HostOS.ino b/examples/Features/HostOS/HostOS.ino index 8803f9d7..802c5491 100644 --- a/examples/Features/HostOS/HostOS.ino +++ b/examples/Features/HostOS/HostOS.ino @@ -19,7 +19,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey, @@ -38,7 +38,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_skip), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(EEPROMSettings, HostOS); diff --git a/examples/Features/HostPowerManagement/HostPowerManagement.ino b/examples/Features/HostPowerManagement/HostPowerManagement.ino index cb5c9f49..d159eca6 100644 --- a/examples/Features/HostPowerManagement/HostPowerManagement.ino +++ b/examples/Features/HostPowerManagement/HostPowerManagement.ino @@ -20,7 +20,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -41,7 +41,7 @@ KEYMAPS( Key_NoKey ), ) -// *INDENT-ON* +// clang-format on void hostPowerManagementEventHandler(kaleidoscope::plugin::HostPowerManagement::Event event) { switch (event) { diff --git a/examples/Features/Layers/Layers.ino b/examples/Features/Layers/Layers.ino index a1f749c4..0dece439 100644 --- a/examples/Features/Layers/Layers.ino +++ b/examples/Features/Layers/Layers.ino @@ -21,7 +21,7 @@ enum { PRIMARY, NUMPAD, FUNCTION }; // layers -// *INDENT-OFF* +// clang-format off KEYMAPS( [PRIMARY] = KEYMAP_STACKED (___, Key_1, Key_2, Key_3, Key_4, Key_5, XXX, @@ -68,7 +68,7 @@ KEYMAPS( ___, ___, Key_Enter, ___, ___) ) -// *INDENT-OFF* +// clang-format on namespace kaleidoscope { class LayerDumper: public Plugin { diff --git a/examples/Features/ShiftBlocker/ShiftBlocker.ino b/examples/Features/ShiftBlocker/ShiftBlocker.ino index 46770e8c..23a5113d 100644 --- a/examples/Features/ShiftBlocker/ShiftBlocker.ino +++ b/examples/Features/ShiftBlocker/ShiftBlocker.ino @@ -18,7 +18,7 @@ #include "Kaleidoscope.h" #include "Kaleidoscope-Macros.h" -/* *INDENT-OFF* */ +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -39,7 +39,7 @@ KEYMAPS( M(0) ), ) -/* *INDENT-ON* */ +// clang-format on namespace kaleidoscope { namespace plugin { diff --git a/examples/Features/Steno/Steno.ino b/examples/Features/Steno/Steno.ino index 91f4e709..0415d5cc 100644 --- a/examples/Features/Steno/Steno.ino +++ b/examples/Features/Steno/Steno.ino @@ -20,7 +20,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey, @@ -56,7 +56,7 @@ KEYMAPS( S(E), S(U), XXX, S(RE2), ___), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(GeminiPR); diff --git a/examples/Features/TypingBreaks/TypingBreaks.ino b/examples/Features/TypingBreaks/TypingBreaks.ino index c031cb77..687e43a0 100644 --- a/examples/Features/TypingBreaks/TypingBreaks.ino +++ b/examples/Features/TypingBreaks/TypingBreaks.ino @@ -19,7 +19,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -39,7 +39,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_skip), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(EEPROMSettings, TypingBreaks); diff --git a/examples/Internal/Sketch_Exploration/Sketch_Exploration.ino b/examples/Internal/Sketch_Exploration/Sketch_Exploration.ino index 980de7f6..4027e8fc 100644 --- a/examples/Internal/Sketch_Exploration/Sketch_Exploration.ino +++ b/examples/Internal/Sketch_Exploration/Sketch_Exploration.ino @@ -21,7 +21,7 @@ // This example demonstrates how a plugin can gather information about // the keymap at compile time, e.g. to adapt its behavior, safe resources, ... -/* *INDENT-OFF* */ +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -42,7 +42,7 @@ KEYMAPS( Key_NoKey ), ) -/* *INDENT-ON* */ +// clang-format on using namespace kaleidoscope::sketch_exploration; // NOLINT(build/namespaces) diff --git a/examples/Keystrokes/AutoShift/AutoShift.ino b/examples/Keystrokes/AutoShift/AutoShift.ino index 333e9d58..2997508f 100644 --- a/examples/Keystrokes/AutoShift/AutoShift.ino +++ b/examples/Keystrokes/AutoShift/AutoShift.ino @@ -12,7 +12,7 @@ enum { TOGGLE_AUTOSHIFT, }; -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -33,7 +33,7 @@ KEYMAPS( XXX ), ) -// *INDENT-ON* +// clang-format on // Defining a macro (on the "any" key: see above) to turn AutoShift on and off const macro_t *macroAction(uint8_t macro_id, KeyEvent &event) { diff --git a/examples/Keystrokes/CharShift/CharShift.ino b/examples/Keystrokes/CharShift/CharShift.ino index b1aa83ec..ff6c9a83 100644 --- a/examples/Keystrokes/CharShift/CharShift.ino +++ b/examples/Keystrokes/CharShift/CharShift.ino @@ -4,7 +4,7 @@ #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -25,7 +25,7 @@ KEYMAPS( XXX ), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(CharShift); diff --git a/examples/Keystrokes/Cycle/Cycle.ino b/examples/Keystrokes/Cycle/Cycle.ino index b8b33dd0..aed91b32 100644 --- a/examples/Keystrokes/Cycle/Cycle.ino +++ b/examples/Keystrokes/Cycle/Cycle.ino @@ -18,7 +18,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey, @@ -37,7 +37,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_Cycle), ) -// *INDENT-ON* +// clang-format on void cycleAction(Key previous_key, uint8_t cycle_count) { if (previous_key == Key_E) { diff --git a/examples/Keystrokes/DynamicTapDance/DynamicTapDance.ino b/examples/Keystrokes/DynamicTapDance/DynamicTapDance.ino index aacc4b01..b70501af 100644 --- a/examples/Keystrokes/DynamicTapDance/DynamicTapDance.ino +++ b/examples/Keystrokes/DynamicTapDance/DynamicTapDance.ino @@ -22,7 +22,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -42,7 +42,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, TD(2), TD(1)), ) -// *INDENT-ON* +// clang-format on enum { TD_TAB_ESC, diff --git a/examples/Keystrokes/Escape-OneShot/Escape-OneShot.ino b/examples/Keystrokes/Escape-OneShot/Escape-OneShot.ino index 921d4d92..da312d23 100644 --- a/examples/Keystrokes/Escape-OneShot/Escape-OneShot.ino +++ b/examples/Keystrokes/Escape-OneShot/Escape-OneShot.ino @@ -21,7 +21,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -61,7 +61,7 @@ KEYMAPS( ___ ), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(EEPROMSettings, Focus, diff --git a/examples/Keystrokes/Leader/Leader.ino b/examples/Keystrokes/Leader/Leader.ino index fc6f65c2..c2ea13a2 100644 --- a/examples/Keystrokes/Leader/Leader.ino +++ b/examples/Keystrokes/Leader/Leader.ino @@ -18,7 +18,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey, @@ -37,7 +37,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, LEAD(0)), ) -// *INDENT-ON* +// clang-format on auto &serial_port = Kaleidoscope.serialPort(); diff --git a/examples/Keystrokes/LeaderPrefix/LeaderPrefix.ino b/examples/Keystrokes/LeaderPrefix/LeaderPrefix.ino index 6de00bf6..8aa6a129 100644 --- a/examples/Keystrokes/LeaderPrefix/LeaderPrefix.ino +++ b/examples/Keystrokes/LeaderPrefix/LeaderPrefix.ino @@ -24,7 +24,7 @@ #include "kaleidoscope/LiveKeys.h" #include "kaleidoscope/plugin.h" -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey, @@ -43,7 +43,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, LEAD(0)), ) -// *INDENT-ON* +// clang-format on namespace kaleidoscope { namespace plugin { diff --git a/examples/Keystrokes/Macros/Macros.ino b/examples/Keystrokes/Macros/Macros.ino index 5e0badb4..ae5a6609 100644 --- a/examples/Keystrokes/Macros/Macros.ino +++ b/examples/Keystrokes/Macros/Macros.ino @@ -24,7 +24,7 @@ enum { TOGGLE_ONESHOT, }; -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (___, M(1), M(2), M(3), M(4), M(5), ___, @@ -61,7 +61,7 @@ KEYMAPS( ___, ___, ___, ___, ___), ) -// *INDENT-ON* +// clang-format on // Example macro for typing a string of characters. void macroTypeString(KeyEvent &event) { diff --git a/examples/Keystrokes/MagicCombo/MagicCombo.ino b/examples/Keystrokes/MagicCombo/MagicCombo.ino index 0bb6606b..7b1ed943 100644 --- a/examples/Keystrokes/MagicCombo/MagicCombo.ino +++ b/examples/Keystrokes/MagicCombo/MagicCombo.ino @@ -29,7 +29,7 @@ void kindOfMagic(uint8_t combo_index) { USE_MAGIC_COMBOS([KIND_OF_MAGIC] = {.action = kindOfMagic, .keys = {R3C6, R3C9}}); -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -49,7 +49,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_NoKey), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(MagicCombo, Macros); diff --git a/examples/Keystrokes/OneShot/OneShot.ino b/examples/Keystrokes/OneShot/OneShot.ino index 96a249ca..4cff49a0 100644 --- a/examples/Keystrokes/OneShot/OneShot.ino +++ b/examples/Keystrokes/OneShot/OneShot.ino @@ -24,7 +24,7 @@ enum { TOGGLE_ONESHOT, }; -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -62,7 +62,7 @@ KEYMAPS( ___, ___, ___, ___, ___), ) -// *INDENT-ON* +// clang-format on void macroToggleOneShot() { OneShot.toggleAutoOneShot(); diff --git a/examples/Keystrokes/OneShotMetaKeys/OneShotMetaKeys.ino b/examples/Keystrokes/OneShotMetaKeys/OneShotMetaKeys.ino index 1a155c4a..389ba845 100644 --- a/examples/Keystrokes/OneShotMetaKeys/OneShotMetaKeys.ino +++ b/examples/Keystrokes/OneShotMetaKeys/OneShotMetaKeys.ino @@ -25,7 +25,7 @@ enum { TOGGLE_ONESHOT, }; -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -63,7 +63,7 @@ KEYMAPS( ___, ___, ___, ___, ___), ) -// *INDENT-ON* +// clang-format on void macroToggleOneShot() { OneShot.toggleAutoOneShot(); diff --git a/examples/Keystrokes/Qukeys/Qukeys.ino b/examples/Keystrokes/Qukeys/Qukeys.ino index bee8538e..c1fe890f 100644 --- a/examples/Keystrokes/Qukeys/Qukeys.ino +++ b/examples/Keystrokes/Qukeys/Qukeys.ino @@ -11,7 +11,7 @@ enum { MACRO_TOGGLE_QUKEYS }; // for the home row on the right side of the keymap (and one of the palm keys) // below. -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -51,7 +51,7 @@ KEYMAPS( ___ ), ) -// *INDENT-ON* +// clang-format on // Defining a macro (on the "any" key: see above) to toggle Qukeys on and off const macro_t *macroAction(uint8_t macro_id, KeyEvent &event) { diff --git a/examples/Keystrokes/Redial/Redial.ino b/examples/Keystrokes/Redial/Redial.ino index ebc7bdf4..e9bb976f 100644 --- a/examples/Keystrokes/Redial/Redial.ino +++ b/examples/Keystrokes/Redial/Redial.ino @@ -25,7 +25,7 @@ bool kaleidoscope::plugin::Redial::shouldRemember(Key mapped_key) { return false; } -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -45,7 +45,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_Redial), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(Redial); diff --git a/examples/Keystrokes/ShapeShifter/ShapeShifter.ino b/examples/Keystrokes/ShapeShifter/ShapeShifter.ino index 372bcae0..8572e698 100644 --- a/examples/Keystrokes/ShapeShifter/ShapeShifter.ino +++ b/examples/Keystrokes/ShapeShifter/ShapeShifter.ino @@ -18,7 +18,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -38,7 +38,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_NoKey), ) -// *INDENT-ON* +// clang-format on static const kaleidoscope::plugin::ShapeShifter::dictionary_t shape_shift_dictionary[] PROGMEM = { {Key_1, Key_2}, diff --git a/examples/Keystrokes/SpaceCadet/SpaceCadet.ino b/examples/Keystrokes/SpaceCadet/SpaceCadet.ino index 11ff205a..bffacbde 100644 --- a/examples/Keystrokes/SpaceCadet/SpaceCadet.ino +++ b/examples/Keystrokes/SpaceCadet/SpaceCadet.ino @@ -18,7 +18,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -38,7 +38,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_skip), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(SpaceCadet); diff --git a/examples/Keystrokes/Syster/Syster.ino b/examples/Keystrokes/Syster/Syster.ino index ba82a04b..387dacf6 100644 --- a/examples/Keystrokes/Syster/Syster.ino +++ b/examples/Keystrokes/Syster/Syster.ino @@ -21,7 +21,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -41,7 +41,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, SYSTER), ) -// *INDENT-ON* +// clang-format on void systerAction(kaleidoscope::plugin::Syster::action_t action, const char *symbol) { switch (action) { diff --git a/examples/Keystrokes/TapDance/TapDance.ino b/examples/Keystrokes/TapDance/TapDance.ino index 1e14eb94..5d282924 100644 --- a/examples/Keystrokes/TapDance/TapDance.ino +++ b/examples/Keystrokes/TapDance/TapDance.ino @@ -18,7 +18,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -38,7 +38,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, TD(1)), ) -// *INDENT-ON* +// clang-format on static void tapDanceEsc(uint8_t tap_dance_index, uint8_t tap_count, kaleidoscope::plugin::TapDance::ActionType tap_dance_action) { tapDanceActionKeys(tap_count, tap_dance_action, Key_Escape, Key_Tab); diff --git a/examples/Keystrokes/TopsyTurvy/TopsyTurvy.ino b/examples/Keystrokes/TopsyTurvy/TopsyTurvy.ino index e01babb9..dd705364 100644 --- a/examples/Keystrokes/TopsyTurvy/TopsyTurvy.ino +++ b/examples/Keystrokes/TopsyTurvy/TopsyTurvy.ino @@ -18,7 +18,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -38,7 +38,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_skip), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(TopsyTurvy); diff --git a/examples/Keystrokes/Turbo/Turbo.ino b/examples/Keystrokes/Turbo/Turbo.ino index 5827c5b1..892a4c90 100644 --- a/examples/Keystrokes/Turbo/Turbo.ino +++ b/examples/Keystrokes/Turbo/Turbo.ino @@ -19,7 +19,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey, @@ -38,7 +38,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_skip), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(LEDControl, Turbo); diff --git a/examples/Keystrokes/Unicode/Unicode.ino b/examples/Keystrokes/Unicode/Unicode.ino index 34c00e7c..22a2503a 100644 --- a/examples/Keystrokes/Unicode/Unicode.ino +++ b/examples/Keystrokes/Unicode/Unicode.ino @@ -23,7 +23,7 @@ enum { MACRO_KEYBOARD_EMOJI }; -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED @@ -44,7 +44,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_skip), ) -// *INDENT-ON* +// clang-format on static void unicode(uint32_t character, uint8_t keyState) { if (keyToggledOn(keyState)) { diff --git a/examples/Keystrokes/WinKeyToggle/WinKeyToggle.ino b/examples/Keystrokes/WinKeyToggle/WinKeyToggle.ino index b75fdf01..35e03c06 100644 --- a/examples/Keystrokes/WinKeyToggle/WinKeyToggle.ino +++ b/examples/Keystrokes/WinKeyToggle/WinKeyToggle.ino @@ -32,7 +32,7 @@ USE_MAGIC_COMBOS([WINKEYTOGGLE] = { .keys = {R3C6, R3C9} }); -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -52,7 +52,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_NoKey), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(MagicCombo, WinKeyToggle); diff --git a/examples/LEDs/Colormap/Colormap.ino b/examples/LEDs/Colormap/Colormap.ino index f26d6054..4699b093 100644 --- a/examples/LEDs/Colormap/Colormap.ino +++ b/examples/LEDs/Colormap/Colormap.ino @@ -22,7 +22,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (Key_LEDEffectNext, Key_1, Key_2, Key_3, Key_4, Key_5, Key_LEDEffectNext, @@ -42,7 +42,7 @@ KEYMAPS( Key_NoKey), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(EEPROMSettings, LEDPaletteTheme, diff --git a/examples/LEDs/FingerPainter/FingerPainter.ino b/examples/LEDs/FingerPainter/FingerPainter.ino index da0b58fc..1894a4f5 100644 --- a/examples/LEDs/FingerPainter/FingerPainter.ino +++ b/examples/LEDs/FingerPainter/FingerPainter.ino @@ -22,7 +22,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_LEDEffectNext, @@ -41,7 +41,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_skip), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(LEDControl, LEDOff, diff --git a/examples/LEDs/Heatmap/Heatmap.ino b/examples/LEDs/Heatmap/Heatmap.ino index 49ee4855..30cc6978 100644 --- a/examples/LEDs/Heatmap/Heatmap.ino +++ b/examples/LEDs/Heatmap/Heatmap.ino @@ -20,7 +20,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED (Key_LEDEffectNext, Key_1, Key_2, Key_3, Key_4, Key_5, Key_LEDEffectNext, @@ -39,7 +39,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_NoKey), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(LEDControl, HeatmapEffect); diff --git a/examples/LEDs/IdleLEDs/IdleLEDs.ino b/examples/LEDs/IdleLEDs/IdleLEDs.ino index 44732f37..ca33b35e 100644 --- a/examples/LEDs/IdleLEDs/IdleLEDs.ino +++ b/examples/LEDs/IdleLEDs/IdleLEDs.ino @@ -22,7 +22,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -42,7 +42,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_NoKey), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(LEDControl, EEPROMSettings, diff --git a/examples/LEDs/LED-ActiveLayerColor/LED-ActiveLayerColor.ino b/examples/LEDs/LED-ActiveLayerColor/LED-ActiveLayerColor.ino index 714a9902..e65ab57d 100644 --- a/examples/LEDs/LED-ActiveLayerColor/LED-ActiveLayerColor.ino +++ b/examples/LEDs/LED-ActiveLayerColor/LED-ActiveLayerColor.ino @@ -19,7 +19,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -58,7 +58,7 @@ KEYMAPS( ShiftToLayer(0) ) ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(LEDControl, LEDActiveLayerColorEffect); diff --git a/examples/LEDs/LED-ActiveModColor/LED-ActiveModColor.ino b/examples/LEDs/LED-ActiveModColor/LED-ActiveModColor.ino index 6213dd36..b1b86767 100644 --- a/examples/LEDs/LED-ActiveModColor/LED-ActiveModColor.ino +++ b/examples/LEDs/LED-ActiveModColor/LED-ActiveModColor.ino @@ -20,7 +20,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -40,7 +40,7 @@ KEYMAPS( OSM(RightShift), OSM(RightAlt), Key_Spacebar, OSM(RightControl), Key_skip), ) -// *INDENT-ON* +// clang-format on // OneShot is included to illustrate the different colors highlighting sticky // and one-shot keys. LEDOff is included because we need an LED mode active to diff --git a/examples/LEDs/LED-AlphaSquare/LED-AlphaSquare.ino b/examples/LEDs/LED-AlphaSquare/LED-AlphaSquare.ino index f3ef2d7a..57d8c958 100644 --- a/examples/LEDs/LED-AlphaSquare/LED-AlphaSquare.ino +++ b/examples/LEDs/LED-AlphaSquare/LED-AlphaSquare.ino @@ -20,7 +20,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -40,7 +40,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_skip), ) -// *INDENT-ON* +// clang-format on const macro_t *macroAction(uint8_t macro_id, KeyEvent &event) { if (!keyToggledOn(event.state)) diff --git a/examples/LEDs/LED-Brightness/LED-Brightness.ino b/examples/LEDs/LED-Brightness/LED-Brightness.ino index b17a354d..574e1205 100644 --- a/examples/LEDs/LED-Brightness/LED-Brightness.ino +++ b/examples/LEDs/LED-Brightness/LED-Brightness.ino @@ -20,7 +20,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -40,7 +40,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, M(1)), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(LEDControl, Macros, diff --git a/examples/LEDs/LED-Palette-Theme/LED-Palette-Theme.ino b/examples/LEDs/LED-Palette-Theme/LED-Palette-Theme.ino index e587ef3b..a9ec1d58 100644 --- a/examples/LEDs/LED-Palette-Theme/LED-Palette-Theme.ino +++ b/examples/LEDs/LED-Palette-Theme/LED-Palette-Theme.ino @@ -58,7 +58,7 @@ TestLEDMode::onFocusEvent(const char *command) { example::TestLEDMode TestLEDMode; -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -78,7 +78,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_NoKey), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(Focus, LEDPaletteTheme, TestLEDMode, EEPROMSettings); diff --git a/examples/LEDs/LED-Stalker/LED-Stalker.ino b/examples/LEDs/LED-Stalker/LED-Stalker.ino index 9306513a..cf66f19c 100644 --- a/examples/LEDs/LED-Stalker/LED-Stalker.ino +++ b/examples/LEDs/LED-Stalker/LED-Stalker.ino @@ -19,7 +19,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -39,7 +39,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_NoKey), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(LEDControl, LEDOff, diff --git a/examples/LEDs/LED-Wavepool/LED-Wavepool.ino b/examples/LEDs/LED-Wavepool/LED-Wavepool.ino index 404eb295..581fa84b 100644 --- a/examples/LEDs/LED-Wavepool/LED-Wavepool.ino +++ b/examples/LEDs/LED-Wavepool/LED-Wavepool.ino @@ -20,6 +20,7 @@ #include #include +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -46,6 +47,7 @@ KALEIDOSCOPE_INIT_PLUGINS( LEDOff, WavepoolEffect ); +// clang-format on void setup() { Kaleidoscope.setup(); diff --git a/examples/LEDs/LEDEffect-BootGreeting/LEDEffect-BootGreeting.ino b/examples/LEDs/LEDEffect-BootGreeting/LEDEffect-BootGreeting.ino index c17fd55a..de152232 100644 --- a/examples/LEDs/LEDEffect-BootGreeting/LEDEffect-BootGreeting.ino +++ b/examples/LEDs/LEDEffect-BootGreeting/LEDEffect-BootGreeting.ino @@ -19,7 +19,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -39,7 +39,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_NoKey), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(LEDControl, BootGreetingEffect, diff --git a/examples/LEDs/LEDEffects/LEDEffects.ino b/examples/LEDs/LEDEffects/LEDEffects.ino index 02d79b15..6f5ad6c5 100644 --- a/examples/LEDs/LEDEffects/LEDEffects.ino +++ b/examples/LEDs/LEDEffects/LEDEffects.ino @@ -19,7 +19,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -39,7 +39,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_NoKey), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(LEDControl, LEDOff, diff --git a/examples/LEDs/PersistentLEDMode/PersistentLEDMode.ino b/examples/LEDs/PersistentLEDMode/PersistentLEDMode.ino index b262047d..4d5fca73 100644 --- a/examples/LEDs/PersistentLEDMode/PersistentLEDMode.ino +++ b/examples/LEDs/PersistentLEDMode/PersistentLEDMode.ino @@ -24,7 +24,7 @@ #include #include -// *INDENT-OFF* +// clang-format off KEYMAPS( [0] = KEYMAP_STACKED ( @@ -44,7 +44,7 @@ KEYMAPS( Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, Key_NoKey), ) -// *INDENT-ON* +// clang-format on KALEIDOSCOPE_INIT_PLUGINS(LEDControl, EEPROMSettings,