自分のための iPhone App を作れるまでに。 2つ作りました。App Storeに公開中

バッファごとに指定できる編集作業を楽にする機能(モード)のこと。

開いたファイルの種類などにより自動でバッファに設定される機能(モード)がメジャーモード。

メジャーモードに関係なく好きなときにオン/オフできる機能(モード)がマイナーモード。

マイナーモードの1つである単語略称モードを試してみましょう。まずEmacsを起動しよう。

  1. C-x v hogehoge.txt(適当なファイルを開くか作成する)
  2. M-x abbrev-mode [return(enter)]
  3. テキストを入力(たとえば eyes)
  4. C-x a i g eyesrobe [return(enter)]
  5. 入力したテキスト eyes がコマンドで入力した eyesrobe に変わる
  6. もう一度 eyes と入力して [Space]キーを押すと
  7. eyes が eyesrobe に変換されるのが分かると思います

これは便利ですねぇ。

他にもマイナーモードの種類があるので色々試してみたくなりますね。

補足:上で試した単語略称モードで単語を登録すると、登録した単語はバッファに書き込まれます。Emacsを終了するときに .abbrev_defs という名前でファイルを作成するか聞かれますので、保存するなら y で保存しましょう。

§24 · 7月 3, 2007 · 今日のEmacs · · [Print]

5 Comments to “基本編 Emacsマイナーモードってなに?”

  1. Walter Pizani より:

    Would you please translate your blog into Germany because I’m not identical comfortable reading it in English? I’m getting tired of utilizing Google Translate completely the time, there is a short WP plugin predicted like global translator which will translate completely your pages automatically- that will build reading posts on your nifty blog eve more cosy. Cheers dude, Thanks!

  2. You’ve made a very well-written article.
    If it’s fine with you, I would like to seek permission to use your article as it relates to my obstruction. I will be happy to negotiate to pay you or hire you for this.

    With Regards from
    Republic Polytechnic

  3. |プラダ ゴールド 財布 Gucci Aviators http://randallconsulting.net/69985698032268.html| has gained more celebrity from his central London flatA business coach assists his clients in improving their performance

  4. |プラダ システム手帳 A5 Aquatics http://metalroofmart.com//69985985351877.html| Also, look for a crosse that has two or less shooting strings.now back to hereLanier’s Campground is situated

  5. |プラダ 2014 新作 Psp 1000 http://www.serinova.eu/69985298142948.html| headed down to Tuscaloosa I really like or it could be a more complex written proposal.

Leave a Reply