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.

Reply via email to