- Subject: [Jed-users-l] .jedrc again
- From: Mike McClain <mike.junk@xxxxxxxxxxx>
- Date: Sat, 11 Aug 2012 21:23:25 -0700
Howdy,
In order to simplify .jedrc I split out the functions to
~/.jed/myfuncs.sl and the key assignments to ~/.jed/mykeys.sl.
I put this in .jedrc:
variable Jed_Home_Library = "/home/mike/.jed";
set_jed_library_path (Jed_Home_Library + "," + get_jed_library_path ());
% () = evalfile ("myfuncs");
% () = evalfile ("mykeys");
require ("myfuncs");
require ("mykeys");
If I put the above inside 'if (BATCH == 0) { ... }' the functions and key
assignments don't get loaded if I put outside the 'if...' they do.
If I put 'if (BATCH == 0) { ... }' around the key assignments or function
definitions in mykeys.sl or myfuncs.sl I get this error:
'Function nesting is illegal'
If my key assignments and functions are outside the 'if (BATCH == 0) { ... }'
I get no errors and as far as I can tell everything works as I expect.
Before I removed the key assignments and functions I had 11 set_color()
statements that were executed but are now not executed.
Suggestions/explanations will be appreciated.
Thanks,
Mike
--
Satisfied user of Linux since 1997.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l
[2012 date index]
[2012 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]