<?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>Doug Woos Writes</title>
	<atom:link href="http://dougwoos.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dougwoos.wordpress.com</link>
	<description></description>
	<lastBuildDate>Fri, 11 Dec 2009 01:01:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dougwoos.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Doug Woos Writes</title>
		<link>http://dougwoos.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dougwoos.wordpress.com/osd.xml" title="Doug Woos Writes" />
	<atom:link rel='hub' href='http://dougwoos.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Edit-file-as-root</title>
		<link>http://dougwoos.wordpress.com/2009/12/11/12/</link>
		<comments>http://dougwoos.wordpress.com/2009/12/11/12/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 00:50:20 +0000</pubDate>
		<dc:creator>dwoos</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://dougwoos.wordpress.com/?p=12</guid>
		<description><![CDATA[I use emacs (or actually emacsclient -t) for sysadmin-type stuff, and in the course of doing so I often need to edit a file as root. So instead of opening up a second emacs instance as root, I wrote a little function that uses TRAMP to edit the file using its wonderful sudo: protocol. (defun [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dougwoos.wordpress.com&amp;blog=8393718&amp;post=12&amp;subd=dougwoos&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I use emacs (or actually emacsclient -t) for sysadmin-type stuff, and in the course of doing so I often need to edit a file as root. So instead of opening up a second emacs instance as root, I wrote a little function that uses TRAMP to edit the file using its wonderful sudo: protocol.</p>
<p><code><br />
(defun edit-file-as-root ()<br />
  (interactive)<br />
  (let ((bfn buffer-file-name))<br />
    (kill-buffer)<br />
    (find-file (concatenate 'string "/sudo:root@localhost:" bfn))))<br />
</code></p>
<p>Bind this to something convenient (say one of the F-keys) and you&#8217;re good to go.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dougwoos.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dougwoos.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dougwoos.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dougwoos.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dougwoos.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dougwoos.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dougwoos.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dougwoos.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dougwoos.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dougwoos.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dougwoos.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dougwoos.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dougwoos.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dougwoos.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dougwoos.wordpress.com&amp;blog=8393718&amp;post=12&amp;subd=dougwoos&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dougwoos.wordpress.com/2009/12/11/12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69691bdc1d403305fdbddad8cd2710a0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dwoos</media:title>
		</media:content>
	</item>
		<item>
		<title>Post From Emacs</title>
		<link>http://dougwoos.wordpress.com/2009/07/01/post-from-emacs/</link>
		<comments>http://dougwoos.wordpress.com/2009/07/01/post-from-emacs/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 05:24:34 +0000</pubDate>
		<dc:creator>dwoos</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://dougwoos.wordpress.com/2009/07/01/testing-post-from-emacs/</guid>
		<description><![CDATA[So posting/editing posts from emacs seems to work.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dougwoos.wordpress.com&amp;blog=8393718&amp;post=3&amp;subd=dougwoos&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So posting/editing posts from emacs seems to work.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dougwoos.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dougwoos.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dougwoos.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dougwoos.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dougwoos.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dougwoos.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dougwoos.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dougwoos.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dougwoos.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dougwoos.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dougwoos.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dougwoos.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dougwoos.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dougwoos.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dougwoos.wordpress.com&amp;blog=8393718&amp;post=3&amp;subd=dougwoos&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dougwoos.wordpress.com/2009/07/01/post-from-emacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69691bdc1d403305fdbddad8cd2710a0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dwoos</media:title>
		</media:content>
	</item>
	</channel>
</rss>
