Fedora Linux Support Community & Resources Center
  #1  
Old 25th August 2008, 07:25 PM
sycamorex Offline
Registered User
 
Join Date: Nov 2005
Location: London, UK
Posts: 110
emacs python

What do I need to do to enable python mode in emacs? Is it only a question of editing ~/.emacs
or do I need to install some additional modules?

thanks
__________________
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does. :)
Reply With Quote
  #2  
Old 25th August 2008, 08:53 PM
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 5,461
Quote:
Originally Posted by sycamorex
What do I need to do to enable python mode in emacs? Is it only a question of editing ~/.emacs or do I need to install some additional modules?
Is it not working for you? You shouldn't need to do anything, it should just work by default in Fedora. At least it always has for me. If for some reason it doesn't then just put this in your ~/.emacs:

(add-hook 'python-mode-hook 'turn-on-font-lock)
Reply With Quote
  #3  
Old 25th August 2008, 08:56 PM
sycamorex Offline
Registered User
 
Join Date: Nov 2005
Location: London, UK
Posts: 110
I mean I can see the python menu, syntax highlighting is ok, however, it doesn't automatically indent - that's the problem.
__________________
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does. :)
Reply With Quote
  #4  
Old 25th August 2008, 09:20 PM
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 5,461
In python mode you use Ctrl-j to create a new line with the proper indentation, not Return.
Reply With Quote
  #5  
Old 25th August 2008, 09:26 PM
sycamorex Offline
Registered User
 
Join Date: Nov 2005
Location: London, UK
Posts: 110
cool, thanks
__________________
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does. :)
Reply With Quote
Reply

Tags
emacs, python

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Latest Emacs v Fedora Emacs olwe Using Fedora 7 3rd May 2011 06:59 PM
Python, IDLE, Python-tools Gnome. Deonis Using Fedora 2 12th March 2009 03:44 AM
Autocomplete in Emacs for Python? cr4ck3r Programming & Packaging 3 3rd December 2008 06:35 AM
Processing Conflict: python-devel conflicts python< 2.3.4-13.1 guarriman Using Fedora 0 15th September 2005 05:53 PM


Current GMT-time: 19:36 (Wednesday, 23-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat