<?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>Blinded By Tech &#187; Mac</title>
	<atom:link href="http://www.blindedbytech.com/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blindedbytech.com</link>
	<description>Random notes from the tech world.</description>
	<lastBuildDate>Wed, 09 Dec 2009 15:47:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Firefox, Emacs, and Mac OS X</title>
		<link>http://www.blindedbytech.com/2009/12/09/firefox-emacs-and-mac-os-x/</link>
		<comments>http://www.blindedbytech.com/2009/12/09/firefox-emacs-and-mac-os-x/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 15:47:12 +0000</pubDate>
		<dc:creator>Techie</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.blindedbytech.com/?p=105</guid>
		<description><![CDATA[On Linux and Windows, I use an extension called It&#8217;s All
Text to add an &#8220;edit&#8221; button to text areas. Hitting this will
launch the contents of the text area in my editor of choice &#8212; emacs.
(You can pick any editor you like.)
However, on Mac, it&#8217;s not really straightforward, due to the way they
handle applications. The comments [...]]]></description>
			<content:encoded><![CDATA[<p>On Linux and Windows, I use an extension called <a href="https://addons.mozilla.org/en-US/firefox/addon/4125">It&#8217;s All<br />
Text</a> to add an &#8220;edit&#8221; button to text areas. Hitting this will<br />
launch the contents of the text area in my editor of choice &#8212; emacs.<br />
(You can pick any editor you like.)</p>
<p>However, on Mac, it&#8217;s not really straightforward, due to the way they<br />
handle applications. The comments in <a href="http://www.oreillynet.com/mac/blog/2007/02/firefox_plugin_its_all_text.html">this<br />
post</a> pointed me in the right direction for how to set this up.</p>
<ul>
<li>Install <a href="http://www.mozilla.com/">Firefox</a>.
  </li>
<li>Install <a href="http://aquamacs.org/">Aquamacs</a>.
  </li>
<li>Install <a href="https://addons.mozilla.org/en-US/firefox/addon/4125">It&#8217;s All Text Firefox Extension</a>.
  </li>
<li>In Firefox, go to Tools -&gt; It&#8217;s All Text &gt; Preferences, and set Editor to <code>/Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs</code>
</li>
</ul>
<p>The default proportional font in aquamacs bugs me, so I fix that by<br />
launching it with a textarea and going to Options -&gt; Appearance<br />
-&gt; Font For Text-Mode and setting it to Andale Mono. I also turn<br />
off Soft Word Wrap and Auto Word Wrap In Text Modes under options,<br />
because I&#8217;m used to emacs&#8217;s old unfriendly behavior.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blindedbytech.com/2009/12/09/firefox-emacs-and-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customizing Emacs</title>
		<link>http://www.blindedbytech.com/2007/06/11/customizing-emacs/</link>
		<comments>http://www.blindedbytech.com/2007/06/11/customizing-emacs/#comments</comments>
		<pubDate>Mon, 11 Jun 2007 16:24:14 +0000</pubDate>
		<dc:creator>Techie</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.blindedbytech.com/2007/06/11/customizing-emacs/</guid>
		<description><![CDATA[What&#8217;s your favorite editor?  Oh, I&#8217;m sorry, the correct answer should be emacs.  Actually, you should use whatever editor you feel most comfortable with; I&#8217;ve just found the ability to record keyboard macros in emacs to be indispensable, all the more so since I&#8217;ve been using it for almost ten years.  Be [...]]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s your favorite editor?  Oh, I&#8217;m sorry, the correct answer should be emacs.  Actually, you should use whatever editor you feel most comfortable with; I&#8217;ve just found the ability to record keyboard macros in emacs to be indispensable, all the more so since I&#8217;ve been using it for almost ten years.  Be I writing on Linux, Windows, or Mac OS X, my preferred text editor is still emacs.</p>
<p>However, once I get on a new machine, I need to customize .emacs, which is the startup configuration file.  There are a series of changes that I find quite useful, and often find myself looking up again and again.  Without further ado, here are the customizations:</p>
<pre>
;; Emacs usually has a slash screen on startup.  Let's get rid of that and start with a blank buffer.
(setq inhibit-startup-message t)

;; I like to see what is selected in the buffer.  This turns on visual feedback on selections.
(setq transient-mark-mode t)

;; Activate font-lock mode (syntax coloring).
(global-font-lock-mode t)

;; Line numbers are good.  Getting column numbering as well is better.
(column-number-mode t)

;; Scrollbars go on the right.  Who puts these on the left?
(set-scroll-bar-mode 'right)

;; Enable mouse wheel scrolling.
(if (load "mwheel" t)
    (mwheel-install))

;; Always end files in anewline.
(setq require-final-newline 't)
;; ...or ask to end in newline if needed
; (setq require-final-newline 'query)

;; Match parentheses.  Useful to be sure you've closed everything up.
(show-paren-mode t)

; Display settings
; default size and color options for all frames.
(setq default-frame-alist
 '(
; frame width and height
    (width             . 80)
    (height            . 40)
  ;;;; foreground, background, and cursor colors
  ;;;    (foreground-color  . "grey8")
  ;;;    (background-color  . "grey92")
  ;;;    (cursor-color      . "red3")
  )
)
; places top left corner of initial frame at location (25,25) on screen
(setq initial-frame-alist
 '(
    (top               . 25)
    (left              . 25)
  )
)

; Temporary files cluttering up the space are annoying.  Here's how we
; can deal with them -- create a directory in your home directory, and
; save to there instead!  No more random ~ files.
(defvar user-temporary-file-directory
  "~/.emacs-autosaves/")
(make-directory user-temporary-file-directory t)
(setq backup-by-copying t)
(setq backup-directory-alist
      `(("." . ,user-temporary-file-directory)
        (tramp-file-name-regexp nil)))
(setq auto-save-list-file-prefix
      (concat user-temporary-file-directory ".auto-saves-"))
(setq auto-save-file-name-transforms
      `((".*" ,user-temporary-file-directory t)))
</pre>
<p>I additionally have some macros that aren&#8217;t generally useful.  There&#8217;s a million things to tweak in the customization, and if you&#8217;re fancy, you can even write your own hacks &#8212; better brush up on that lisp!  Here are a few more resources of interest:</p>
<ul>
<li><a href="http://www.dotfiles.com/index.php?app_id=6">dotfiles.com &#8212; emacs</a></li>
<li><a href="http://www.gnu.org/software/emacs/emacs-lisp-intro/html_node/Emacs-Initialization.html">gnu.org &#8212; Emacs Initialization</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.blindedbytech.com/2007/06/11/customizing-emacs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To: Authorize more than five computers with iTunes</title>
		<link>http://www.blindedbytech.com/2006/12/12/how-to-authorize-more-than-five-computers-with-itunes/</link>
		<comments>http://www.blindedbytech.com/2006/12/12/how-to-authorize-more-than-five-computers-with-itunes/#comments</comments>
		<pubDate>Tue, 12 Dec 2006 21:50:34 +0000</pubDate>
		<dc:creator>Techie</dc:creator>
				<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.blindedbytech.com/2006/12/12/how-to-authorize-more-than-five-computers-with-itunes/</guid>
		<description><![CDATA[ I&#8217;m not sure of the legality of this one, but Lifehacker pointed to an article about authorizing iTunes on more than five computers.  The basic idea is that the authorization for a computer is stored on your local machine.  This is a good thing, because otherwise you would need to be constantly [...]]]></description>
			<content:encoded><![CDATA[<p><img id="image38" src="http://www.blindedbytech.com/wp-content/uploads/2006/12/cd.jpg" align="left" hspace="5" vspace="5" /> I&#8217;m not sure of the legality of this one, but <a href="http://www.lifehacker.com/software/itunes/authorize-your-itunes-library-on-more-than-5-computers-220860.php">Lifehacker</a> pointed to an article about <a href="http://www.firblitz.com/2006/12/9/itude-0-1-released">authorizing iTunes on more than five computers</a>.  The basic idea is that the authorization for a computer is stored on your local machine.  This is a good thing, because otherwise you would need to be constantly connected to the Internet to play your music &#8212; not exactly ideal if you have a laptop.  What you do is copy this folder, de-authorize your computer, then restore the folder.  Voila &#8212; re-authorized, without connecting to the music store!</p>
<p>For Mac, the above link points to an Applescript that handles this for you: <a href="http://firblitz.com/assets/2006/12/9/iTude.zip">iTude.zip</a></p>
<p>LifeHacker notes that for Windows, the directory is stored in <code>C:\Documents and Settings\All Users\Application Data\Apple Computer\iTunes\SC Info</code>.  Copy this folder, de-authorize your machine, then restore it, and your music should play.</p>
<p>A caveat to this is that any music bought thereafter will <em>not</em> work, because the authorization key will change on each new song purchased.  However, if you just need a quick additional computer for your music and aren&#8217;t buying new music, then this will do the trick.  Let&#8217;s see how long before Apple patches this!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blindedbytech.com/2006/12/12/how-to-authorize-more-than-five-computers-with-itunes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
