[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem loading Python mode
From: |
Anselm Helbig |
Subject: |
Re: Problem loading Python mode |
Date: |
Thu, 17 Sep 2009 14:16:53 +0200 |
At Thu, 17 Sep 2009 13:26:06 +0200,
bar tomas <bartomas@gmail.com> wrote:
>
> Hi,
> I'm using Emacs 22.3 on Wind XP.
> When I open a Python file (with py extension) I get the following
> error warning:
>
> File mode specification error: (file-error "Cannot open load file"
> "python-mode")
>
> I have checked in the lisp/prog-mode folder and there is a file called
> python.el.
Yes, but Emacs is looking for `python-mode.el'. `python-mode.el' is
part of the python distribution while `python.el', which is a
different piece of software, comes with recent emacsen.
> The only modification I have done to the init.el file (in .emacs.d) is
> to paste the followiing lines at the end of the file for org mode :
>
> (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
> (global-set-key "\C-cl" 'org-store-link)
> (global-set-key "\C-ca" 'org-agenda)
> (global-set-key "\C-cb" 'org-iswitchb)
These lines don't look like they're related to your problem.
> (global-font-lock-mode 1)
> (add-hook 'org-mode-hook 'turn-on-font-lock)
These lines should not be necessary since at least Emacs 22.
HTH,
Anselm
--
Anselm Helbig
mailto:anselm.helbig+news2009@googlemail.com