LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-29-2012, 11:15 AM   #1
ArthurHuang
Member
 
Registered: Jan 2006
Posts: 174

Rep: Reputation: 30
Python IDE with emacs


I am a c/c++ programmer and have my own .emacs for emacs editing. I love it! Recently I am learning python and want to update emacs to python ide.
I found a lot threads regarding this topic but my question is will these changes affect or overlap my current c/c++ editing features? If so, how can I avoid this issue?

thanks in advance!
 
Old 02-29-2012, 02:43 PM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Rep: Reputation: 145Reputation: 145
I love it too.

There's a lisp variable, auto-mode-alist which has pairs of file extensions and mode functions that should be executed when you start editing a file with that extension. You can see it in emacs by typing C-h v auto-mode-alist.

There's a lisp function available in emacs named python-mode, which should already be in that list to be executed when you execute a file ending in .py. It's a different function than c++-mode, which is executed for various c-plus-plus file extensions.

Two different mode functions are used for two different sets of behavior.
 
  


Reply



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
emacs perl IDE Question pythonsyntax Programming 6 11-08-2012 05:24 AM
DISCUSSION: Emacs for an IDE (1) kalimakhus LinuxAnswers Discussion 4 03-18-2012 03:53 PM
LXer: Komodo IDE "Best Python IDE"; Winner of InfoWorld Technology of the Year Award LXer Syndicated Linux News 1 01-12-2011 11:45 AM
Emacs: Tips for running python code within emacs gripip Linux - Newbie 0 10-02-2010 01:54 AM
LXer: Turn Vim or Emacs Into and IDE With Exuberant-Ctags LXer Syndicated Linux News 0 08-22-2009 04:00 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:27 AM.

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