<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://workspace.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Gentoo_emacs_smalltalkmode</id>
	<title>Gentoo emacs smalltalkmode - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://workspace.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Gentoo_emacs_smalltalkmode"/>
	<link rel="alternate" type="text/html" href="https://workspace.onionmixer.net/wiki/index.php?title=Gentoo_emacs_smalltalkmode&amp;action=history"/>
	<updated>2026-04-21T08:12:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://workspace.onionmixer.net/wiki/index.php?title=Gentoo_emacs_smalltalkmode&amp;diff=703&amp;oldid=prev</id>
		<title>Onionmixer: gentoo, emacs 에서 smalltalk-mode 사용하기 페이지 추가</title>
		<link rel="alternate" type="text/html" href="https://workspace.onionmixer.net/wiki/index.php?title=Gentoo_emacs_smalltalkmode&amp;diff=703&amp;oldid=prev"/>
		<updated>2013-07-16T14:40:13Z</updated>

		<summary type="html">&lt;p&gt;gentoo, emacs 에서 smalltalk-mode 사용하기 페이지 추가&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==gentoo, emacs 에서 smalltalk-mode 사용하기==&lt;br /&gt;
&lt;br /&gt;
===gnu smalltalk의 설치===&lt;br /&gt;
&lt;br /&gt;
emacs 에서 smalltalk mode를 사용하는데 가장 좋은 방법은 gnu-smalltalk 을 설치하는것입니다.&lt;br /&gt;
&lt;br /&gt;
다음의 USE Flag를 이용해서 gnu smalltalk 을 설치하도록 합니다.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
localhost # USE=&amp;quot;gtk readline tk emacs&amp;quot; emerge gnu-smalltalk&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
문서를 작성할때의 gnu-smalltalk 의 버전은 3.2.4 입니다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===emacs를 위한 smalltalk-mode 의 세팅===&lt;br /&gt;
&lt;br /&gt;
gnu smalltalk 에서 emacs를 위해 어떤 파일들이 설치되었는지를 먼저 알아보아야 합니다.&lt;br /&gt;
&lt;br /&gt;
다음의 명령을 통해서 어떤 파일들이 설치되었는지 알아보도록 하겠습니다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
localhost # epm -ql gnu-smalltalk | grep emacs&lt;br /&gt;
/usr/share/emacs/site-lisp/site-gentoo.d/50gnu-smalltalk-gentoo.el&lt;br /&gt;
/usr/share/emacs/site-lisp/gnu-smalltalk/smalltalk-mode.elc&lt;br /&gt;
/usr/share/emacs/site-lisp/gnu-smalltalk/smalltalk-mode-init.elc&lt;br /&gt;
/usr/share/emacs/site-lisp/gnu-smalltalk/gst-mode.elc&lt;br /&gt;
/usr/share/emacs/site-lisp/gnu-smalltalk/smalltalk-mode.el&lt;br /&gt;
/usr/share/emacs/site-lisp/gnu-smalltalk/smalltalk-mode-init.el&lt;br /&gt;
/usr/share/emacs/site-lisp/gnu-smalltalk/gst-mode.el&lt;br /&gt;
/usr/share/emacs/site-lisp/smalltalk-mode.elc&lt;br /&gt;
/usr/share/emacs/site-lisp/gst-mode.elc&lt;br /&gt;
/usr/share/emacs/site-lisp/smalltalk-mode.el&lt;br /&gt;
/usr/share/emacs/site-lisp/gst-mode.el&lt;br /&gt;
/usr/share/emacs/site-lisp/site-start.d/smalltalk-mode-init.elc&lt;br /&gt;
/usr/share/emacs/site-lisp/site-start.d/smalltalk-mode-init.el&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
다른파일들은 딱히 신경쓸 필요가 없습니다만.... 일단 site-lisp 과 site-lisp/gnu-smalltalk 안에 같은 파일이 있다는것에 주의할 필요가 있습니다. 이것때문에 emacs 에서 나중에 경고를 확인할 수 있는거죠.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
일단 아래의 4개 파일을 지워야 합니다.&lt;br /&gt;
&lt;br /&gt;
* /usr/share/emacs/site-lisp/smalltalk-mode.elc&lt;br /&gt;
* /usr/share/emacs/site-lisp/gst-mode.elc&lt;br /&gt;
* /usr/share/emacs/site-lisp/smalltalk-mode.el&lt;br /&gt;
* /usr/share/emacs/site-lisp/gst-mode.el&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
그리고 &amp;#039;&amp;#039;&amp;#039;/usr/share/emacs/site-lisp/gnu-smalltalk/&amp;#039;&amp;#039;&amp;#039; 디렉토리로 이동해서 &amp;#039;&amp;#039;&amp;#039;smalltalk-mode.el&amp;#039;&amp;#039;&amp;#039; 파일에 아래의 patch 내용을 적용하도록 합니다.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
--- smalltalk-mode.el.orig      2013-07-06 12:33:18.111318525 +0900&lt;br /&gt;
+++ smalltalk-mode.el   2013-07-16 21:45:33.272194343 +0900&lt;br /&gt;
@@ -1049,9 +1049,10 @@&lt;br /&gt;
                     (throw &amp;#039;archive-mode (cdr mode-assoc))))))&lt;br /&gt;
       auto-mode-alist)&lt;br /&gt;
&lt;br /&gt;
-(push &amp;quot;\\.star\\&amp;#039;&amp;quot; inhibit-first-line-modes-regexps)&lt;br /&gt;
+(when (boundp &amp;#039;inhibit-first-line-modes-regexps)&lt;br /&gt;
+  (push &amp;quot;\\.star\\&amp;#039;&amp;quot; inhibit-first-line-modes-regexps))&lt;br /&gt;
&lt;br /&gt;
 (push &amp;#039;(&amp;quot;\\.st\\&amp;#039;&amp;quot; . smalltalk-mode) auto-mode-alist)&lt;br /&gt;
&lt;br /&gt;
 (provide &amp;#039;smalltalk-mode)&lt;br /&gt;
-(autoload &amp;#039;gst &amp;quot;/usr/local/share/emacs/site-lisp/gst-mode.elc&amp;quot; &amp;quot;&amp;quot; t)&lt;br /&gt;
+(autoload &amp;#039;gst &amp;quot;/usr/share/emacs/site-lisp/gnu-smalltalk/gst-mode.elc&amp;quot; &amp;quot;&amp;quot; t)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
이제 patch 의 내용을 적용했다면 emacs 에서 smalltalk-mode.el 파일을 읽어들인다음 &amp;#039;&amp;#039;&amp;#039;M-x byte-compile-file&amp;#039;&amp;#039;&amp;#039; 명령을 통해서 해당파일을 elc로 recompile을 해줘야합니다. 이제는 emacs의 세팅을 조절할때입니다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===emacs의 smalltalk-mode 세팅 및 사용===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;~/.emacs&amp;#039;&amp;#039;&amp;#039; 파일에 아래의 내용을 넣어준다음 emacs 를 재시작합니다&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;smalltalk&amp;quot;&amp;gt;&lt;br /&gt;
(require &amp;#039;smalltalk-mode)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
이후 &amp;#039;&amp;#039;&amp;#039;M-x smalltalk-mode&amp;#039;&amp;#039;&amp;#039; 를 이용해서 아래쪽에 smalltalk 이라는 문자가 표시되면 smalltalk-mode 의 사용은 성공입니다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
다만 문법강조외에는.. 크게 기대하지 않는게 좋은거같기는 합니다....&lt;/div&gt;</summary>
		<author><name>Onionmixer</name></author>
	</entry>
</feed>