how can I shadow the .el files from the Emacs directory with the ones I specify in my init file

StackOverflow https://stackoverflow.com/questions/10451192

  •  05-06-2021
  •  | 
  •  

Question

So list-load-path-shadows tells which .el files shadow other files. Most of the times the native files found in my emacs distribution shadow newer files I downloaded which I preload in my init file.

For example I have cloned the cedet repository and have that always up to date but the cedet files inside my Emacs 23.4 shadow the newer cedet files i load in my init file.

I can't clone cedet over the directory in /lisp/cedet since packages like eieio or speedbar would still not get overwritten since they are in a different folder. The temporary solution now is to delete the older packages that came bundled with emacs in order to give priority over the ones I load via my init file.

Is there a way to prioritize the load of my init file over the load of the default emacs packages?

Was it helpful?

Solution

If you use CEDET 1.0 or 1.1, the basic install instructions work fine, since many names are different. If you use CEDET from bzr trunk which uses the new naming scheme, you need to use:

(load-file "/home/user/cedet/cedet-devel-load.el")

which will perform the necessary magic to remove the built-in CEDET from the load path, and install the new CEDET onto your load path.

See the INSTALL file in CEDET bzr trunk for more.

OTHER TIPS

Put the cedet repository directory at the front of your load-path and Emacs will pick it up from the cedet area...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top