Emacsはじめる

いや、もうはじめてるけど。久々の更新ですね。Xperia購入したので、あれでした。というか、なぜかブログ内で編集とか出来なくなってるんですけど、どうしてこうなった。なんかhatena-stとかいうのにスクリプト任せるようにしたからか。

とりあえずブックマークやらセッションやら。基本やら基礎やら覚える。もっと使っていくのだ。Pythonの勉強と並行して。

http://www.gnu.org/software/emacs/
http://www.gnu.org/software/emacs/manual/html_node/emacs/index.html
http://www.gnu.org/software/emacs/manual/
http://www.emacswiki.org/

とりあえずこの辺すかねぇ。

GNU Emacs Manualを読んでいる。

Distrib

Intro

Glossaryまで読んだ。

METAキーはHHKのキーボードだと、Esc一度押して〜の方が押しやすいというか、使いやすいかなぁ。なんて思ったり。

というか、Glossaryは用語集みたいなもんなんだけど、Emacsは結構これ読んでおいたほうが理解進むっぽい。まぁ特殊なエディタなんで。
読んでおいてよかったなぁと何もしてないのに思う。Emacsってこんな感じなのかと大体掴める。動きとかEmacsの構造とか。構成とか。

Acknowledgmentsも全部読んだった。これを読んだ俺は割りとすごい。まぁ、時間掛けたんで当然ですが。後何人かTwitterとかで活動している人も見つけた。

Important General Conceptsに入っていきたい。Acknowledgments読み終わって最初Detailed Node Listingまで見ていてやべえこれはマニュアル見てても終わるってレベルじゃねえとか思ってたけど、そうじゃないね。Important General Conceptsとかの章のページを分割して並べてるだけだねこれは。というわけでマニュアルは全部読みきれたりするんじゃないかなと予想。
割とEmacsをマスターする自信が出てきた。コンピューティングのおともにEmacsさんをいかがですか。みたいな感じで使えていけたらいいなぁと思っております。

Indexes (each index contains a large menu)
Key Index
Option Index
Command Indexと読んでいる。
M-XでCommand名で実行できるのは知ってたので、lifeとかいうのやってみたら動いた。何気にEmacsへの理解が進んでいる。おそらく、このCommand名を指定したりするとキーバインドなんかに設定できたりしてLispでごにょごにょみたいな仕組みになっているんだろうなぁと予想している。Emacsはよく出来ていると思うようになってきた。
Variable Index
Concept Indexと読んだ。正直全て自分には役に立った。

Important General Concepts
Screenを読んでいく。
途中遊びでDissociated Pressとかいう遊びのコマンドみたいなページも見たが、あぁいうのもあるんで、割とすぐにEmacsのマニュアルは読めてしまうかもしれない。
そうしたらGitのコマンドとかのlisp?なんかにも入っていけたらなぁと思っているし、Pythonとかもするし。色々Emacsでしていきたいのだ。シェルやBashとかも覚えたりして。Emacsにはeshellとかいうのもあるらしくてそれってどうなんだろうと思ったり。
とにかく読んでいくのだ。今僕に出来ることはそれしかない。

途中でVi、VimEclipseなんかも調べててその前にも思ったことは、Emacsテキストエディタとして使いたいなぁということ。

User Input
Keys
Commands
Entering Emacs
Exitingまで読み終えた。
Fundamental Editing Commandsに入っていく。
Basic

Here we explain the basics of how to enter text, make corrections, and save the text in a file. If this material is new to you, we suggest you first run the Emacs learn-by-doing tutorial, by typing Control-h t inside Emacs. (help-with-tutorial).

Emacsに内蔵のチュートリアルやろうかしらん。前にやったけど途中で放り出してしまっていると思うんだよね。

If you forget what a key does, you can find out with the Help character, which is C-h (or , which is an alias for C-h). Type C-h k, followed by the key of interest; for example, C-h k C-n tells you what C-n does.

Minibufferよみよみ。

というか途中でAltによるM-が効かなくなってしまってESCばかり使っているんだけどどうしてこうなった。

Emacsで様々なHelpを呼び出すのに必要なC-hをがっつりBackspaceにBindしてしまったのでHelpを呼び出せなかったがC-hはF1でおkって記述を調べて発見して一難を得る。
M-はEscに頼っているしどうしてこうなった。
とりあえず変数を呼び出して説明させる、C-h v 変数名ってのは今後フルに役立ちそうなのでメモっておく。
今のところ役立ってるのは他にブックマークコマンドとかかなぁ。少しずつ謎コマンドも覚え始めていたりする。

このモードちょう格好いいなぁ。

Icomplete mode presents a constantly-updated display that tells you what completions are available for the text you've entered so far. The command to enable or disable this minor mode is M-x icomplete-mode.

C-x is used to re-execute a recent command that used the minibuffer. With no argument, it repeats the last such command. A numeric argument specifies which command to repeat; 1 means the last one, 2 the previous, and so on.

Numeric ArgumentってC-u 数字で渡される引数のことか。久々な単語だったか忘れていた。

C-h or means “help” in various other contexts as well. For instance, you can type them after a prefix key to display a list of the keys that can follow the prefix key. (A few prefix keys don't support C-h in this way, because they define other meanings for it, but they all support for help.)

このようなことなんで、C-hをBackspaceに割り当ててF1を専用のヘルプキーにしたのは正解だったのかも?

Help buffers that describe Emacs variables and functions normally have hyperlinks to the corresponding source definition, if you have the source files installed. (See Hyperlinking.) If you know Lisp (or C), this provides the ultimate documentation. If you don't know Lisp, you should learn it. (The Introduction to Emacs Lisp Programming, available from the FSF through fsf.org, is a good way to get started.) If Emacs feels you are just using it, treating it as an object program, its feelings may be hurt. For real intimacy, read the Emacs source code.

Lisp勉強しろやぁ!ってのが心強い限り。

Following the conventions for naming Emacs commands, here are some words that you'll find useful in apropos patterns. By using them in C-h a, you will also get a feel for the naming conventions.

char, line, word, sentence, paragraph, region, page, sexp, list, defun, rect, buffer, frame, window, face, file, dir, register, mode, beginning, end, forward, backward, next, previous, up, down, search, goto, kill, delete, mark, insert, yank, fill, indent, case, change, set, what, list, find, view, describe, default.

When editing a program, if you have an Info version of the manual for the programming language, you can use C-h S (info-lookup-symbol) to find an entry for a symbol (keyword, function or variable) in the proper manual. The details of how this command works depend on the major mode.

If something surprising happens, and you are not sure what you typed, use C-h l (view-lossage). C-h l displays your last 300 input keystrokes. If you see commands that you don't know, you can use C-h c to find out what they do.

You can get a list of subcommands for a particular prefix key by typing C-h after the prefix key. (There are a few prefix keys for which this does not work—those that provide their own bindings for C-h. One of these is , because C-h is actually C-M-h, which marks a defun.)

If I am not for myself, who will be for me?
If I am only for myself, what am I?
If not now, when?

さぁ、Helpも読み終わったぞぉ。Fundamental Editing Commands Done. C-h C-pのGNU関係のRechard Stallmanのテキストが割といい感じだなぁ。なんかStallmanがどうしてGNU Projectをはじめたのか、彼の人生もある話しだし、転機としてそれでGNU Projectをはじめたってのはやっぱり凄いかも。後で読みたいかもしれん。

Important Text-Changing Commandsに入るよ。