<?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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>EMSTONE Bebop &#187; Emacs</title>
	<atom:link href="http://bebop.emstone.com/tags/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://bebop.emstone.com</link>
	<description>엠스톤 개발팀 블로그</description>
	<lastBuildDate>Sun, 29 Jan 2012 05:25:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
		<item>
		<title>emacs 편집기 활용 팁</title>
		<link>http://bebop.emstone.com/2008/12/28/emacs-%ed%8e%b8%ec%a7%91%ea%b8%b0-%ed%99%9c%ec%9a%a9-%ed%8c%81/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=emacs-%25ed%258e%25b8%25ec%25a7%2591%25ea%25b8%25b0-%25ed%2599%259c%25ec%259a%25a9-%25ed%258c%2581</link>
		<comments>http://bebop.emstone.com/2008/12/28/emacs-%ed%8e%b8%ec%a7%91%ea%b8%b0-%ed%99%9c%ec%9a%a9-%ed%8c%81/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 04:26:50 +0000</pubDate>
		<dc:creator>lethean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://bebop.emstone.com/?p=281</guid>
		<description><![CDATA[emacs를 써보고 싶은 생각에 emacs-snapshot을 설치하고 손에 익혀 가면서 공부하고 있습니다. vim만 사용하다가 갑자기 emacs를 쓰다보니 단축키가 헷갈리지만 emacs도 vim만큼 소스코드를 작성하는 재미가 있습니다. emacs를 처음 시작하면서 참조했던 사이트나 수정해야 했던 몇가지 팁을 정리했습니다. 1. 한글설정 하기 emacs 23 개발버전인 &#8230; <a href="http://bebop.emstone.com/2008/12/28/emacs-%ed%8e%b8%ec%a7%91%ea%b8%b0-%ed%99%9c%ec%9a%a9-%ed%8c%81/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">emacs를 써보고 싶은 생각에 emacs-snapshot을 설치하고 손에 익혀 가면서 공부하고 있습니다. vim만 사용하다가 갑자기 emacs를 쓰다보니 단축키가 헷갈리지만 emacs도 vim만큼 소스코드를 작성하는 재미가 있습니다.</p>
<p style="text-align: justify;">emacs를 처음 시작하면서 참조했던 사이트나 수정해야 했던 몇가지 팁을 정리했습니다.</p>
<h3>1. 한글설정 하기</h3>
<p style="text-align: justify;">emacs 23 개발버전인 emacs-snapshot을 설치하고 다음과 같이 설정파일에 입력하면 사용하고 싶은 한글 글꼴을 설정할 수 있습니다.</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">;; 원하는 글꼴로 변경합니다.</span>
<span style="color: #66cc66;">&#40;</span>set-fontset-font <span style="color: #ff0000;">&quot;fontset-default&quot;</span> '<span style="color: #66cc66;">&#40;</span>#x1100 <span style="color: #66cc66;">.</span> #xffdc<span style="color: #66cc66;">&#41;</span>  '<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Malgun Gothic&quot;</span> <span style="color: #66cc66;">.</span> <span style="color: #ff0000;">&quot;unicode-bmp&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>set-fontset-font <span style="color: #ff0000;">&quot;fontset-default&quot;</span> '<span style="color: #66cc66;">&#40;</span>#xe0bc <span style="color: #66cc66;">.</span> #xf66e<span style="color: #66cc66;">&#41;</span>  '<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;New Gulim&quot;</span> <span style="color: #66cc66;">.</span> <span style="color: #ff0000;">&quot;unicode-bmp&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>set-fontset-font <span style="color: #ff0000;">&quot;fontset-default&quot;</span> 'kana '<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Meiryo&quot;</span> <span style="color: #66cc66;">.</span> <span style="color: #ff0000;">&quot;unicode-bmp&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>set-fontset-font <span style="color: #ff0000;">&quot;fontset-default&quot;</span> 'han '<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Microsoft YaHei&quot;</span> <span style="color: #66cc66;">.</span> <span style="color: #ff0000;">&quot;unicode-bmp&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p style="text-align: justify;">참조 사이트: <a href="http://kldp.org/node/76157/360514#comment-360514" target="_blank">http://kldp.org/node/76157/360514#comment-360514</a></p>
<h3>2. vim에 있는 set nu 명령 그대로 이용하기</h3>
<p style="text-align: justify;">vim에 있는 set nu 명령 역시 emacs에도 있습니다. emacs 설정 파일에 다음과 같이 입력하면 소스코드 옆에 라인번호가 나옵니다.</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>add-hook 'find-file-hook <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">lambda</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#40;</span>linum-mode <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">;; 하단에 커서가 위치한 라인 넘버 표시</span>
<span style="color: #66cc66;">&#40;</span>line-number-mode <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">;; 하단에 커서가 위치한 컬럼 넘버 표시</span>
<span style="color: #66cc66;">&#40;</span>column-number-mode <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p style="text-align: justify;">참조 사이트: <a href="http://www.emacswiki.org/emacs/LineNumbers" target="_blank">http://www.emacswiki.org/emacs/LineNumbers</a></p>
<h3>3. 커서 라인 하이라이팅 하기</h3>
<p style="text-align: justify;">아래와 같이 입력하면 커서가 위치한 라인이 하이라이팅됩니다. 전경색, 배경색만 사용하고 싶은 색깔로 설정하면 됩니다.</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>global-hl-line-mode <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>set-face-background 'hl-line <span style="color: #ff0000;">&quot;#222&quot;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>set-face-foreground 'highlight <span style="color: #b1b100;">nil</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>set-face-foreground 'hl-line <span style="color: #b1b100;">nil</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p style="text-align: justify;">참조 사이트: <a href="http://www.emacsblog.org/2007/04/09/highlight-the-current-line" target="_blank">http://www.emacsblog.org/2007/04/09/highlight-the-current-line</a></p>
<h3>4. 한줄씩 삭제하기</h3>
<p style="text-align: justify;">vim의 dd 명령과 비슷한 효과를 나타냅니다.</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> nuke-line<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #ff0000;">&quot;Kill an entire line, including the trailing newline character&quot;</span>
  <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> previous-column <span style="color: #66cc66;">&#40;</span>current-column<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span>end-of-line<span style="color: #66cc66;">&#41;</span>
&nbsp;
  <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span>current-column<span style="color: #66cc66;">&#41;</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>delete-char <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">progn</span>
      <span style="color: #66cc66;">&#40;</span>beginning-of-line<span style="color: #66cc66;">&#41;</span>
      <span style="color: #66cc66;">&#40;</span>kill-line<span style="color: #66cc66;">&#41;</span>
      <span style="color: #66cc66;">&#40;</span>delete-char <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
      <span style="color: #66cc66;">&#40;</span>move-to-column previous-column<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; 원하는 단축키로 설정합니다.</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>f8<span style="color: #66cc66;">&#93;</span> 'nuke-line<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p style="text-align: justify;">참조 사이트: <a href="http://homepages.inf.ed.ac.uk/s0243221/emacs" target="_blank">http://homepages.inf.ed.ac.uk/s0243221/emacs</a></p>
<h3>5. 도움이 되는 사이트</h3>
<p style="text-align: justify;">이 문서에서 emacs 단축키를 나열하는 것보다 잘 정리된 사이트를 참조하는 것이 더 도움이 될 것 같아서 링크를 남깁니다.</p>
<p style="text-align: justify;">이멕스, vim 의 설정파일을 공유하는 사이트: <a href="http://www.dotfiles.com" target="_blank">http://www.dotfiles.com</a><br />
KLDP wiki의 emacs 튜토리얼 사이트: <a href="http://wiki.kldp.org/wiki.php/EmacsGdbEtagsCscope" target="_blank">http://wiki.kldp.org/wiki.php/EmacsGdbEtagsCscope</a><br />
Emacs 메뉴얼 사이트: <a href="http://www.gnu.org/software/emacs/manual/html_node/emacs/index.html#Top" target="_blank">http://www.gnu.org/software/emacs/manual/html_node/emacs/index.html#Top</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bebop.emstone.com/2008/12/28/emacs-%ed%8e%b8%ec%a7%91%ea%b8%b0-%ed%99%9c%ec%9a%a9-%ed%8c%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
	</channel>
</rss>

