[SciPy-user] Python mode in emacs 22 (Ubuntu Gutsy Gibbon)
Tue Oct 23 13:59:52 CDT 2007
I have spent some time tinkering with this and think it might benefit emacs
+ ubuntu users.
Stefan suggested I use emacs-snapshot from the peadrop repository. It was
already in my package manager without having to add the repository. Aside
from having beautiful anti-aliased fonts, it plays nicely with the
python-mode that is distributed separately (the one that works with emacs
21). The snapshot is emacs 220.127.116.11. Having several emacs versions
side-by-side doesn't seem to cause any issues. I just changed the symbolic
link /usr/bin/emacs to point to the version I actually want to run
(emacs-snapshot-gtk in my case). The emacs-22 that is the package manager
does not work with the python-mode separate package and the python-mode
built into emacs-22 doesn't have as many features. So, I highly recommend
emacs-snapshot to solve this problem (emacs-22 and python-mode
I didn't actually do this, but Stefan recommended:
sudo update-alternatives --set emacs-snapshot /usr/bin/emacs-snapshot-gtk
sudo aptitude reinstall emacs-snapshot
This may have been less hackish than changing the target of /usr/bin/emacs.
Note that adding
(setq inhibit-splash-screen t)
to your .emacs file removes an annoyance with the splash screen in
emacs-snapshot (annoying in my opinion at least).
On 10/22/07, Ryan Krauss <email@example.com> wrote:
> O.K., I think everything is cool. I seem to have emacs-snapshot working
> and it was fairly painless. I was having one small problem (annoyance).
> The splash screen stays up until I either click in the window or type
> something. When I type "emacs filename.py" at the command prompt, I want
> to look at the file. I googled and found that setting this variable gets
> rid of the splash screen entirely:
> '(inhibit-splash-screen t)
> It also gets rid of an initial scratch message.
> Is something else causing this behavior? Do you see the same thing? Is
> this a good solution (i.e. customizing the inhibit-splash-screen variable)
> or is there a better one?
> On 10/22/07, Stefan van der Walt <firstname.lastname@example.org> wrote:
> > Hey Ryan,
> > No problem. I am using the standard python-mode from
> > pool/main/p/python-mode/python-mode_1.0-3.1ubuntu1_all.deb
> > Cheers
> > Stéfan
> > On Mon, Oct 22, 2007 at 10:40:02AM -0500, Ryan Krauss wrote:
> > > Sorry to treat you like my personal emacs mailing list, but are you
> > using the
> > > python-mode in the standard repositories or from somewhere else? My
> > > understanding was that this one wasn't compatible with emacs 22. Do
> > you have a
> > > newer version than the repository?
> > >
> > > Thanks again,
> > >
> > > Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-user