2019-03-31 11:00:21 +00:00
|
|
|
---
|
|
|
|
title: 書き捨てのソース
|
|
|
|
author: kazu634
|
|
|
|
date: 2009-10-29
|
|
|
|
wordtwit_post_info:
|
|
|
|
- 'O:8:"stdClass":13:{s:6:"manual";b:0;s:11:"tweet_times";i:1;s:5:"delay";i:0;s:7:"enabled";i:1;s:10:"separation";s:2:"60";s:7:"version";s:3:"3.7";s:14:"tweet_template";b:0;s:6:"status";i:2;s:6:"result";a:0:{}s:13:"tweet_counter";i:2;s:13:"tweet_log_ids";a:1:{i:0;i:4883;}s:9:"hash_tags";a:0:{}s:8:"accounts";a:1:{i:0;s:7:"kazu634";}}'
|
|
|
|
categories:
|
|
|
|
- Emacs
|
|
|
|
|
|
|
|
---
|
|
|
|
<div class="section">
|
|
|
|
<p>
|
|
|
|
作業の備忘録として貼り付けておきますね。後できちんと整えてから、記事にし直します。
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<pre class="syntax-highlight">
|
|
|
|
<span class="synSpecial">(</span><span class="synStatement">setq</span> anything-c-source-gourmet
|
|
|
|
<span class="synSpecial">'((</span>name . <span class="synConstant">"Cross-Gourmet Site Search"</span><span class="synSpecial">)</span>
|
|
|
|
<span class="synSpecial">(</span>candidates . <span class="synSpecial">(</span><span class="synStatement">lambda</span> <span class="synSpecial">()</span>
|
|
|
|
<span class="synSpecial">(</span><span class="synStatement">delete</span> <span class="synConstant">""</span>
|
|
|
|
<span class="synSpecial">(</span>split-string
|
|
|
|
<span class="synSpecial">(</span>shell-command-to-string <span class="synConstant">"perl ~/bin/gourmet.pl 03-5798-2218"</span><span class="synSpecial">)</span>
|
|
|
|
<span class="synConstant">"\n"</span><span class="synSpecial">))))</span>
|
|
|
|
<span class="synSpecial">(</span>candidate-transformer . <span class="synSpecial">(</span><span class="synStatement">lambda</span> <span class="synSpecial">(</span>candidates<span class="synSpecial">)</span>
|
|
|
|
<span class="synSpecial">(</span><span class="synStatement">mapcar</span>
|
|
|
|
<span class="synSpecial">(</span><span class="synStatement">function</span> <span class="synSpecial">(</span><span class="synStatement">lambda</span><span class="synSpecial">(</span>arg<span class="synSpecial">)</span>
|
|
|
|
<span class="synSpecial">(</span><span class="synStatement">apply</span> '<span class="synStatement">cons</span> <span class="synSpecial">(</span>split-string arg <span class="synConstant">"\t"</span><span class="synSpecial">))))</span>
|
|
|
|
candidates<span class="synSpecial">)))</span>
|
|
|
|
<span class="synSpecial">(</span>action . <span class="synSpecial">((</span><span class="synConstant">"Insert"</span> . insert<span class="synSpecial">)))</span>
|
|
|
|
<span class="synSpecial">(</span>multiline<span class="synSpecial">)</span>
|
|
|
|
<span class="synSpecial">(</span>migemo<span class="synSpecial">)))</span>
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
insertの部分を工夫しないと、今のところ使えない。選択した候補の値をうまいこと操作しないと。。。
|
|
|
|
</p>
|
2019-04-02 16:06:15 +00:00
|
|
|
</div>
|