<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Elisp on Codrut Constantin Gusoi</title>
    <link>https://www.codrut.pro/tags/elisp/</link>
    <description>Recent content in Elisp on Codrut Constantin Gusoi</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 02 May 2022 08:53:58 +0000</lastBuildDate>
    <atom:link href="https://www.codrut.pro/tags/elisp/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Local packages in Spacemacs</title>
      <link>https://www.codrut.pro/snippets/local-packages-in-spacemacs/</link>
      <pubDate>Mon, 02 May 2022 08:53:58 +0000</pubDate>
      <guid>https://www.codrut.pro/snippets/local-packages-in-spacemacs/</guid>
      <description>&lt;p&gt;Are you a hardcore &lt;code&gt;elisp&lt;/code&gt; programmer? Add this to your &lt;code&gt;~/.spacemacs&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-elisp&#34; data-lang=&#34;elisp&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;dotspacemacs-additional-packages &lt;span style=&#34;color:#f92672&#34;&gt;&amp;#39;&lt;/span&gt;(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; (treemacs :location&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             (recipe :fetcher file&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                     :path &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;~/path/to/treemacs/src/elisp&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           :update &lt;span style=&#34;color:#66d9ef&#34;&gt;nil&lt;/span&gt;))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now you can hack on any &lt;code&gt;emacs&lt;/code&gt; package in your live editor!&lt;/p&gt;&#xA;&lt;h2 id=&#34;notes&#34;&gt;&#xA;  Notes&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#notes&#34;&gt;&#xA;    &lt;i class=&#34;fa fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You will need to manually delete the package from &lt;code&gt;~/.emacs.d/elpa/29.0/develop&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;The path is supposed to point to the location of &lt;code&gt;*.el&lt;/code&gt; files.&lt;/li&gt;&#xA;&lt;li&gt;Heavy lifting is done by &lt;code&gt;quelpa&lt;/code&gt;, read their docs!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;reference&#34;&gt;&#xA;  Reference&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#reference&#34;&gt;&#xA;    &lt;i class=&#34;fa fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/quelpa/quelpa&#34;&gt;https://github.com/quelpa/quelpa&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Emacs Lisp interactive debugging</title>
      <link>https://www.codrut.pro/snippets/elisp-interactive-debugging/</link>
      <pubDate>Mon, 10 May 2021 11:05:44 +0000</pubDate>
      <guid>https://www.codrut.pro/snippets/elisp-interactive-debugging/</guid>
      <description>&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Navigate to your function.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Instrument it with &lt;code&gt;C-u M-x eval-defun&lt;/code&gt;, or &lt;code&gt;C-u , e f&lt;/code&gt; in Spacemacs.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Execute that function.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Debug with these shortcuts:&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Key&lt;/th&gt;&#xA;          &lt;th&gt;Action&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;s&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Next sexp.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;i&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Step in.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;o&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Step out.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;d&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Backtrace.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;Q&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Quit.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Once you&amp;rsquo;re done, re-evaluate all functions (without &lt;code&gt;C-u&lt;/code&gt;), or simply&#xA;restart.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
    </item>
  </channel>
</rss>
