<?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/"
	>

<channel>
	<title>Float Solutions &#187; Emacs</title>
	<atom:link href="http://floatsolutions.com/blog/category/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://floatsolutions.com</link>
	<description></description>
	<lastBuildDate>Mon, 10 Sep 2012 22:09:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Bloging from Emacs!</title>
		<link>http://floatsolutions.com/blog/2012/05/bloging-from-emacs/</link>
		<comments>http://floatsolutions.com/blog/2012/05/bloging-from-emacs/#comments</comments>
		<pubDate>Wed, 09 May 2012 08:51:00 +0000</pubDate>
		<dc:creator>Aidan McQuay</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://floatsolutions.com/?p=288</guid>
		<description><![CDATA[wooho it works!]]></description>
			<content:encoded><![CDATA[<p>wooho it works! </p>
]]></content:encoded>
			<wfw:commentRss>http://floatsolutions.com/blog/2012/05/bloging-from-emacs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Displaying Inline Images in Emacs org-mode</title>
		<link>http://floatsolutions.com/blog/2010/10/displaying-inline-images-in-emacs-org-mode/</link>
		<comments>http://floatsolutions.com/blog/2010/10/displaying-inline-images-in-emacs-org-mode/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 08:17:36 +0000</pubDate>
		<dc:creator>Aidan McQuay</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://floatsolutions.com/?p=269</guid>
		<description><![CDATA[I had to patch together some various emacs from around the web to get inline images with iimage.el working in emacs exactly the way I wanted. Here&#8217;s some info: Load and displays images in org files on initial load Provides a function that allows you to toggle images on and off Specify images you would [...]]]></description>
			<content:encoded><![CDATA[<p>I had to patch together some various emacs from around the web to get inline images with iimage.el working in emacs exactly the way I wanted.   Here&#8217;s some info:</p>
<ul>
<li>Load and displays images in org files on initial load</li>
<li>Provides a function that allows you to toggle images on and off</li>
<li>Specify images you would like to load with the [[file://file.png]] org link type</li>
</ul>
<p><a href="http://floatsolutions.com/wp-content/uploads/2010/10/inline_image_screenshot.png"><img src="http://floatsolutions.com/wp-content/uploads/2010/10/inline_image_screenshot.png" alt="" title="inline_image_screenshot" width="501" height="361" class="aligncenter size-full wp-image-277" /></a></p>
<p>Here&#8217;s the code, you can add it anywhere in your <em>.emacs</em><br />
<code>;; -- Display images in org mode<br />
;; enable image mode first<br />
(iimage-mode)<br />
;; add the org file link format to the iimage mode regex<br />
(add-to-list 'iimage-mode-image-regex-alist<br />
  (cons (concat "\\[\\[file:\\(~?" iimage-mode-image-filename-regex "\\)\\]")  1))<br />
;;  add a hook so we can display images on load<br />
(add-hook 'org-mode-hook '(lambda () (org-turn-on-iimage-in-org)))<br />
;; function to setup images for display on load<br />
(defun org-turn-on-iimage-in-org ()<br />
  "display images in your org file"<br />
  (interactive)<br />
  (turn-on-iimage-mode)<br />
  (set-face-underline-p 'org-link nil))<br />
;; function to toggle images in a org bugger<br />
(defun org-toggle-iimage-in-org ()<br />
  "display images in your org file"<br />
  (interactive)<br />
  (if (face-underline-p 'org-link)<br />
      (set-face-underline-p 'org-link nil)<br />
      (set-face-underline-p 'org-link t))<br />
  (call-interactively 'iimage-mode))<br />
</code> </p>
<p>I have this function bound to C-l with a call like this:<br />
<code><br />
(define-key org-mode-map (kbd "C-S-a") 'org-archive-subtree)</code></p>
]]></content:encoded>
			<wfw:commentRss>http://floatsolutions.com/blog/2010/10/displaying-inline-images-in-emacs-org-mode/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Tramp and NTEmacs</title>
		<link>http://floatsolutions.com/blog/2010/10/tramp-and-ntemacs/</link>
		<comments>http://floatsolutions.com/blog/2010/10/tramp-and-ntemacs/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 03:16:50 +0000</pubDate>
		<dc:creator>Aidan McQuay</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://floatsolutions.com/?p=255</guid>
		<description><![CDATA[After a few failed attempted at getting tramp working in NTEmacs the solution ended up being pretty simple. 1) Download Plink.exe. 2) Place Plink.exe somewhere in your windows PATH, doesn&#8217;t matter where but you have to be able to run in from a command line anywhere on your system. 3) Add the following line somewhere [...]]]></description>
			<content:encoded><![CDATA[<p>After a few failed attempted at getting tramp working in NTEmacs the solution ended up being pretty simple.</p>
<p><strong>1)</strong> Download <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Plink.exe</a>.</p>
<p><strong>2)</strong> Place Plink.exe somewhere in your windows PATH, doesn&#8217;t matter where but you have to be able to run in from a command line anywhere on your system.</p>
<p><strong>3)</strong> Add the following line somewhere in your <em>.emacs</em>.<br />
<code>(setq tramp-default-method "plink")<br />
</code></p>
<p>From there you should be able to use <em>find-file</em> (C-x C-f) and a command like the following to bring up a remote file:<br />
<code>/user@host.com:/path/to/file.ext<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://floatsolutions.com/blog/2010/10/tramp-and-ntemacs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Remapping C-x on Emacs</title>
		<link>http://floatsolutions.com/blog/2010/10/remapping-c-x-on-emacs/</link>
		<comments>http://floatsolutions.com/blog/2010/10/remapping-c-x-on-emacs/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 00:02:29 +0000</pubDate>
		<dc:creator>Aidan McQuay</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://floatsolutions.com/?p=252</guid>
		<description><![CDATA[I&#8217;ve recently decided to ditch CUA mode. It steals some shortcuts that I would like to override. One thing CUA mode did really well is allow the use of C-x for CUT and for the C-x Command Prefix. I haven&#8217;t quite figured out how to replicate this exact behavior, even finding info on how to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently decided to ditch CUA mode.  It steals some shortcuts that I would like to override.  One thing CUA mode did really well is allow the use of C-x for CUT and for the C-x Command Prefix.  I haven&#8217;t quite figured out how to replicate this exact behavior, even finding info on how to remap C-x reliably was difficult. </p>
<p>The problem here is that if you remap C-x it breaks commands further down the line regardless.  Instead of remapping the keys in this case you want to use <em>keyboard-translate</em>:<br />
<code>;; -- cut C-x, C-x is now C-j<br />
(keyboard-translate ?\C-j ?\C-x)<br />
(keyboard-translate ?\C-x ?\C-w)</code></p>
<p>This remaps Swaps C-x for C-j and puts <i>kill-region</i> in for for C-x.</p>
]]></content:encoded>
			<wfw:commentRss>http://floatsolutions.com/blog/2010/10/remapping-c-x-on-emacs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Random quote reminds me of the `cookie&#8217; function which uses the fortune file format.</title>
		<link>http://floatsolutions.com/blog/2010/06/random-quote-reminds-me-of-the-cookie-function-which-uses-the-fortune-file-format/</link>
		<comments>http://floatsolutions.com/blog/2010/06/random-quote-reminds-me-of-the-cookie-function-which-uses-the-fortune-file-format/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 21:41:59 +0000</pubDate>
		<dc:creator>Aidan McQuay</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://floatsolutions.com/blog/2010/06/random-quote-reminds-me-of-the-cookie-function-which-uses-the-fortune-file-format/</guid>
		<description><![CDATA[Wonderful comment from the emacswiki changelog: http://www.emacswiki.org/emacs/RecentChanges]]></description>
			<content:encoded><![CDATA[<p>Wonderful comment from the <a href="http://www.emacswiki.org">emacswiki</a> changelog:</p>
<p><a href="http://www.emacswiki.org/emacs/RecentChanges">http://www.emacswiki.org/emacs/RecentChanges</a></p>
]]></content:encoded>
			<wfw:commentRss>http://floatsolutions.com/blog/2010/06/random-quote-reminds-me-of-the-cookie-function-which-uses-the-fortune-file-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TortoiseGit Interface for EMACS</title>
		<link>http://floatsolutions.com/blog/2010/05/tortoisegit-interface-for-emacs/</link>
		<comments>http://floatsolutions.com/blog/2010/05/tortoisegit-interface-for-emacs/#comments</comments>
		<pubDate>Tue, 25 May 2010 15:46:35 +0000</pubDate>
		<dc:creator>Aidan McQuay</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://floatsolutions.com/?p=239</guid>
		<description><![CDATA[I&#8217;ve been releasing stuff to Github these days, basecamp2text, drupal-irssi, simple-volume-osd, etc. So I&#8217;ve been using TortoiseGit as a GUI to make git a little easier to swallow. On the SVN side of things I&#8217;ve been using a library I found over on the EmacsWIKI to interface SVN and emacs. Since I&#8217;m using Git so [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been releasing stuff to Github these days, <a href="http://github.com/openist/basecamp2text">basecamp2text</a>, <a href="http://github.com/openist/drupal-irssi">drupal-irssi</a>, <a href="http://github.com/openist/simple-volume-osd">simple-volume-osd</a>, etc.  So I&#8217;ve been using TortoiseGit as a GUI to make git a little easier to swallow. </p>
<p>On the SVN side of things I&#8217;ve been using a library I found over on the EmacsWIKI to interface SVN and emacs.  Since I&#8217;m using Git so much these days I thought I&#8217;d adapt that library to work with TortioseGit.  </p>
<p>Right now it only supports log, diff, blame, commit, revert and help.  It&#8217;s been working great for my uses so far.  </p>
<h2>tortoise-git.el</h2>
<p><code>(defun tortoise-git-command (command filename)<br />
  (start-process "tortoise-git" "foo"<br />
   "c:/Progra~1/TortoiseGit/bin/TortoiseProc" (concat "/command:" command)<br />
	   (concat "/path:" (replace-regexp-in-string "Program Files"<br />
           (regexp-quote "Progra~1") (expand-file-name filename))<br />
            "")))</p>
<p>(defun tortoise-git-log ()<br />
  (interactive)<br />
  (tortoise-git-log-select (buffer-file-name)))</p>
<p>(defun tortoise-git-log-select (filename &#038;optional wildcards)<br />
  (interactive (find-file-read-args "Find file: " t))<br />
  (tortoise-git-command "log" filename))</p>
<p>(defun tortoise-git-diff ()<br />
  (interactive)<br />
  (tortoise-git-command "diff" (buffer-file-name)))</p>
<p>(defun tortoise-git-blame ()<br />
 (interactive)<br />
 (tortoise-git-command "blame" (buffer-file-name)))</p>
<p>(defun tortoise-git-commit ()<br />
  (interactive)<br />
  (tortoise-git-command "commit" (buffer-file-name)))</p>
<p>(defun tortoise-git-commit-select (filename &#038;optional wildcards)<br />
(interactive (find-file-read-args "Find file: " t))<br />
  (tortoise-git-command "commit" (buffer-file-name)))</p>
<p>(defun tortoise-git-revert ()<br />
  (interactive)<br />
  (tortoise-git-revert-select (buffer-file-name)))</p>
<p>(defun tortoise-git-revert-select (filename &#038;optional wildcards)<br />
  (interactive (find-file-read-args "Find file: " t))<br />
  (tortoise-git-command "revert" filename))</p>
<p>(defun tortoise-git-help ()<br />
 (interactive)<br />
 (start-process-shell-command "tortoise-git" nil<br />
  (concat "/cygdrive/c/Progra~1/TortoiseGit/bin/TortoiseProc /command:help")))</p>
<p>; add key bind<br />
(global-set-key "\C-xgl" 'tortoise-git-log)<br />
(global-set-key "\C-xgL" 'tortoise-git-log-select)<br />
(global-set-key "\C-xg=" 'tortoise-git-diff)<br />
(global-set-key "\C-xgb" 'tortoise-git-blame)<br />
(global-set-key "\C-xgc" 'tortoise-git-commit)<br />
(global-set-key "\C-xgC" 'tortoise-git-commit-select)<br />
(global-set-key "\C-xgs" 'tortoise-git-repostatus)<br />
(global-set-key "\C-xgS" 'tortoise-git-repostatus-select)<br />
(global-set-key "\C-xgr" 'tortoise-git-revert)<br />
(global-set-key "\C-xgR" 'tortoise-git-revert-select)<br />
(global-set-key "\C-xgh" 'tortoise-git-help)</p>
<p>(provide 'tortoise-git)<br />
</code></p>
<p>Watch the github repository for more features in the future:</p>
<p><a href="http://github.com/openist/tortoise-git-emacs">http://github.com/openist/tortoise-git-emacs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://floatsolutions.com/blog/2010/05/tortoisegit-interface-for-emacs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Firefox / Textmate Like Search in EMACS</title>
		<link>http://floatsolutions.com/blog/2010/05/firefox-textmate-like-search-in-emacs/</link>
		<comments>http://floatsolutions.com/blog/2010/05/firefox-textmate-like-search-in-emacs/#comments</comments>
		<pubDate>Fri, 14 May 2010 17:32:50 +0000</pubDate>
		<dc:creator>Aidan McQuay</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://floatsolutions.com/?p=201</guid>
		<description><![CDATA[I&#8217;m in the process of switching text editors to using EMACS full time. I&#8217;ve got it very close to where I want it at this point but has been quite the journey. One of the things I found the most frustrating was the search functionality, I wanted a search that functioned like firefox&#8217;s. It&#8217;s second [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m in the process of switching text editors to using EMACS full time.  I&#8217;ve got it very close to where I want it at this point but has been quite the journey.</p>
<p>One of the things I found the most frustrating was the search functionality, I wanted a search that functioned like firefox&#8217;s.  It&#8217;s second nature to me to copy something hit C-f and C-v in succession to search for it.  In EMACS you have to C-s C-y.  Here&#8217;s a little something I cooked up to get more windows esque functionality with isearch.<br />
<code>(defun windows-isearch-hook ()<br />
  (define-key isearch-mode-map (kbd "C-f") 'isearch-repeat-forward)<br />
  (define-key isearch-mode-map (kbd "RET") 'isearch-repeat-forward)<br />
  (define-key isearch-mode-map (kbd "<escape>") 'isearch-exit)<br />
  (define-key isearch-mode-map (kbd "C-S-f") 'isearch-repeat-backward)<br />
  (define-key isearch-mode-map (kbd "C-v") 'isearch-yank-kill)<br />
  (define-key isearch-mode-map (kbd "<up>") 'isearch-ring-retreat)<br />
  (define-key isearch-mode-map (kbd "<down>") 'isearch-ring-advance))<br />
(add-hook 'isearch-mode-hook 'windows-isearch-hook)</code></p>
<p>Additionally if you want to map the C-f key to isearch you&#8217;ll have to add this to an appropriate mode hook:<br />
<code>(global-set-key (kbd "C-f") 'isearch-forward)<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://floatsolutions.com/blog/2010/05/firefox-textmate-like-search-in-emacs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Install a Color Theme in EMACS on Windows</title>
		<link>http://floatsolutions.com/blog/2010/05/how-to-install-a-color-theme-in-emacs-on-windows/</link>
		<comments>http://floatsolutions.com/blog/2010/05/how-to-install-a-color-theme-in-emacs-on-windows/#comments</comments>
		<pubDate>Mon, 10 May 2010 13:16:39 +0000</pubDate>
		<dc:creator>Aidan McQuay</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://floatsolutions.com/?p=191</guid>
		<description><![CDATA[There&#8217;s a bunch of tutorial on how to work with EMACS on windows, however I found a lot of them quite confusing and they didn&#8217;t really focus on the basics of how to EMACS up and running on windows with a custom color theme. So here&#8217;s how I did it from scratch. 1) Download NTEMACS [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a bunch of tutorial on how to work with EMACS on windows, however I found a lot of them quite confusing and they didn&#8217;t really focus on the basics of how to EMACS up and running on windows with a custom color theme.  So here&#8217;s how I did it from scratch.</p>
<h3>1) Download NTEMACS + color-theme</h3>
<p>There are some various distributions of EMACS for windows but for the purpose of this we will be using NTEMACS, a version of EMACS that uses the native windows GUI.  Grab it here:</p>
<p><a href="http://ntemacs.sourceforge.net/">http://ntemacs.sourceforge.net/</a></p>
<p>EMACS does not support custom color-themes by default so we will have to download a custom plugin to use themes.  Grab this plugin here:</p>
<p><a href="http://download.gna.org/color-theme/">http://download.gna.org/color-theme/</a></p>
<p>Extract your EMACS folder to c:\emacs or something similar.</p>
<h3>2) Create your .emacs file and install the plugin</h3>
<p>On windows your EMACS home directory is going to be your &#8220;Application Data&#8221; folder in your &#8220;Documents and Settings&#8221; folder. eg:<br />
<code> C:\Documents and Settings\USERNAME\Application Data<br />
</code></p>
<p>In this folder create a blank text file called &#8220;.emacs&#8221;.</p>
<p>Now we&#8217;re going to have to choose a folder where we will install our EMACS plugins this should be within the EMACS home directory. In &#8220;C:\Documents and Settings\USERNAME\Application Data&#8221; create a folder called: &#8220;.emacs.d\includes&#8221; and extact color-theme to that directory.</p>
<h3>3) Load the color-theme plugin and select a theme</h3>
<p>Now bring up .emacs file in your favorite editor again.  We&#8217;re going to load up the plugin and select a theme.  You do so by adding a include call so EMACS knows about the plugin then you can call plugin functions to load up the theme.  In your .emacs file place something like:<br />
<code> (add-to-list 'load-path "~/.emacs.d/includes/color-theme-6.6.0")<br />
 (require 'color-theme)<br />
 (setq color-theme-is-global t)<br />
 (color-theme-initialize)<br />
 ;; A nice dark color theme<br />
 (color-theme-deep-blue)</code></p>
<p>Now you can start emacs by calling c:\emacs\bin\runemacs.exe and you should see your wonderful new theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://floatsolutions.com/blog/2010/05/how-to-install-a-color-theme-in-emacs-on-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<style type="text/css">#sp, #sp a {font-size: 9px;color: #eeeeee;border-bottom: none;clear: both;}</style><div id='sp' style='text-align:right;'></div>
