Sharing kdevelop preferences via git
Raymond Wan
rwan.work at gmail.com
Wed Dec 10 03:01:35 GMT 2014
Dear Matthew and everyone,
On Wednesday, December 10, 2014 05:07 AM, Matthew Woehlke wrote:
> On 2014-12-09 02:35, Raymond Wan wrote:
>> I was playing with [modelines] today and it seems if I change the tab width (or
>> anything else), the change is successful, but within the GUI, the value
>> isn't updated. Is this expected behavior?
>
> If by "the GUI" you mean what you see in Configure Editor, these are
> global defaults. Modelines, filetypes, etc. override the global
> defaults. I'm not aware of a way to see what values are actually in
> effect except indirectly (e.g. if pressing 'tab' adds two spaces, one
> might surmise that indent-width is 2).
Yes, that is what I meant! Thank you for clarifying this
for me! I thought it would get updated in the Configure
Editor so that I can somehow "see" that it worked (other
than the "indirect" method).
>> Also, tab-width seems to work, but something like this:
>>
>> current-line-color #ff0000;
>>
>> does not. (Yes, red is an annoying colour, but I am just playing with
>> it; I'm not sure if I will really keep it red.)
>
> Indent settings and even HL are "objective" properties of a file. Color
> schemes are not. Mode lines AFAIK don't cover color scheme customization
> (nor IMHO should they).
>
Sorry for the misunderstanding...
To clarify what I was trying to do, I added the above and
tab-width to .kateconfig and used a search depth for the
configuration file that allowed me to find the file.
tab-width works, but current-line-color does not (on
KDevelop 4.6.0).
However, when these two modelines are both added into the
source file, both of them work.
Perhaps modelines are treated differently between using it
in .kateconfig instead of a source file? Or, I'm just doing
something wrong.
Your explanation, though, makes sense to me. I can accept
that. Yes, I don't want to share color scheme
customizations with my collaborators. I just wanted an easy
way to "see" that the modelines were working. I didn't
think anything would be easier to see than a big red bar
across my screen! :-)
Ray
PS: Thanks, Milian, for the tip about code-completion! I
didn't realize that would work for modelines, too! Indeed
it does!
More information about the KDevelop
mailing list