From: David R. <dre...@gm...> - 2010-10-25 17:21:59
|
Hi All, Isn't there really no way to make API added abbrevs persisted? Here is what I'm doing just in case I wasn't specific enough: Abbrevs.addModeAbbrev("netrexx", "selw", "select\n\n\twhen \\| then do\n\t\t\n\t\tend\n\n\tend") So the "selw" abbreviation gets active inmediately and appears among netrexx mode abbreviations at Global options. At that point if I save them from global options the added abbreviations get persisted. Otherwise they disappear whe the current jEdit session is closed. So my question is: how would I go about save mode abbreviations programmatically? Many thanks in advance for any pointers. -- --- Saludos / Kind regards. David Requena -------- Mensaje original -------- Asunto: Persisting programmatically created abbrevs Fecha: Tue, 19 Oct 2010 16:39:36 +0200 De: David Requena <dre...@gm...> Para: jEdit-devel List <jed...@li...> Hi All, I'm able to insert new abbrevs into some mode via the Abbrevs API and these get immediately active. Unfortunately such abbrevs get discarded when jEdit is closed. I could not find any way to persist them short of directly manipulating the abbrevs file at the settings directory. How could this be best done? |
From: Damien R. <dam...@gm...> - 2010-10-25 20:59:19
|
Is jEdit.saveSettings() what you're looking for? |