<div dir="ltr">checking the code I can find that ticking "Enable snapping on intersection" checkbox activate this callback<div><br></div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">void</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">QgsSnappingDialog</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">on_cbxEnableIntersectionSnappingCheckBox_stateChanged</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">state</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">)</span></pre>


<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">QgsProject</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">instance</span><span style="color:rgb(0,0,0)">()-></span><span style="color:rgb(0,0,0)">writeEntry</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"Digitizing"</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"/IntersectionSnapping"</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">state</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">==</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">Qt</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">Checked</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre>


<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)">}</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px">

<span style="color:rgb(0,0,0)">writing the option in the project...</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(0,0,0)">there's is a reason why it is not set in QSettings</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><font color="#000000">Luigi Pirelli (<a href="mailto:luigi.pirelli@faunalia.it">luigi.pirelli@faunalia.it</a> - <a href="mailto:luipir@gmail.com">luipir@gmail.com</a>)<br>

</font></pre></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 March 2014 20:46, Gino Pirelli <span dir="ltr"><<a href="mailto:luipir@gmail.com" target="_blank">luipir@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I'm looking how to programmatically set on or off the snapping option:</div>
<div>
<br></div><div>"Enable snapping on intersection"<br></div><div><br></div><div>I can't find how! It seems not set in QGIS2.conf</div>
<div><br></div><div>without setting this option the QgsSnapper.snapToBackgroundLayers(...) method doesn't return snap points.</div><div><br></div><div>thank you, </div><div><br></div><div>Luigi Pirelli (<a href="mailto:luigi.pirelli@faunalia.it" target="_blank">luigi.pirelli@faunalia.it</a> - <a href="mailto:luipir@gmail.com" target="_blank">luipir@gmail.com</a>)</div>


</div>
</blockquote></div><br></div>