<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://schelcj.github.io//feed.xml" rel="self" type="application/atom+xml" /><link href="https://schelcj.github.io//" rel="alternate" type="text/html" /><updated>2026-07-16T17:12:24+00:00</updated><id>https://schelcj.github.io//feed.xml</id><title type="html">schelcj.github.io</title><subtitle>Just testing...</subtitle><entry><title type="html">learning some elisp</title><link href="https://schelcj.github.io//elisp/emacs/plan.cat/finger/wip/2026/07/16/learning-some-elisp.html" rel="alternate" type="text/html" title="learning some elisp" /><published>2026-07-16T14:39:30+00:00</published><updated>2026-07-16T14:39:30+00:00</updated><id>https://schelcj.github.io//elisp/emacs/plan.cat/finger/wip/2026/07/16/learning-some-elisp</id><content type="html" xml:base="https://schelcj.github.io//elisp/emacs/plan.cat/finger/wip/2026/07/16/learning-some-elisp.html"><![CDATA[<p>Been using <a href="https://www.gnu.org/software/emacs/">emacs</a> for awhile now but haven’t really been wrint much elisp. I’ve had
an account on <a href="https://plan.cat">plan.cat</a> but not used it much for updates to my <a href="https://plan.cat/~schelcj">.plan</a>. Decided to
start using both more and create a function for me to update my .plan from emacs whenever
something strikes my fancy.</p>

<p>Since I learn best from examples I’ve referencing the existing <a href="https://codeberg.org/acdw/plancat.el/src/branch/main/plancat.el">plancat.el</a> package. The
following retrieves my current .plan from the site and puts the contents into a new
buffer to edit. Next is to figure out how to take the contents of that buffer and send
back to <a href="https://plan.cat">plan.cat</a>.</p>

<figure class="highlight"><pre><code class="language-elisp" data-lang="elisp"><span class="p">(</span><span class="nb">defun</span> <span class="nv">my/plan.cat</span> <span class="p">()</span>
  <span class="s">"Retrieve and edit my current plan at plan.cat."</span>
  <span class="p">(</span><span class="nv">interactive</span><span class="p">)</span>
  <span class="p">(</span><span class="k">let*</span> <span class="p">((</span><span class="nv">host</span> <span class="s">"plan.cat"</span><span class="p">)</span>
      <span class="p">(</span><span class="nv">entry</span> <span class="p">(</span><span class="nb">car</span> <span class="p">(</span><span class="nv">auth-source-search</span> <span class="ss">:host</span> <span class="nv">host</span><span class="p">)))</span>
      <span class="p">(</span><span class="nv">user</span> <span class="p">(</span><span class="nv">plist-get</span> <span class="nv">entry</span> <span class="ss">:user</span><span class="p">))</span>
      <span class="p">(</span><span class="nv">url</span> <span class="p">(</span><span class="nb">format</span> <span class="s">"https://%s/~%s"</span> <span class="nv">host</span> <span class="nv">user</span><span class="p">))</span>
      <span class="p">(</span><span class="nv">buf</span> <span class="p">(</span><span class="nv">get-buffer-create</span> <span class="nv">host</span><span class="p">))</span>
      <span class="p">(</span><span class="nv">cur</span>
       <span class="p">(</span><span class="nv">with-current-buffer</span> <span class="p">(</span><span class="nv">url-retrieve-synchronously</span> <span class="nv">url</span><span class="p">)</span>
           <span class="p">(</span><span class="nv">buffer-substring-no-properties</span> <span class="p">(</span><span class="nv">point-min</span><span class="p">)</span> <span class="p">(</span><span class="nv">point-max</span><span class="p">)))))</span>

  <span class="p">(</span><span class="nv">with-current-buffer</span> <span class="nv">buf</span>
    <span class="p">(</span><span class="nv">erase-buffer</span><span class="p">)</span>
    <span class="p">(</span><span class="nv">insert</span>
     <span class="p">(</span><span class="nv">replace-regexp-in-string</span>
      <span class="p">(</span><span class="nv">rx</span> <span class="nv">bos</span> <span class="p">(</span><span class="nv">+?</span> <span class="nv">anything</span><span class="p">)</span> <span class="s">"\n\n"</span><span class="p">)</span>
      <span class="s">""</span>
      <span class="nv">cur</span><span class="p">))</span>
    <span class="p">(</span><span class="nv">goto-char</span> <span class="p">(</span><span class="nv">point-min</span><span class="p">))</span>
    <span class="p">(</span><span class="nv">text-mode</span><span class="p">))</span>

  <span class="p">(</span><span class="nv">switch-to-buffer-other-window</span> <span class="nv">buf</span><span class="p">)))</span></code></pre></figure>]]></content><author><name></name></author><category term="elisp" /><category term="emacs" /><category term="plan.cat" /><category term="finger" /><category term="wip" /><summary type="html"><![CDATA[Been using emacs for awhile now but haven’t really been wrint much elisp. I’ve had an account on plan.cat but not used it much for updates to my .plan. Decided to start using both more and create a function for me to update my .plan from emacs whenever something strikes my fancy.]]></summary></entry><entry><title type="html">Hello World</title><link href="https://schelcj.github.io//2026/07/12/hello-world.html" rel="alternate" type="text/html" title="Hello World" /><published>2026-07-12T20:29:18+00:00</published><updated>2026-07-12T20:29:18+00:00</updated><id>https://schelcj.github.io//2026/07/12/hello-world</id><content type="html" xml:base="https://schelcj.github.io//2026/07/12/hello-world.html"><![CDATA[<h1 id="hello-world">Hello World</h1>

