<?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:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>tech-memo &#187; emacs</title>
	<atom:link href="http://tech.hapicky.com/archives/tag/emacs/feed" rel="self" type="application/rss+xml" />
	<link>http://tech.hapicky.com</link>
	<description>ソフトウェアエンジニアリングに関するメモ書き</description>
	<lastBuildDate>Tue, 02 Feb 2010 05:42:30 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://tech.hapicky.com/archives/tag/emacs/feed" />
		<item>
		<title>emacsの文字コード自動判別（保存時）をオフにする</title>
		<link>http://tech.hapicky.com/archives/32</link>
		<comments>http://tech.hapicky.com/archives/32#comments</comments>
		<pubDate>Thu, 20 Nov 2008 10:02:58 +0000</pubDate>
		<dc:creator>hapicky</dc:creator>
				<category><![CDATA[未分類]]></category>
		<category><![CDATA[emacs]]></category>

		<guid isPermaLink="false">http://tech.hapicky.com/?p=32</guid>
		<description><![CDATA[Railsでのお話。 ビューのテンプレートはUTF-8、クライアントに対するレスポンスはSJISという都合で、metaタグで指定している文字コードとファイルの文字コードが不一致な状況。 で、これをemacsで保存したら、metaタグを見ているらしくSJISで保存されてしまう。（賢い、ね。）ちょっと今はこの自動判別をオフにしたい。 どうやら auto-coding-functions とやらにフック（？）が設定されているらしい。 M-x describe-variable してみると、 auto-coding-functions is a variable defined in `mule.el'. Its value is (sgml-xml-auto-coding-function sgml-html-meta-auto-coding-function) ですって。とりあえずXMLについては放置でよいので、~/.emacsに以下を追記。 ?View Code LISP&#40;setq auto-coding-functions &#40;remove 'sgml-html-meta-auto-coding-function auto-coding-functions&#41;&#41; ひとまず解決。]]></description>
			<content:encoded><![CDATA[<p>Railsでのお話。<br />
ビューのテンプレートはUTF-8、クライアントに対するレスポンスはSJISという都合で、metaタグで指定している文字コードとファイルの文字コードが不一致な状況。</p>
<p>で、これをemacsで保存したら、metaタグを見ているらしくSJISで保存されてしまう。（賢い、ね。）ちょっと今はこの自動判別をオフにしたい。</p>
<p>どうやら auto-coding-functions とやらにフック（？）が設定されているらしい。<br />
M-x describe-variable してみると、</p>
<pre>
auto-coding-functions is a variable defined in `mule.el'.
Its value is
(sgml-xml-auto-coding-function sgml-html-meta-auto-coding-function)
</pre>
<p>ですって。とりあえずXMLについては放置でよいので、~/.emacsに以下を追記。</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p32code2'); return false;">View Code</a> LISP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p322"><td class="code" id="p32code2"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> auto-coding-functions <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">remove</span> 'sgml-html-meta-auto-coding-<span style="color: #b1b100;">function</span> auto-coding-functions<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></td></tr></table></div>

<p>ひとまず解決。</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.hapicky.com/archives/32/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://tech.hapicky.com/archives/32" />
	</item>
	</channel>
</rss>

