Re: Emacs site-wide function loading

2006-12-07 Thread sac

This seem to be a known problem.
When I was searching around to solve this problem, I encountered this thread,
http://lists.freebsd.org/pipermail/freebsd-questions/2006-October/133579.html,
which discuss the same problem. But doesn't seem to have a solution
other than adding the statements in the local .emacs file.
If anyone of you have solved this please let me know.

Thanks,
sac.

On 12/6/06, sac [EMAIL PROTECTED] wrote:

Hi,
 To install python mode in emacs 21.4 on Openbsd4.0 I have byte-compiled
 the  python-mode.el and dropped in the directory path
 /usr/local/share/emacs/21.4/lisp/progmodes/ and the directory is in
 `load-path'.

 The autoload function definition:
(autoload 'python-mode python-mode Python editing mode. t)
 and the other definitions:
(setq auto-mode-alist (cons '(\\.py$ . python-mode) auto-mode-alist))
(setq interpreter-mode-alist (cons '(python . python-mode)
   interpreter-mode-alist))

 work when put in ~/.emacs, and I can do M-x python mode, and it
  automatically opens *.py files in python mode.

 How do I make the changes site-wide or global?

 If I put the above three statements in a .el file and drop in one of
 the directories in `load-path', it does not seem to work.
 I tried putting in, `/usr/local/share/emacs/21.4/site-lisp/',
 `/usr/local/share/emacs/site-lisp/', I even tried adding the above
 statements in `/usr/local/share/emacs/21.4/lisp/loaddefs.el', but even
 that did not seem to work.

 Is there any way, I can make these changes global?

 Thanks,
 sac.




Emacs site-wide function loading

2006-12-05 Thread sac
Hi,
 To install python mode in emacs 21.4 on Openbsd4.0 I have byte-compiled
 the  python-mode.el and dropped in the directory path
 /usr/local/share/emacs/21.4/lisp/progmodes/ and the directory is in
 `load-path'.

 The autoload function definition:
(autoload 'python-mode python-mode Python editing mode. t)
 and the other definitions:
(setq auto-mode-alist (cons '(\\.py$ . python-mode) auto-mode-alist))
(setq interpreter-mode-alist (cons '(python . python-mode)
   interpreter-mode-alist))

 work when put in ~/.emacs, and I can do M-x python mode, and it
 automatically opens *.py files in python mode.

 How do I make the changes site-wide or global?

 If I put the above three statements in a .el file and drop in one of
 the directories in `load-path', it does not seem to work.
 I tried putting in, `/usr/local/share/emacs/21.4/site-lisp/',
 `/usr/local/share/emacs/site-lisp/', I even tried adding the above
 statements in `/usr/local/share/emacs/21.4/lisp/loaddefs.el', but even
 that did not seem to work.

 Is there any way, I can make these changes global?

 Thanks,
 sac.