<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rubikitch</author_name>
  <author_url>https://blog.hatena.ne.jp/rubikitch/</author_url>
  <blog_title>http://rubikitch.com/に移転しました</blog_title>
  <blog_url>https://rubikitch.hatenadiary.org/</blog_url>
  <categories>
    <anon>emacs</anon>
    <anon>ruby</anon>
  </categories>
  <description>連番テキストを生成する機会というのはけっこうあると思う。Emacsにおいて連番を入力する方法を考える。シェルコマンドを使う方法は他のエディタにも応用できる。ここでは3つの連番だが、多くなっても対応できる方法を挙げる。 (1)〜(3)を入力する (1) (2) (3) (require 'cl)した状態でloopマクロを使う。loopマクロはいろいろなループを表現する強力なLispマクロだ。書式が複雑化しても対応できる。 M-: (loop for i from 1 to 3 do (insert (format &quot;(%d)\n&quot; i))) シェルコマンドのseqコマンドとprintfコマンドを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubikitch.hatenadiary.org%2Fentry%2F20081223%2Fseq&quot; title=&quot;Emacsで連番を挿入する方法 - http://rubikitch.com/に移転しました&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-12-23 03:28:30</published>
  <title>Emacsで連番を挿入する方法</title>
  <type>rich</type>
  <url>https://rubikitch.hatenadiary.org/entry/20081223/seq</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
