Files
gnatstudio/examples/python/prefs.py
Nicolas Roche 0dbfc04918 Conform to pep8 and pyflakes
Change-Id: If3a1aa9f0509c98f408673ed645d29ac009b2f82
2017-06-26 19:51:50 +01:00

15 lines
427 B
Python

# This is an example showing how to force setting of GPS preferences
# at start up.
from GPS import Preference, Hook
def on_gps_started(hook):
# Set the preferences. You can adjust them at your convenience.
Preference("Ada-Format-Operators").set(True)
Preference("Ada-Ident-Casing").set("Smart_Mixed")
Preference("Warnings-Src-Highlight-Color").set("#FFFF6D6D6D6D")
Hook("gps_started").add(on_gps_started)