<p>Initial Post….</p>]]></content><author><name></name></author><summary type="html"><![CDATA[Hello World]]></summary></entry><entry><title type="html">Welcome to Jekyll!</title><link href="https://schelcj.github.io//jekyll/update/2026/07/12/welcome-to-jekyll.html" rel="alternate" type="text/html" title="Welcome to Jekyll!" /><published>2026-07-12T13:35:12+00:00</published><updated>2026-07-12T13:35:12+00:00</updated><id>https://schelcj.github.io//jekyll/update/2026/07/12/welcome-to-jekyll</id><content type="html" xml:base="https://schelcj.github.io//jekyll/update/2026/07/12/welcome-to-jekyll.html"><![CDATA[<p>You’ll find this post in your <code class="language-plaintext highlighter-rouge">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class="language-plaintext highlighter-rouge">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>

<p>Jekyll requires blog post files to be named according to the following format:</p>

<p><code class="language-plaintext highlighter-rouge">YEAR-MONTH-DAY-title.MARKUP</code></p>

<p>Where <code class="language-plaintext highlighter-rouge">YEAR</code> is a four-digit number, <code class="language-plaintext highlighter-rouge">MONTH</code> and <code class="language-plaintext highlighter-rouge">DAY</code> are both two-digit numbers, and <code class="language-plaintext highlighter-rouge">MARKUP</code> is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.</p>

<p>Jekyll also offers powerful support for code snippets:</p>

<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">def</span> <span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
  <span class="nb">puts</span> <span class="s2">"Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">"</span>
<span class="k">end</span>
<span class="n">print_hi</span><span class="p">(</span><span class="s1">'Tom'</span><span class="p">)</span>
<span class="c1">#=&gt; prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>

<p>Check out the <a href="https://jekyllrb.com/docs/home">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href="https://github.com/jekyll/jekyll">Jekyll’s GitHub repo</a>. If you have questions, you can ask them on <a href="https://talk.jekyllrb.com/">Jekyll Talk</a>.</p>]]></content><author><name></name></author><category term="jekyll" /><category term="update" /><summary type="html"><![CDATA[You’ll find this post in your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run jekyll serve, which launches a web server and auto-regenerates your site when a file is updated.]]></summary></entry></feed>