<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - noah</title>
<link>http://snipplr.com/users/noah/tags/emacs</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 01:15:39 GMT</pubDate>
<item>
<title>(Emacs Lisp) Growl support for Aquamacs Emacs</title>
<link>http://snipplr.com/view/12219/growl-support-for-aquamacs-emacs/</link>
<description><![CDATA[ <p>This is what I had to do in order to get reliable Growl support in Aquamacs 1.7

Requires Growlnotify (included with Growl, in the extras folder).</p> ]]></description>
<pubDate>Sun, 15 Feb 2009 08:58:23 GMT</pubDate>
<guid>http://snipplr.com/view/12219/growl-support-for-aquamacs-emacs/</guid>
</item>
<item>
<title>(Emacs Lisp) Type a newline in Emacs</title>
<link>http://snipplr.com/view/3256/type-a-newline-in-emacs/</link>
<description><![CDATA[ <p>A command, not code, but a command so obscure and useful, that it merits its own entry anyway!</p> ]]></description>
<pubDate>Mon, 09 Jul 2007 13:17:23 GMT</pubDate>
<guid>http://snipplr.com/view/3256/type-a-newline-in-emacs/</guid>
</item>
<item>
<title>(Perl) Remove duplicate lines from a text file with Perl</title>
<link>http://snipplr.com/view/3124/remove-duplicate-lines-from-a-text-file-with-perl/</link>
<description><![CDATA[ <p>*[Found at Google Answers.](http://answers.google.com/answers/threadview?id=25196)*

Sometimes I get a big list of things, and some of the things occur multiple times in the same list.  To make the list easier to read, I want to *delete* the duplicate lines.
 
A good example is a list of files that have errors (maybe excerpted from an application sever's log files).  In that case you have a newline-delimited list of file paths,  and depending upon the situation, the same file path might be listed 4 or 5 times or more.  Often, it is useful to have a list of just the files that are faulty, which can be produced by deleting all the duplicate lines.  This script is for filtering just those kinds of list files.

[Of course,](http://xkcd.com/378/ "emacs has a command for that")  for **Emacs** users  [there is a much easier way to remove duplicate lines:](http://everything2.com/title/useful%2520emacs%2520lisp%2520functions "useful emacs lisp functions"), if you have `uniq` installed on your system.

`M-x sort-lines RET C-x h M-x shell-command-on-region RET uniq RET`</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:06:34 GMT</pubDate>
<guid>http://snipplr.com/view/3124/remove-duplicate-lines-from-a-text-file-with-perl/</guid>
</item>
<item>
<title>(Emacs Lisp) Make numbered backups</title>
<link>http://snipplr.com/view/2782/make-numbered-backups/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 02 Jun 2007 00:37:29 GMT</pubDate>
<guid>http://snipplr.com/view/2782/make-numbered-backups/</guid>
</item>
<item>
<title>(Emacs Lisp) Persistent.el configuration</title>
<link>http://snipplr.com/view/2781/persistentel-configuration/</link>
<description><![CDATA[ <p>Configure the Persistent.el module.  Persistent.el allows emacs to remember command histories across sessions.</p> ]]></description>
<pubDate>Sat, 02 Jun 2007 00:34:17 GMT</pubDate>
<guid>http://snipplr.com/view/2781/persistentel-configuration/</guid>
</item>
<item>
<title>(Emacs Lisp) Kill-Ring and mini-buffer history size</title>
<link>http://snipplr.com/view/2780/killring-and-minibuffer-history-size/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 02 Jun 2007 00:32:01 GMT</pubDate>
<guid>http://snipplr.com/view/2780/killring-and-minibuffer-history-size/</guid>
</item>
<item>
<title>(Emacs Lisp) Time-stamp configuration</title>
<link>http://snipplr.com/view/2779/timestamp-configuration/</link>
<description><![CDATA[ <p>Turn on time-stamp updating, set the format of the time stamp.</p> ]]></description>
<pubDate>Sat, 02 Jun 2007 00:30:33 GMT</pubDate>
<guid>http://snipplr.com/view/2779/timestamp-configuration/</guid>
</item>
<item>
<title>(Emacs Lisp) remove blank lines command</title>
<link>http://snipplr.com/view/2778/remove-blank-lines-command/</link>
<description><![CDATA[ <p>Delete doubled newlines from the current buffer.  Only works on completely empty lines, not lines that contain whitespace.</p> ]]></description>
<pubDate>Sat, 02 Jun 2007 00:26:09 GMT</pubDate>
<guid>http://snipplr.com/view/2778/remove-blank-lines-command/</guid>
</item>
<item>
<title>(Emacs Lisp) BASE tag insertion macro</title>
<link>http://snipplr.com/view/2777/base-tag-insertion-macro/</link>
<description><![CDATA[ <p>Insert a BASE HREF tag just after the head tag of an HTML document
Positions point just after the second forwardslash in "HTTP://"</p> ]]></description>
<pubDate>Sat, 02 Jun 2007 00:23:01 GMT</pubDate>
<guid>http://snipplr.com/view/2777/base-tag-insertion-macro/</guid>
</item>
<item>
<title>(Emacs Lisp) Command to search for TABLE tags</title>
<link>http://snipplr.com/view/2775/command-to-search-for-table-tags/</link>
<description><![CDATA[ <p>Search For Table Tags: find the next</p> ]]></description>
<pubDate>Fri, 01 Jun 2007 17:03:26 GMT</pubDate>
<guid>http://snipplr.com/view/2775/command-to-search-for-table-tags/</guid>
</item>
<item>
<title>(Emacs Lisp) Command to reload .emacs and save history with Persistent.el</title>
<link>http://snipplr.com/view/2774/command-to-reload-emacs-and-save-history-with-persistentel/</link>
<description><![CDATA[ <p>Reload the .emacs file with a minimum of effort, first saving histories with Persistent.  Requires the Persistent.el module.</p> ]]></description>
<pubDate>Fri, 01 Jun 2007 16:58:40 GMT</pubDate>
<guid>http://snipplr.com/view/2774/command-to-reload-emacs-and-save-history-with-persistentel/</guid>
</item>
<item>
<title>(Emacs Lisp) commands for opening .emacs and .abbrev_defs</title>
<link>http://snipplr.com/view/2773/commands-for-opening-emacs-and-abbrevdefs/</link>
<description><![CDATA[ <p>Bind opening .emacs and .abbrev_defs to commands.  Not mine but I can't remember where I found it.</p> ]]></description>
<pubDate>Fri, 01 Jun 2007 16:51:50 GMT</pubDate>
<guid>http://snipplr.com/view/2773/commands-for-opening-emacs-and-abbrevdefs/</guid>
</item>
<item>
<title>(Emacs Lisp) Emacs regular expression to match curly brackets without breaks before them</title>
<link>http://snipplr.com/view/2772/emacs-regular-expression-to-match-curly-brackets-without-breaks-before-them/</link>
<description><![CDATA[ <p>To be run from the mini-buffer.  For formatting CSS files.  Doesn't allow for whitespace :(  Use C-q C-j to insert the newline in the replacement string.</p> ]]></description>
<pubDate>Fri, 01 Jun 2007 12:44:29 GMT</pubDate>
<guid>http://snipplr.com/view/2772/emacs-regular-expression-to-match-curly-brackets-without-breaks-before-them/</guid>
</item>
</channel>
</rss>