Lazarus

Using the Lazarus IDE => Editor => Topic started by: zamronypj on June 18, 2019, 10:16:44 am

Title: How to override FreePascal built-in IDE (fp IDE) fp.cfg from external *.cfg?
Post by: zamronypj on June 18, 2019, 10:16:44 am
Can I tell fp IDE to load my own existing *.cfg instead of creating its own fp.cfg file?

Title: Re: How to override FreePascal built-in IDE (fp IDE) fp.cfg from external *.cfg?
Post by: marcov on June 18, 2019, 10:30:42 am


 fp -C <yourfile.cfg>
Title: Re: How to override FreePascal built-in IDE (fp IDE) fp.cfg from external *.cfg?
Post by: zamronypj on June 18, 2019, 12:41:23 pm
I used -Cfilename option but it seemed only accept *.ini, not Free Pascal configuration file.
Title: Re: How to override FreePascal built-in IDE (fp IDE) fp.cfg from external *.cfg?
Post by: marcov on June 18, 2019, 02:39:37 pm
Ah yes, it is for the session file, not the config. I looked at the params, and doesn't seem possible.

You can maybe override a global one by making a local ~/.fp.cfg or so.
Title: Re: How to override FreePascal built-in IDE (fp IDE) fp.cfg from external *.cfg?
Post by: lucamar on June 18, 2019, 11:25:14 pm
fp looks for its config first in the directory from which it's launched; if you want it to load a custom fp.cfg just copy it over before launching it. For example, by launching a shell script similar to:
Code: [Select]
!#/bin/sh
cp ~/username/templates/specialfp.cfg ./fp.cfg
fp $@
TinyPortal © 2005-2018