<?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>CallToPower &#187; emacs</title>
	<atom:link href="http://calltopower.wordpress.com/tag/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://calltopower.wordpress.com</link>
	<description>Programming, Software and more ...</description>
	<lastBuildDate>Mon, 04 Feb 2013 15:54:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='calltopower.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>CallToPower &#187; emacs</title>
		<link>http://calltopower.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://calltopower.wordpress.com/osd.xml" title="CallToPower" />
	<atom:link rel='hub' href='http://calltopower.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Lisp: Emacs Autocomplete</title>
		<link>http://calltopower.wordpress.com/2010/12/29/lisp-emacs-autocomplete/</link>
		<comments>http://calltopower.wordpress.com/2010/12/29/lisp-emacs-autocomplete/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 16:15:31 +0000</pubDate>
		<dc:creator>CallToPower</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[LISP]]></category>

		<guid isPermaLink="false">http://calltopower.wordpress.com/?p=1406</guid>
		<description><![CDATA[Today I hacked some lisp in emacs because I got two new books (Let over Lambda &#38; Land of Lisp). After a while when the function-definitions became more frequent I missed a language-specific autocomplete (and didn&#8217;t only want to use the built-in autocomplete that completes words you wrote earlier) and after some research I found [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=calltopower.wordpress.com&#038;blog=3325606&#038;post=1406&#038;subd=calltopower&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Today I hacked some lisp in emacs because I got two new books (<a href="http://letoverlambda.com/" target="_blank">Let over Lambda</a> &amp; <a href="http://landoflisp.com/" target="_blank">Land of Lisp</a>).<br />
After a while when the function-definitions became more frequent I missed a language-specific autocomplete (and didn&#8217;t only want to use the built-in autocomplete that completes words you wrote earlier) and after some research I found the solution: <a href="http://www.emacswiki.org/emacs/AutoComplete" target="_blank">Emacs Autocomplete</a>. It integrates different language-dictionaries and inserts new words on the fly (with the right settings).</p>
<p>After installing the autocomplete into <em>.emacs.d</em> I inserted the following lines into my <em>.emacs</em>-file to enable it:</p>
<pre>
;; add .emacs.d to load path
(add-to-list 'load-path "~/.emacs.d")

;; enable autocomplete
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")
(ac-config-default)
(global-auto-complete-mode t)
(auto-complete-mode t)
</pre>
<p>To get a lisp-specific autocomplete you&#8217;ve got to include <a href="https://github.com/purcell/ac-slime" target="_blank">ac-slime</a> (found at <a href="https://github.com" target="_blank">github</a>): put it into your <em>.emacs.d-</em>folder and include it in your <em>.emacs</em>-file via</p>
<pre>
;; add lisp autocomplete-support
(require 'ac-slime)
(add-hook 'slime-mode-hook 'set-up-slime-ac)
</pre>
<p>and to switch on autocomplete globally you have to apply a &#8220;dirty fix&#8221;:</p>
<pre>
;; dirty fix for having AC everywhere
(define-globalized-minor-mode real-global-auto-complete-mode
  auto-complete-mode (lambda ()
                       (if (not (minibufferp (current-buffer)))
                         (auto-complete-mode 1))))
(real-global-auto-complete-mode t)
</pre>
<p>Now only one thing is missing: the mentioned inserting of new words on the fly:</p>
<pre>
;; create and add new words to the dictionary on the fly
(when (require 'auto-complete-config nil 'noerror)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")
  (setq ac-comphist-file  "~/.emacs.d/ac-comphist.dat")
  (ac-config-default))
</pre>
<br />Filed under: <a href='http://calltopower.wordpress.com/category/programming/'>Programming</a> Tagged: <a href='http://calltopower.wordpress.com/tag/autocomplete/'>autocomplete</a>, <a href='http://calltopower.wordpress.com/tag/emacs/'>emacs</a>, <a href='http://calltopower.wordpress.com/tag/language/'>language</a>, <a href='http://calltopower.wordpress.com/tag/languages/'>Languages</a>, <a href='http://calltopower.wordpress.com/tag/lisp/'>LISP</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/calltopower.wordpress.com/1406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/calltopower.wordpress.com/1406/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=calltopower.wordpress.com&#038;blog=3325606&#038;post=1406&#038;subd=calltopower&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://calltopower.wordpress.com/2010/12/29/lisp-emacs-autocomplete/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/965ce76e96f5d46fb3742d29b5331fc5?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">CallToPower</media:title>
		</media:content>
	</item>
		<item>
		<title>Emacs for Mac OS X</title>
		<link>http://calltopower.wordpress.com/2010/10/30/emacs-for-macosx/</link>
		<comments>http://calltopower.wordpress.com/2010/10/30/emacs-for-macosx/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 00:20:09 +0000</pubDate>
		<dc:creator>CallToPower</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[adjustments]]></category>
		<category><![CDATA[alt]]></category>
		<category><![CDATA[aquamacs]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[preferences]]></category>
		<category><![CDATA[Solution]]></category>

		<guid isPermaLink="false">http://calltopower.wordpress.com/?p=1387</guid>
		<description><![CDATA[When switching from aquamacs to emacs you have to make some adjustments to use it properly under Mac OS X. One of the adjustments is that you could not simply type in &#8220;alt-shift-7&#8221; to get the normal backslash &#8220;\&#8221;. The solution: Go to &#8220;Emacs&#8221; &#8211; &#8220;Preferences&#8221; &#8211; &#8220;Environment&#8221; &#8211; &#8220;Ns : GNUstep/Mac OS X specific [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=calltopower.wordpress.com&#038;blog=3325606&#038;post=1387&#038;subd=calltopower&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>When switching from <a href="http://aquamacs.org/" target="_blank">aquamacs</a> to <a href="http://emacsformacosx.com/" target="_blank">emacs</a> you have to make some adjustments to use it properly under Mac OS X.<br />
One of the adjustments is that you could not simply type in &#8220;<em>alt-shift-7</em>&#8221; to get the normal backslash &#8220;\&#8221;.<br />
The solution:<br />
Go to &#8220;<em>Emacs</em>&#8221; &#8211; &#8220;<em>Preferences</em>&#8221; &#8211; &#8220;<em>Environment</em>&#8221; &#8211; &#8220;<em>Ns : GNUstep/Mac OS X specific features</em>&#8221; and set</p>
<ul>
<li>the &#8220;<em>Ns Command Modifier</em>&#8221; -&gt; &#8220;<em>meta</em>&#8221; and</li>
<li>the &#8220;<em>Ns Alternate Modifier</em>&#8221; -&gt; &#8220;<em>No modifier</em>&#8220;.</li>
</ul>
<p>Now you can use your <em>alt</em> and <em>meta</em>-keys as usual.</p>
<p>Second I did not remember immediately how to set my previous colors and styles (e.g. the background color or the mouse color) so I will sum up my solution:</p>
<ul>
<li>open your &#8220;<em>~/.emacs</em>&#8220;</li>
<li>type in (and replace my colors with your own)</li>
</ul>
<pre>(setq default-frame-alist
    (append default-frame-alist
        '((foreground-color . "LawnGreen")
          (background-color . "Black")
          (cursor-color . "LawnGreen"))))</pre>
<p><font size="1">And of course <a href="http://xkcd.com/378/" target="_blank">Emacs is much better than vim</a></font>!</p>
<br />Filed under: <a href='http://calltopower.wordpress.com/category/programming/'>Programming</a>, <a href='http://calltopower.wordpress.com/category/software/'>Software</a> Tagged: <a href='http://calltopower.wordpress.com/tag/adjustments/'>adjustments</a>, <a href='http://calltopower.wordpress.com/tag/alt/'>alt</a>, <a href='http://calltopower.wordpress.com/tag/aquamacs/'>aquamacs</a>, <a href='http://calltopower.wordpress.com/tag/color/'>color</a>, <a href='http://calltopower.wordpress.com/tag/emacs/'>emacs</a>, <a href='http://calltopower.wordpress.com/tag/key/'>key</a>, <a href='http://calltopower.wordpress.com/tag/mac/'>Mac</a>, <a href='http://calltopower.wordpress.com/tag/mac-os-x/'>Mac OS X</a>, <a href='http://calltopower.wordpress.com/tag/meta/'>meta</a>, <a href='http://calltopower.wordpress.com/tag/preferences/'>preferences</a>, <a href='http://calltopower.wordpress.com/tag/solution/'>Solution</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/calltopower.wordpress.com/1387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/calltopower.wordpress.com/1387/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=calltopower.wordpress.com&#038;blog=3325606&#038;post=1387&#038;subd=calltopower&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://calltopower.wordpress.com/2010/10/30/emacs-for-macosx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/965ce76e96f5d46fb3742d29b5331fc5?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">CallToPower</media:title>
		</media:content>
	</item>
	</channel>
</rss>
