<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Slacy's Blog &#187; emacs</title>
	<atom:link href="http://slacy.com/blog/tag/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://slacy.com/blog</link>
	<description>This site is solar powered!</description>
	<lastBuildDate>Tue, 01 May 2012 05:50:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>pymacs, ropemacs, and virtualenv, all at the same time.</title>
		<link>http://slacy.com/blog/2011/03/pymacs-ropemacs-and-virtualenv-all-at-the-same-time/</link>
		<comments>http://slacy.com/blog/2011/03/pymacs-ropemacs-and-virtualenv-all-at-the-same-time/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 01:15:12 +0000</pubDate>
		<dc:creator>slacy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[pip]]></category>
		<category><![CDATA[pymacs]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[refactoring]]></category>
		<category><![CDATA[rope]]></category>
		<category><![CDATA[ropemacs]]></category>

		<guid isPermaLink="false">http://slacy.com/blog/?p=1504</guid>
		<description><![CDATA[So, you&#8217;re developing for Python, and you want to use rope and ropemacs and pymacs, but it&#8217;s totally busted when you use your virtualenv. In addition, the packaged versions of pymacs+ropemacs for ubuntu 10.10 (and 11.04) are also kind of busted, because they complains with really odd errors. Here&#8217;s the solution: Install the latest, greatest [...]]]></description>
			<content:encoded><![CDATA[<p>So, you&#8217;re developing for Python, and you want to use rope and ropemacs and pymacs, but it&#8217;s totally busted when you use your virtualenv.</p>
<p>In addition, the packaged versions of pymacs+ropemacs for ubuntu 10.10 (and 11.04) are also kind of busted, because they complains with really odd errors.</p>
<p>Here&#8217;s the solution:</p>
<p>Install the latest, greatest versions of everything into your virtualenv:</p>
<pre>. ./env/bin/activate
pip install -e hg+https://bitbucket.org/agr/rope#egg=rope
pip install -e hg+https://bitbucket.org/agr/ropemacs#egg=ropemacs
pip install -e hg+https://bitbucket.org/agr/ropemode#egg=ropemode
pip install -e git+https://github.com/pinard/Pymacs.git#egg=pymacs</pre>
<p>Unfortunately, pymacs doesn&#8217;t cleanly install, so then need to:</p>
<pre>cd env/src/pymacs
make</pre>
<p>Once that&#8217;s done, you should have env/src/pymacs/pymacs.el. Great. Now you just need to import that from your .emacs file. So, add something that looks like this to your .emacs:</p>
<pre>(setq virtual-env (getenv "VIRTUAL_ENV"))

(if (not (equal virtual-env 'nil))
      (setq load-path (append
                 (list (concat virtual-env "/src/pymacs" ))
                 load-path))
      (let ((foo 'bar))
      (require 'pymacs)
      (pymacs-load "ropemacs" "rope-")
      (setq ropemacs-enable-autoimport 't)
      ))</pre>
<p>Activate your virtualenv, and run emacs from inside there, and you should be good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://slacy.com/blog/2011/03/pymacs-ropemacs-and-virtualenv-all-at-the-same-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Why is my Ubuntu 10.04 emacs so messed up?</title>
		<link>http://slacy.com/blog/2010/05/why-is-my-ubuntu-10-04-emacs-so-messed-up/</link>
		<comments>http://slacy.com/blog/2010/05/why-is-my-ubuntu-10-04-emacs-so-messed-up/#comments</comments>
		<pubDate>Tue, 25 May 2010 03:18:39 +0000</pubDate>
		<dc:creator>slacy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[droid sans mono]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[ttf]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://slacy.com/blog/?p=1199</guid>
		<description><![CDATA[This is what it looks like, if I install any of the emacs*-gtk packages:  (i.e. the ones that support TTF/Antialiased fonts)]]></description>
			<content:encoded><![CDATA[<p>This is what it looks like, if I install any of the emacs*-gtk packages:  (i.e. the ones that support TTF/Antialiased fonts)</p>
<p><a href="http://slacy.com/blog/wp-content/uploads/2010/05/Screenshot-emacs@whisper.slacy_.com_.png"><img class="aligncenter size-full wp-image-1200" title="Screenshot-emacs@whisper.slacy.com" src="http://slacy.com/blog/wp-content/uploads/2010/05/Screenshot-emacs@whisper.slacy_.com_.png" alt="" width="581" height="975" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://slacy.com/blog/2010/05/why-is-my-ubuntu-10-04-emacs-so-messed-up/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://slacy.com/blog/wp-content/uploads/2010/05/Screenshot-emacs@whisper.slacy_.com_-150x150.png" />
		<media:content url="http://slacy.com/blog/wp-content/uploads/2010/05/Screenshot-emacs@whisper.slacy_.com_.png" medium="image">
			<media:title type="html">Screenshot-emacs@whisper.slacy.com</media:title>
			<media:thumbnail url="http://slacy.com/blog/wp-content/uploads/2010/05/Screenshot-emacs@whisper.slacy_.com_-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>flymake for emacs + Python</title>
		<link>http://slacy.com/blog/2009/11/flymake-for-emacs-python/</link>
		<comments>http://slacy.com/blog/2009/11/flymake-for-emacs-python/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 17:46:13 +0000</pubDate>
		<dc:creator>slacy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[pep8]]></category>
		<category><![CDATA[pylint]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://slacy.com/blog/?p=997</guid>
		<description><![CDATA[flymake is an emacs mode that lets you &#8220;compile&#8221; (or syntax check) your code on the fly. For Python, this means that you can run several syntax checkers, like pep8 or pylint, or pyflakes (or all of the above) while you&#8217;re editing your code in realtime. To get this set up in emacs, do the [...]]]></description>
			<content:encoded><![CDATA[<p>flymake is an emacs mode that lets you &#8220;compile&#8221; (or syntax check) your code on the fly.  For Python, this means that you can run several syntax checkers, like pep8 or pylint, or pyflakes (or all of the above) while you&#8217;re editing your code in realtime.  To get this set up in emacs, do the following:</p>
<p>Create ~/bin/pychecker, which will be a simple script calling all your checkers.</p>
<pre>#!/bin/bash
pylint --output-format=parseable "$1"
pyflakes "$1"
pep8 --repeat "$1"
true</pre>
<p>Second, edit your .emacs and set up flymake to call this script for python files, and add some useful keyboard shortcuts for jumping between errors &amp; warnings:</p>
<pre>(require 'flymake)
(defun flymake-pylint-init ()
 (let* ((temp-file (flymake-init-create-temp-buffer-copy
                    'flymake-create-temp-inplace))
        (local-file (file-relative-name
                     temp-file
                     (file-name-directory buffer-file-name))))
   (list "~/bin/pychecker" (list local-file))))

(add-to-list 'flymake-allowed-file-name-masks
             '("\\.py\\'" flymake-pylint-init))

(defun my-python-mode-hook ()
 (interactive)
 (flymake-mode)
 (local-set-key [S-up]
                (lambda ()
                  (interactive)
                  (flymake-goto-prev-error)
                  (message "%s"
                    (flymake-ler-text (caar (flymake-find-err-info
                    flymake-err-info
                    (flymake-current-line-no)))))))
 (local-set-key [S-down]
                (lambda ()
                  (interactive)
                  (flymake-goto-next-error)
                  (message "%s"
                    (flymake-ler-text (caar (flymake-find-err-info
                    flymake-err-info
                    (flymake-current-line-no)))))))
)
(add-hook 'python-mode-hook 'my-python-mode-hook)</pre>
]]></content:encoded>
			<wfw:commentRss>http://slacy.com/blog/2009/11/flymake-for-emacs-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Useful keybindings for emacs python-mode</title>
		<link>http://slacy.com/blog/2009/11/useful-keybindings-for-emacs-python-mode/</link>
		<comments>http://slacy.com/blog/2009/11/useful-keybindings-for-emacs-python-mode/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 18:16:27 +0000</pubDate>
		<dc:creator>slacy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://slacy.com/blog/?p=992</guid>
		<description><![CDATA[I wrote up this keybinding the other day at work, and found that I missed it when I went home, so I wrote it again from scratch. It allows you easily indent or undent the current region using M-left and M-right: (global-set-key [M-left] '(lambda () (interactive) (save-excursion (py-shift-region-left (region-beginning) (region-end))))) (global-set-key [M-right] '(lambda () (interactive) [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote up this keybinding the other day at work, and found that I missed it when I went home, so I wrote it again from scratch.</p>
<p>It allows you easily indent or undent the current region using M-left and M-right:</p>
<pre name="code" class="lisp">(global-set-key [M-left] '(lambda () (interactive)
  (save-excursion
    (py-shift-region-left (region-beginning) (region-end)))))

(global-set-key [M-right] '(lambda () (interactive)
  (save-excursion
     (py-shift-region-right (region-beginning) (region-end)))))</pre>
]]></content:encoded>
			<wfw:commentRss>http://slacy.com/blog/2009/11/useful-keybindings-for-emacs-python-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
	</channel>
</rss>

