At 05:53 PM 2/15/00 +0000, you wrote:
>Hi,
>
>I am working in a small company currently converting some co-workers
>to XEmacs and the JDE.
>
>The idea is to provide some default settings like the buffer
>boilerplate and some path settings for documentation globally for the
>whole company. But it seams, that the JDE only gets the values from
>the custom-set-variables statements in .emacs or the default values.
>Setq statements in .emacs doesn't have an effect.
>
>Is there a way to provide some global settings, or is the only way
>really to customize each JDE?
>
Here is a suggestion. Set up the JDE the way you want, using custom
to store the company-wide setting in your .emacs file. Now create
a new file called jde-defaults.el in your Emacs site directory (so
it will be on everybody's load-path). Copy the custom-set-variable
form, with the JDE settings, to the new file and save it. Now have
everybody customize at least one variable and save it in their .emacs
file. Then insert the following
(custom-set-variables )
(load "jde-defaults)
at the very end of each user's .emacs file. Now whenever the user starts Emacs
the jde-defaults file will be loaded last, overriding any settings in the
preceding custom-set-variables form. Also, you can modify the defaults for
everybody by repeating the above procedure with the new settings.
You could use a simililar technique to ensure that all projects have the
same default settings. That is, create a template project, with all the
default settings set, then use JDE->Projects->Project FIle->Save to save the
settings in a prj.el file. Then open and edit the jde-set-variables form
to include only the default settings and save this in your site directory
under some suitable name, e.g., jde-prj-defaults.el. Finally, create a
template prj.el file like this:
(jde-set-project-name "projectname")
(jde-set-variables ) ;; <-- Inserted to ensure that Save Project saves here.
(load "jde-project-defaults") ;; This must always be last.
Whenever a user creates a project, they can copy the template into
their project directory and edit the name to the name of the project.
Whenever the
user opens a source file, the project defaults will be loaded last overriding
whatever else was stored in the project file.
CAVEAT: I have not tried the above. If you decide to try it, I'd be
interested to
here how it works out.
If this works, I could wire something similar into the JDE, that is, add the
capability to always load a defaults file after whatever is in the .emacs file
or prj.el file.
- Paul
------------------------------------------------------------
JDE mailing list archive:
http://www.mail-archive.com/[email protected]/maillist.html
If you have a problem with the JDE, please use JDE->Help->Submit Problem
Report to prepare your query. This will insure that you include all
information that may be required to solve your problem.