タグ

editorに関するtopaz2のブックマーク (106)

  • 新Emacsの強力な置換機能を使いこなす - ZDNet Japan

    印刷する メールで送る テキスト HTML 電子書籍 PDF ダウンロード テキスト 電子書籍 PDF クリップした記事をMyページから読むことができます 6年ぶりの大きなアップデートとなったEmacs 22.1、CVS先端の開発バージョンを使っているユーザは、なんとなく見過ごしてしまっているかもしれないが、新しい機能には便利なものが多い。ここでは、特に強化された置換機能について取り上げる。使いこなせば強力なので、是非使ってみて欲しい。 replace-regexpがプログラマブル置換へとパワーアップ Emacsではreplace-regexpで正規表現置換ができる。現在主流となっている正規表現のスタイルはPerlに源流をおいたものが多いが、Emacsの正規表現はそれとは異なる。特に\( \)の表記などが独特だ。とはいえ、Emacsを愛しているならば、馴れるしかないだろう。書き方が違うだけ

    新Emacsの強力な置換機能を使いこなす - ZDNet Japan
    topaz2
    topaz2 2007/06/14
    replace-regexp で条件分岐。
  • Emacs multi-tty support

    As a hobby project, I am implementing multiple terminal support for GNU Emacs. My goal is to allow opening multiple, different tty devices and simultaneous X (graphical) and tty frames from a single Emacs session. Use cases Emacs is notoriously slow at startup, so most people use another editor or emacsclient for quick editing jobs from the console. Unfortunately, emacsclient was very awkward to u

    topaz2
    topaz2 2007/06/05
    emacs23 で標準サポ予定らしい
  • psgmlを使ってみる

    psgmlというのはSGMLの入力支援のために作られたlispです.当然HTML作成に活用できますし,また,XMLの作成にも対応しています.DTDを読み込んで正しく文書を作成することが出来ます. ここに書かれているのはmakeなどを使わないでインストールする方法です.自分のディレクトリ構成とconfigureファイルなどでの指定が微妙に違うし,そう簡単に修正できそうになかったので,手動で作業しました. 目標はXHTML1.0などを編集できるようにすることです.やり方を眺めれば後はどうすればいいのか分かると思います.自分,Meadowを使っているのでそれように書いていますが,作業自体はemacsenなら大丈夫だと思います.適宜読み替えてください. psgmlのダウンロード まずは体をInformation about PSGMLからダウンロード.自分は最新の1.3.1を使っています. 解凍

  • PSGMLのススメ - Emacs

    概要 皆さん普段何使ってXMLやHTML書いてます? ここではEmacsのメジャーモードの一つであるPSGMLをご紹介し,楽々マークアップ生活をおくる為の準備と,PSGMLの使い方を簡単に説明したいと思います. 特徴 PSGMLは極めて強力で,機能も豊富にあるのですが,最大の特徴は『その文書型のDTDをPSGML自身が解釈してその場所に最適な要素名で補完してくれる(若しくは挿入してくれたり,リストアップしてくれる)事』,それによって,『全部の要素の親子関係を自分が憶えていなくても意識せず正しいマークアップをすることが出来る事』にあると云えるのではないかと思います. 例えば文書型がXHTML1.1のHTMLを編集しているとしましょう.body要素直下のある箇所に番号付き箇条書き (ol)を入れたくなったとします.PSGMLでは要素を挿入したい時 Control + c (Controlキーを

    topaz2
    topaz2 2007/05/30
    sgml-mode よりつおそう。html-mode より全然イケテル予感。
  • http://www.opensubscriber.com/message/help-gnu-emacs@gnu.org/6491585.html

  • newsticker.el - A Newsticker for Emacs

    Please note: The informations on this page are obsolete. The newsticker.el project at savannah is not maintained anymore. Newsticker is part of GNU Emacs. Please refer to GNU Emacs for the latest version of Newsticker and for up-to-date documentation. newsticker.el - A Newsticker for Emacs. Overview Newsticker provides a newsticker for Emacs. A newsticker is a thing that asynchronously retrieves h

    topaz2
    topaz2 2007/05/07
    rss reader
  • psvn

    emacs用subversionインターフェースです. Commentaryの和訳 ;;; 解説 ;; psvn.elはWindows, Debian Linux, FreeBSD5上のGNU Emacs 21.3およびsvn ;; 1.05で検証済みです. ;; psvn.elはリビジョン管理ツールsubversionのインターフェースです. ;; (http://subversion.tigris.org を参照のこと) ;; psvn.elはcvsに対してpcl-cvsが提供している機能と同様の機能を ;; subversionに対して提供します. 現在, 以下のコマンドが実装されていま ;; す: ;; M-x svn-status: 'svn -status -v'を実行し, 結果をsvn-statusバッファ ;; に表示します. このバッファ(svn-status)では以下の

    topaz2
    topaz2 2007/04/19
    emacs 用 svn インターフェースのリファレンス。
  • http://homepage1.nifty.com/blankspace/emacs/emacs_rgb.html

  • HOWTO Replace Something with Newline in Emacs (by Jeremy Zawodny)

    I can't believe I've never needed to do this before, but I was struggling with a dumb problem a little while ago. I had a file open in Emacs and it contained a bunch of key/value pairs separated by, what else, the web's favorite: & To make this more readable I wanted to put each pair on its own line. So I needed to replace all instances of & with newline (or the equivalent of hitting the 'enter' k

    topaz2
    topaz2 2007/04/15
    C-q C-j で mini buffer に 改行。ずっと kill-ring に入れた改行 yank してたよ。
  • emacs:dokuwiki · JörgsWiki

    Mit dem Dokuwiki-Mode können Dokuwiki-Seiten extern mit dem EMACS bearbeitet und formatiert werden. Der Dokuwiki-Mode bietet derzeit folgende Möglichkeiten: Upload, Bearbeitung und Speichern von DokuWiki-Seiten nur aus dem EMACS heraus (ohne Webbrowser) Eigener Major-Mode mit farblicher Hervorhebung der wichtigsten Dokuwiki-Syntax (Fett, Unterstrichen etc.)

    topaz2
    topaz2 2007/04/10
    dokuwiki-mode
  • http://reductivelabs.com/trac/puppet/browser/trunk/ext/emacs

    topaz2
    topaz2 2007/03/21
    puppet-mode
  • Alexandre Vassalotti >> Pretty Emacs

    Update: If you are using Ubuntu 8.04 LTS “Hardy Heron” or Ubuntu 8.10 “Intrepid Ibex”, use the packages in the PPA of the Ubuntu Emacs Lisp team, instead of the packages referenced here. For Ubuntu 9.04 “Jaunty Jackalope” and newer, use the packages in Ubuntu repositories. Emacs is my editor of choice. In fact, I should say it’s my framework of choice, but that’s for another post. Until recently,

    topaz2
    topaz2 2007/02/26
    font antialias
  • http://platypope.org/yada/emacs-demo/

    topaz2
    topaz2 2007/02/20
    ECB screencast
  • ECB

    ECB is a file/code browser for Emacs. It can be used to browse any type of file and supports parsing of Java, C, C++, Elisp and some other code like perl, TeX, LaTeX. All browsing windows are within one frame and they are deletion-protected (eg by C-x 1)

    topaz2
    topaz2 2007/02/20
    emacs で IDE ぽいの。
  • Bridge Word

    This shop will be powered by Are you the store owner? Log in here

    topaz2
    topaz2 2007/02/15
    symfony の screencast で見たやつだ。
  • Emacs で正規表現を使うなら re-builder を使おう - higepon blog

    Emacs で正規表現を使うならば re-builder を使うことをおすすめします。 例えば、正規表現を良く使うシチュエーションとして置換があります。 M-x replace-regexpで置換対象文字列を正規表現で指定し、何に置換して欲しいかを指定するわけです。 行頭に // を追加してソースをコメントアウトしたいのであれば M-x replace-regexp Replace regexp: ^ ← ^ を入力 Replace regexp ^ with: // ← // を入力のように置換をします。(この場合は、comment-region が最適解ですが) 例に挙げたような簡単な正規表現であれば、間違いようもなく問題ないのですが、ちょっと複雑な置換になると話は変わります。 以下のようなコードがあるとしましょう。 byte* buf = new byte[32]; unsigned

    Emacs で正規表現を使うなら re-builder を使おう - higepon blog
    topaz2
    topaz2 2007/02/12
    正規表現を確認しながら、replace。
  • Emacs Screencast: Artist Mode

    English | Korean Previous | Up | Next Artist mode, toggled by M-x artist-mode, lets you draw lines, squares, rectangles and poly-lines, ellipses, and circles with your mouse and/or keyboard. It is extremely useful when inserting text diagrams or figures in your source comments. Beside editing commands, above demonstration uses following Emacs commands: C-x b to switch buffers. Originally, it is bo

    topaz2
    topaz2 2007/02/02
    artist-mode screencast。ターミナルだけじゃもったいない。
  • artist-modeで遊んでみた - とりあえず暇だったし何となくはじめたブログ

    picture-modeをより強力にしたもの. けっこう面白い. Emacsらしくなく, マウス基で操作する. picture-mode 絵を書くのを助けるメジャーモード. M-x picture-modeで起動. 移動関係のコマンド. C-c 文字挿入後にカーソルは, 左に移動する. C-c > 文字挿入後にカーソルは, 右に移動する. C-c ^ 文字挿入後にカーソルは, 上に移動する. C-c . 文字挿入後にカーソルは, 下に移動する. C-c ` 文字挿入後にカーソルは, 左上に移動する. C-c ' 文字挿入後にカーソルは, 右上に移動する. C-c / 文字挿入後にカーソルは, 左下に移動する. C-c \ 文字挿入後にカーソルは, 右下に移動する. 通常のC-f, C-b, C-p, C-nで移動するとき, 行末でも問題なく移動できるようになる. (どんどん新しい行, ス

    artist-modeで遊んでみた - とりあえず暇だったし何となくはじめたブログ
    topaz2
    topaz2 2007/02/02
    スゲー便利。box-drawing-mode が xyzzy 独自だったことに気づく。
  • EmacsのChangeLog で todo を管理するときにちょっとだけ楽しく - higepon blog

    僕は ChangeLog で todo を管理しています。 以下の様に箇条書きで、終わっていないものは□、終わったものは■(塗りつぶし)で書いています。(この方式は id:kambara に教わりました。) -□括弧の数の対応をチェック -□現状把握をして優先度を決める -□すべてのファイルにヘッダをつける -■match.yml/unmatch.yml, translate.yml -■beginで囲まないとテストにならない -■マクロをNodeに変換する -■Node::equalsを実装するtodo を入力するときはコピペか、「やる→□」という対応を IME に登録しておいて入力するのが良いでしょう。 そして todo が完了したら□を塗りつぶすイメージで■にするんですが、そのときの入力が面倒! と思ったので、以下のような Emacs Lisp を書いてみました。 □の上にカーソルを

    EmacsのChangeLog で todo を管理するときにちょっとだけ楽しく - higepon blog
    topaz2
    topaz2 2007/01/11
    いただき!
  • clmemo@aka: Emacs で C 言語プログラミングを始める人へのイントロダクション

    Emacs エディターで C 言語のプログラムを書く人向けに、入門用の解説がないように思う。そこで、知っておくと便利な機能をまとめてみた。 読者は、Emacs の操作とカスタマイズが最低限できる人を対象にしている。つまり、C-x C-f といったショートカット・キーが使えて、.emacs の設定ファイルがいじれる人。各機能について、基的な使い方とその効果、あと最低限の設定について書き出した。 目次 ソースの色付け インデント アラインメント コメント info マニュアル スペル・チェック タグ・ジャンプ 関数名の補完入力 コンパイルとエラー行ジャンプ ChangeLog ファイル 1. ソースの色付け Emacs は、C 言語のソース・ファイルを解析して、if や for といったキーワードに対して、自動で色を付ける。 色を付けることでソースにメリハリが生まれ、可読性が上がる。また、ス

    clmemo@aka: Emacs で C 言語プログラミングを始める人へのイントロダクション
    topaz2
    topaz2 2006/12/19
    M-x align 知らんかった。