<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Huseyin Yilmaz&#039;s Blog &#187; emacs</title>
	<atom:link href="http://yilmazhuseyin.wordpress.com/category/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://yilmazhuseyin.wordpress.com</link>
	<description>A blog about things I like to share</description>
	<lastBuildDate>Wed, 17 Aug 2011 04:56:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='yilmazhuseyin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Huseyin Yilmaz&#039;s Blog &#187; emacs</title>
		<link>http://yilmazhuseyin.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://yilmazhuseyin.wordpress.com/osd.xml" title="Huseyin Yilmaz&#039;s Blog" />
	<atom:link rel='hub' href='http://yilmazhuseyin.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to setup emacs for python (django) development</title>
		<link>http://yilmazhuseyin.wordpress.com/2010/09/29/how-to-setup-emacs-for-python-django-development/</link>
		<comments>http://yilmazhuseyin.wordpress.com/2010/09/29/how-to-setup-emacs-for-python-django-development/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 11:55:24 +0000</pubDate>
		<dc:creator>yilmazhuseyin</dc:creator>
				<category><![CDATA[django]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://yilmazhuseyin.wordpress.com/?p=88</guid>
		<description><![CDATA[Lately, I decided to use emacs for all my development. If, I use emacs I will have my development environment trough terminal. so I can remotely connect my computer and do my development. When I discover how emacs works (and what emacs is), I really like the idea of using emacs for my work and [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yilmazhuseyin.wordpress.com&#038;blog=13092363&#038;post=88&#038;subd=yilmazhuseyin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Lately, I decided to use emacs for all my development. If, I use emacs I will have my development environment trough terminal. so I can remotely connect my computer and do my development. When I discover how emacs works (and what emacs is), I really like the idea of using emacs for my work and personal projects.</p>
<p>Even though I made my mind for using emacs for development, there was a little problem. Comparing to newer IDE’s like eclipse, emacs was really hard to modify, I had really hard time to understand how it works. So I decided to write my experience for others to speed up to beginning process (which seems to be the hardest part of switching to emacs)</p>
<p>Before I start to write how did I setup my environment, I would like to tell you about sources I read. The best place you can go to understand how emacs work is <a href="http://www.gnu.org/software/emacs/manual/emacs.html">emacs manual</a>. This manual is about every aspect of emacs. You can also find same manual in emacs itself so try to learn how it is constructed. There is also a wiki for emacs: <a title="emacs wiki" href="http://emacswiki.org/" target="_blank">emacswiki.org</a> .</p>
<p>Here is how to modify emacs. Emacs plug-ins are written in elisp (emacs lisp: A language specifically written to implement emacs. You can also use it in emacs to modify emacs on the fly.) When emacs is opened. ~/.emacs file is executed. There should be elisp code in this file. As a name convention you also create ~/.emacs.d directory to hold plug-in codes. emacs does not check this directory. you have to add it to emacs load path. So I created .emacs file and .emacs.d directory under my home directory. And inside .emacs file I added following code<br />
(add-to-list &#8216;load-path &#8220;~/.emacs.d/&#8221;)<br />
This turned out to be a elisp code.</p>
<h2>Add Python Support</h2>
<p>To use django I need to have a python environment. So I found a <a href="http://09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0.com/2008/05/09/emacs-as-a-powerful-python-ide/" target="_blank">blog post</a>. But this post was  not telling how to set his environment but just giving the source code. Since I don’t know elisp I couldn’t really modify his version. After going trough similar pages I found a <a title="How to install pyhon support in emacs" href="http://www.emacswiki.org/emacs/PythonProgrammingInEmacs" target="_blank">helpful page</a> in emacs wiki. So I just follow comments in this page.<br />
first of all I installed rope, ropemacs , pymacs and ropemode like it suggested. you can install ropemacs, ropemacs , pymacs from ubuntu repo.<br />
sudo apt-get install python-rope python-ropemacs pymacs ropemacs can be install from its homepage. just download the package. call<br />
python setup.py build<br />
sudo python setup.py install<br />
within the package.</p>
<p>After that I installed <a title="Autocomplete.el" href="http://www.emacswiki.org/emacs/AutoComplete" target="_blank">autocompete.el</a> as page explains. At this point, I had auto-complete functionality for python and it is really cool. I also installed python-mode from ubuntu repo. but I don’t really know that it did to emacs. (sudo apt-get install python-mode).</p>
<p>Lastly I followed the wiki and installed <a title="pylookup" href="http://github.com/tsgates/pylookup" target="_blank">pylookup</a>. so I can lookup python documentation within emacs.</p>
<p>For now this is my set up. It is minimal but in time I will add new features to it.</p>
<p>Here is a screenshot of what result is look like:</p>
<p><a href="http://yilmazhuseyin.files.wordpress.com/2010/09/python-mode.png"><img class="size-full wp-image-93 alignnone" title="python-mode" src="http://yilmazhuseyin.files.wordpress.com/2010/09/python-mode.png?w=450&#038;h=281" alt="" width="450" height="281" /></a></p>
<h2>Enable IDO Mode</h2>
<p>Ido mode is what makes finding buffers and opening files a snap. normally finding a file is really really hard and if you want to open another file you have to go trough same cumbersome process. Emacs is just not usable without ido mode. Ido mode gives you autocompletion in opening buffers an files. it searches in current list and gives you your alternatives. It is just really easy to open files with ido mode. To enable it just follow instructions in <a href="http://www.emacswiki.org/emacs/InteractivelyDoThings" target="_blank">emacs wiki page</a>.</p>
<p>TODO: add js support. add python validation.</p>
<p>NOTE: I wrote another version of this post: It can be found in my new blog . In new version I covered my django emacs setup in three different blog post</p>
<p><a href="http://www.yilmazhuseyin.com/blog/dev/basic-emacs-setup/" target="_blank">http://www.yilmazhuseyin.com/blog/dev/basic-emacs-setup/</a></p>
<p><a href="http://www.yilmazhuseyin.com/blog/dev/emacs-setup-python-development/" target="_blank">http://www.yilmazhuseyin.com/blog/dev/emacs-setup-python-development/</a></p>
<p><a href="http://www.yilmazhuseyin.com/blog/dev/emacs-setup-web-development/" target="_blank">http://www.yilmazhuseyin.com/blog/dev/emacs-setup-web-development/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yilmazhuseyin.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yilmazhuseyin.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yilmazhuseyin.wordpress.com&#038;blog=13092363&#038;post=88&#038;subd=yilmazhuseyin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yilmazhuseyin.wordpress.com/2010/09/29/how-to-setup-emacs-for-python-django-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c46a4215e49e00007cd622b75df75f91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yilmazhuseyin</media:title>
		</media:content>

		<media:content url="http://yilmazhuseyin.files.wordpress.com/2010/09/python-mode.png" medium="image">
			<media:title type="html">python-mode</media:title>
		</media:content>
	</item>
	</channel>
</rss>
