<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Emacs on Mikey Boldt</title>
    <link>https://www.mikeyboldt.com/tag/emacs/</link>
    <description>Recent content in Emacs on Mikey Boldt</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 05 Jan 2016 09:56:00 +0000</lastBuildDate>
    <atom:link href="https://www.mikeyboldt.com/tag/emacs/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Remove a Key Binding From Emacs Mode</title>
      <link>https://www.mikeyboldt.com/2016/01/05/remove-a-key-binding-from-emacs-mode/</link>
      <pubDate>Tue, 05 Jan 2016 09:56:00 +0000</pubDate>
      <guid>https://www.mikeyboldt.com/2016/01/05/remove-a-key-binding-from-emacs-mode/</guid>
      <description>&lt;p&gt; I am experimenting with &lt;a href=&#34;https://www.gnu.org/software/global/&#34;&gt;Gnu Global&lt;/a&gt; to navigate a Java project in emacs with the &lt;a href=&#34;https://github.com/leoliu/ggtags&#34;&gt;ggtags&lt;/a&gt; package. I find it fast and slick, but I hit a bump in the road when I found that it remaps &lt;code&gt;M-&amp;lt;&lt;/code&gt; and &lt;code&gt;M-&amp;gt;&lt;/code&gt; &amp;#x2014; the default bindings to jump to the top and bottom of a buffer &amp;#x2014; when there are multiple matches for a tag. I find this intolerable. Don&amp;#8217;t whack useful key bindings. &lt;code&gt;&amp;lt;/rant&amp;gt;&lt;/code&gt; &lt;/p&gt;</description>
    </item>
    <item>
      <title>Process Management in Emacs with &lt;code&gt;proced&lt;/code&gt;</title>
      <link>https://www.mikeyboldt.com/2012/07/23/process-management-in-emacs-with-proced/</link>
      <pubDate>Mon, 23 Jul 2012 05:00:00 +0000</pubDate>
      <guid>https://www.mikeyboldt.com/2012/07/23/process-management-in-emacs-with-proced/</guid>
      <description>&lt;p&gt;Leaving emacs frustrates me, especially when it&amp;#8217;s for things I would normally do in a command shell. But alas, I would regularly drop into a shell to run the &lt;code&gt;top&lt;/code&gt; command, as I did not know of an emacs replacement. I became fed up enough with this to do some googling, and found &lt;code&gt;proced&lt;/code&gt;, which is a &lt;code&gt;dired&lt;/code&gt;-like mode for managing processes. &lt;/p&gt;&#xA;&lt;p&gt; I haven&amp;#8217;t done much with it yet, just looked at processes and killed an &lt;code&gt;xeyes&lt;/code&gt; as a test. It seems to have common keybindings: &lt;code&gt;g&lt;/code&gt; to update the buffer, &lt;code&gt;q&lt;/code&gt; to bury the buffer, marking like &lt;code&gt;dired&lt;/code&gt;, etc. It doesn&amp;#8217;t seem to have a home on the internets or an info page, but &lt;code&gt;M-x proced [enter] C-h m&lt;/code&gt; provides good documentation. Glad to have this new-to-me tool in my belt. &lt;/p&gt;</description>
    </item>
    <item>
      <title>Linking to MS Office File in Emacs Org Mode</title>
      <link>https://www.mikeyboldt.com/2012/07/18/linking-to-ms-office-file-in-emacs-org-mode/</link>
      <pubDate>Wed, 18 Jul 2012 05:00:00 +0000</pubDate>
      <guid>https://www.mikeyboldt.com/2012/07/18/linking-to-ms-office-file-in-emacs-org-mode/</guid>
      <description>&lt;p&gt;My daily workflow includes emacs org mode files for each project I&amp;#8217;m working on. I often link to files, programs, etc. from these org mode files. I tried linking to a MS Excel spreadsheet using my usual &lt;/p&gt;&#xA;&lt;pre class=&#34;example&#34;&gt;&#xA;file:/path/to/file.xlsx&#xA;&lt;/pre&gt;&#xA;&lt;p&gt;link. However, since the &lt;code&gt;xlsx&lt;/code&gt; file is &lt;i&gt;really&lt;/i&gt; a zip file, emacs opened a &lt;code&gt;dired&lt;/code&gt; buffer revealing the contents, rather than opening it in Excel. &lt;/p&gt;&#xA;&lt;p&gt; After a bit of googling, I found a message from the org mode mailing list about &lt;a href=&#34;http://article.gmane.org/gmane.emacs.orgmode/57864&#34;&gt;linking to Excel and Word documents from org mode&lt;/a&gt; and discovered the &lt;code&gt;file+sys&lt;/code&gt; link type. This, per the &lt;a href=&#34;http://orgmode.org/manual/External-links.html&#34;&gt;org mode External Links manual&lt;/a&gt;, will &amp;#8220;open via OS, like double-click&amp;#8221;, which is exactly what I want. Good reminder for myself: when all else fails, RTFM. &lt;/p&gt;</description>
    </item>
    <item>
      <title>Email Update: Notmuch</title>
      <link>https://www.mikeyboldt.com/2012/05/27/email-update-notmuch/</link>
      <pubDate>Sun, 27 May 2012 05:00:00 +0000</pubDate>
      <guid>https://www.mikeyboldt.com/2012/05/27/email-update-notmuch/</guid>
      <description>&lt;div id=&#34;outline-container-1&#34; class=&#34;outline-2&#34;&gt;&#xA;&lt;h2 id=&#34;sec-1&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;div class=&#34;outline-text-2&#34; id=&#34;text-1&#34;&gt;&#xA;&lt;p&gt;In my last email-related post, I discussed &lt;a href=&#34;https://www.mikeyboldt.com/2011/12/18/disciplined-email-via-emacs-gnus/&#34;&gt;Disciplined Email via Gnus&lt;/a&gt;. I theorized that reading email like a newsgroup would enforce more disciplined, efficient email use. I stand by that philosophy, but changed my email client to &lt;a href=&#34;http://notmuchmail.org/&#34;&gt;Notmuch&lt;/a&gt;. &lt;/p&gt;&#xA;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;div id=&#34;outline-container-2&#34; class=&#34;outline-2&#34;&gt;&#xA;&lt;h2 id=&#34;sec-2&#34;&gt;Why Switch from Gnus to Notmuch&lt;/h2&gt;&#xA;&lt;div class=&#34;outline-text-2&#34; id=&#34;text-2&#34;&gt;&#xA;&lt;p&gt;Reasons for switching from Gnus to Notmuch include: &lt;/p&gt;&#xA;&lt;dl&gt;&#xA;&lt;dt&gt;Local copy of email&lt;/dt&gt;&#xA;&lt;dd&gt;I had been doing email over IMAP, both work and personal. I was interested in getting a local copy of my email for backup and availability purposes. For this, I use &lt;a href=&#34;http://offlineimap.org/&#34;&gt;OfflineImap&lt;/a&gt;, which synchronizes IMAP email with a local maildir. This integrates nicely with Notmuch, while I found Gnus maildir support slow and clunky. &lt;/dd&gt;&#xA;&lt;dt&gt;Fast search&lt;/dt&gt;&#xA;&lt;dd&gt;Search lives at the core of Notmuch. As a response to the &lt;a href=&#34;http://sup.rubyforge.org/&#34;&gt;Sup&lt;/a&gt; email client (get it?), Notmuch provides indexing, and searching, while search seems peripheral to Gnus. &lt;/dd&gt;&#xA;&lt;dt&gt;Unified email&lt;/dt&gt;&#xA;&lt;dd&gt;I like the unified inbox I get with K9 mail on my Android phone. I find separation between email accounts unnatural. Notmuch provides a single &amp;#8220;inbox&amp;#8221; tag for new messages, regardless of the account; I did not figure out how to do this easily in Gnus. &lt;/dd&gt;&#xA;&lt;/dl&gt;&lt;/div&gt;&#xA;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Emacs: &lt;code&gt;open-line&lt;/code&gt; with &lt;code&gt;fill-prefix&lt;/code&gt;</title>
      <link>https://www.mikeyboldt.com/2012/01/16/emacs-open-line-with-fill-prefix/</link>
      <pubDate>Mon, 16 Jan 2012 17:00:00 +0000</pubDate>
      <guid>https://www.mikeyboldt.com/2012/01/16/emacs-open-line-with-fill-prefix/</guid>
      <description>&lt;p&gt;This has happened to me one-too-many times, so I figure I&amp;#8217;d post it:&lt;/p&gt;&#xA;&lt;p&gt;I&amp;#8217;m writing a longish comment in some code. I write it on a single line at first, then call &lt;code&gt;fill-paragraph&lt;/code&gt; to let Emacs break it up into multiple lines of sane width. But, it prefixes each line with some text I&amp;#8217;ve recently killed. The same prefix pops up when I call &lt;code&gt;open-line&lt;/code&gt; as well.&lt;/p&gt;&#xA;&lt;p&gt;I dug into this a bit, and found that I must have accidentally set the variable &lt;code&gt;fill-prefix&lt;/code&gt; (which is bound to &lt;code&gt;C-x .&lt;/code&gt;). To undo this, just call &lt;code&gt;set-variable&lt;/code&gt; and set &lt;code&gt;fill-prefix&lt;/code&gt; to &lt;code&gt;nil&lt;/code&gt;, and go back to happily opening lines and filling paragraphs.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Execute Code via Org-mode Links</title>
      <link>https://www.mikeyboldt.com/2012/01/05/execute-code-via-org-mode-links/</link>
      <pubDate>Thu, 05 Jan 2012 09:35:00 +0000</pubDate>
      <guid>https://www.mikeyboldt.com/2012/01/05/execute-code-via-org-mode-links/</guid>
      <description>&lt;p&gt;I was recently browsing the &lt;a href=&#34;http://orgmode.org/manual/External-links.html&#34;&gt;org-mode link documentation&lt;/a&gt; to see how I could link to my &lt;a href=&#34;http://www.gnus.org/&#34;&gt;Gnus&lt;/a&gt; email inbox&lt;sup&gt;&lt;a class=&#34;footref&#34; name=&#34;fnr.1&#34; href=&#34;#fn.1&#34;&gt;1&lt;/a&gt;&lt;/sup&gt;. Looking through, I noticed a couple of interesting link capabilities I had not known about before: &lt;/p&gt;&#xA;&lt;table border=&#34;2&#34; cellspacing=&#34;0&#34; cellpadding=&#34;6&#34; rules=&#34;groups&#34; frame=&#34;hsides&#34;&gt;&#xA;&lt;caption&gt;&lt;/caption&gt;&#xA;&lt;colgroup&gt;&#xA;&lt;col class=&#34;left&#34; /&gt;&#xA;&lt;col class=&#34;left&#34; /&gt; &lt;/colgroup&gt;&#xA;&lt;tbody&gt;&#xA;&lt;tr&gt;&#xA;&lt;td class=&#34;left&#34;&gt;&lt;code&gt;shell:ls *.org&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;left&#34;&gt;A shell command&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td class=&#34;left&#34;&gt;&lt;code&gt;elisp:org-agenda&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;left&#34;&gt;Interactive Elisp command&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td class=&#34;left&#34;&gt;&lt;code&gt;elisp:(find-file-other-frame &#34;Elisp.org&#34;)&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;left&#34;&gt;Elisp form to evaluate&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt; Having the ability to run arbitrary shell commands and Elisp code via an Org-mode link seems very powerful. This is mainly a note-to-self to remember this capability. I will report back if/when I find a good practical application for this. &lt;/p&gt;</description>
    </item>
    <item>
      <title>Disciplined Email via Emacs Gnus</title>
      <link>https://www.mikeyboldt.com/2011/12/18/disciplined-email-via-emacs-gnus/</link>
      <pubDate>Sun, 18 Dec 2011 15:53:00 +0000</pubDate>
      <guid>https://www.mikeyboldt.com/2011/12/18/disciplined-email-via-emacs-gnus/</guid>
      <description>&lt;p&gt;I&amp;#8217;m a believer in the &lt;a href=&#34;http://inboxzero.com/&#34;&gt;Inbox Zero&lt;/a&gt; philosophy; that is, I don&amp;#8217;t like my brain to be in my inbox. If I have more than about 5 read emails sitting around, I get uncomfortable. I recently noticed myself getting sloppy with email, so I watched the &lt;a href=&#34;http://inboxzero.com/video/&#34;&gt;Merlin Mann&amp;#8217;s original Inbox Zero video&lt;/a&gt; for a refresher. The part of the video where Mann describes typical email processing as a deli chef who reads the orders multiple times, organizes them in different ways, but never actually makes a sandwich. Email is a support tool to help us actually &lt;strong&gt;do&lt;/strong&gt; things. It is a means to an end, not an end in itself.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Emacs: &lt;code&gt;ssh&lt;/code&gt; with Tab Completion</title>
      <link>https://www.mikeyboldt.com/2011/12/05/emacs-ssh-with-tab-completion/</link>
      <pubDate>Mon, 05 Dec 2011 14:16:00 +0000</pubDate>
      <guid>https://www.mikeyboldt.com/2011/12/05/emacs-ssh-with-tab-completion/</guid>
      <description>&lt;p&gt;Something that&amp;#8217;s bugged me is that when I &lt;code&gt;ssh&lt;/code&gt; into another machine inside a shell in emacs, tab completion gets still behaves as if I&amp;#8217;m on the local machine. Just by chance, I once started a shell when using &lt;a href=&#34;http://www.gnu.org/s/tramp/&#34;&gt;TRAMP&lt;/a&gt; to edit a remote file via &lt;code&gt;scp&lt;/code&gt;, and noticed that the shell was on the remote machine &lt;strong&gt;and&lt;/strong&gt; tab completion worked! So, I used this little in a function to start a remote with tab completion &lt;em&gt;without&lt;/em&gt; manually opening a file on the remote machine first:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Install Emacs 24 in Ubuntu</title>
      <link>https://www.mikeyboldt.com/2011/11/30/install-emacs-24-in-ubuntu/</link>
      <pubDate>Wed, 30 Nov 2011 09:30:00 +0000</pubDate>
      <guid>https://www.mikeyboldt.com/2011/11/30/install-emacs-24-in-ubuntu/</guid>
      <description>&lt;p&gt;&lt;strong&gt;[2012-07-19] Update&lt;/strong&gt;: Please see &lt;a href=&#34;https://www.mikeyboldt.com/2011/11/30/install-emacs-24-in-ubuntu/#comment-375&#34;&gt;Damien Cassou&amp;#8217;s comment&lt;/a&gt; describing his emacs snapshot PPA moving forward.&lt;/p&gt;&#xA;&lt;p&gt;After reading several good things about emacs 24, I decided to give it a shot. A little googling led me to &lt;a href=&#34;https://launchpad.net/~cassou/+archive/emacs&#34;&gt;Damien Cassou&amp;#8217;s emacs snapshot PPA&lt;/a&gt;. Simply ran the following:&lt;/p&gt;&#xA;&lt;pre class=&#34;src src-sh&#34;&gt;sudo add-apt-repository ppa:cassou/emacs&#xD;&#xA;sudo apt-get update&#xD;&#xA;sudo apt-get install emacs-snapshot&#xD;&#xA;emacs-snapshot&lt;/pre&gt;&#xA;&lt;p&gt;Everything works great so far, specifically email in &lt;a href=&#34;http://www.mew.org/en/&#34;&gt;mew&lt;/a&gt;, chatting with &lt;a href=&#34;http://www.emacswiki.org/emacs/JabberEl&#34;&gt;jabber.el&lt;/a&gt;, my &lt;a href=&#34;http://www.orgmode.org&#34;&gt;org&lt;/a&gt; files, and &lt;a href=&#34;https://github.com/punchagan/org2blog&#34;&gt;org2blog/wp&lt;/a&gt;. Played with the built-in &lt;a href=&#34;http://emacs-fu.blogspot.com/2011/11/package-management-revisited.html&#34;&gt;ELPA package manager&lt;/a&gt; a little, and I really thing it will be nice to &lt;a href=&#34;http://zachholman.com/posts/shit-work/&#34;&gt;avoid manual package management&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
