Discussion:
Jed color schemes
(too old to reply)
Markku S
2005-05-17 12:14:37 UTC
Permalink
How can I set a Jed color scheme without root access?
raf
2005-05-17 17:26:37 UTC
Permalink
Post by Markku S
How can I set a Jed color scheme without root access?
Have you tried putting them in your ~/.jedrc.
Markku S
2005-05-17 22:24:20 UTC
Permalink
Post by raf
Post by Markku S
How can I set a Jed color scheme without root access?
Have you tried putting them in your ~/.jedrc.
Of course. That worked with some old version but it doesn't anymore. I
guess that jed loads some preset color scheme after my jedrc.
raf
2005-05-17 23:37:27 UTC
Permalink
Post by Markku S
Post by raf
Post by Markku S
How can I set a Jed color scheme without root access?
Have you tried putting them in your ~/.jedrc.
Of course. That worked with some old version but it doesn't anymore. I
guess that jed loads some preset color scheme after my jedrc.
I think I have the latest release(Jed 0.99.16). This is part of
of my .jedrc and it works.

% Color Settings
% Look at jed/lib/color/README for a description of predefined color
% schemes.
%set_color_scheme ("black3");
%set_color_scheme ("blue2");
%set_color_scheme ("abz");

$1 = "black"; $2 = "white";
set_color("menu", "yellow", "blue"); % menu bar
set_color("normal", "lightgray", ""); % default fg/bg
set_color("status", "yellow", "blue"); % status or mode line
set_color("region", $2, "green"); % for marking regions
set_color("operator", "yellow", ""); % +, -, etc..
set_color("number", "red", ""); % 10, 2.71,... TeX formulas
set_color("comment", "cyan", ""); % /* comment */
set_color("string", "cyan", ""); % "string" or 'char'
set_color("keyword", "red", ""); % if, while, unsigned,...
set_color("keyword1", "magenta", ""); % malloc, exit, etc...
set_color("delimiter", "red", ""); % {}[](),.;...
John E. Davis
2005-05-18 03:50:26 UTC
Permalink
Post by Markku S
Of course. That worked with some old version but it doesn't anymore. I
guess that jed loads some preset color scheme after my jedrc.
Perhaps this will help:

Changes since B0.99-12 {{{

0. Important Notes:

a) If you are not using set_color_scheme to set colors, you may find
that your color settings will not work. Now, if the user does not
call set_color_scheme, it will automatically be called with
_Jed_Default_Color_Scheme. If you do not want this feature, set
_Jed_Default_Color_Scheme to NULL after setting your colors.

A better solution is to create a directory containing your color
schemes, e.g.,

mkdir -p /your/home/dir/jed/colors

Suppose your color scheme is called "scarlet". Then put the set_color
commands for the scarlet scheme in a file called scarlet.sl in that
directory.

Then in your .jedrc put:

Color_Scheme_Path = "/your/home/dir/jed/colors," + Color_Scheme_Path;
^
+--- Note the comma
set_color_scheme ("scarlet");

If done correctly, your color scheme should show up under the
Windows->Color Schemes menu item.

Good luck,
--John

Loading...