Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-02-2010, 02:54 AM   #1
Registered: Jul 2010
Location: India
Distribution: mint9, slackware13.1, minix3
Posts: 48

Rep: Reputation: Disabled
Emacs: Tips for running python code within emacs

Hello all,
Im trying emacs for a change to do some python coding, I tried various searches and found very helpful(although this is 22.x specific and I'm using gemacs 23.1.1), every thing is working fine like auto indent etc. but I'm not getting python prompt using C-c C-z(Task-2).

These are messages in my message window:

Loading 00debian-vars...
No /etc/mailname. Reverting to default...
Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50git-core.el (source)...done
Loading /etc/emacs/site-start.d/50pymacs.el (source)...done
Loading /etc/emacs/site-start.d/50python-mode.el (source)...done
Loading /etc/emacs/site-start.d/50yasnippet.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
File mode specification error: (void-variable python-mode-map)
Closes block: if guess == number:
Closes block: elif guess<number:
Closes block: else:
Saving file /home/crap/program/python/
Wrote /home/crap/python/

whenever Im opening a *.py file I receive this(highlighted) message is there some thing wrong in python mode, by the way Im on Mint box and installed YaSnippet,pymacs and ropemacs through package manager.

and manually edited .emacs file for auto indenting and it looks like:

(put 'upcase-region 'disabled nil)
(add-hook 'python-mode-hook '(lambda () (define-key python-mode-map "\C-m" 'newline-and-indent)))

I'm little lost so i need tips or links specific to emacs 23.x

Note: Any useful Help will be rewarded with a reputation point


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Python shell on remote machine via Emacs = Mangled text skibud2 Linux - Software 0 03-20-2009 08:28 AM
where is the .emacs file in the emacs source code tarball? aizkorri Programming 2 01-13-2007 03:05 PM
LXer: Emacs tips: Cross-platform Emacs LXer Syndicated Linux News 0 08-17-2006 12:12 AM
LXer: Emacs tips: Customize your Emacs experience LXer Syndicated Linux News 0 08-10-2006 01:21 PM
LXer: Emacs tips: Making outlines LXer Syndicated Linux News 0 06-07-2006 01:21 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration