約 1,342,868 件
https://w.atwiki.jp/kakis/pages/4075.html
kacsate /// / 園芸店、園芸用品店 kacs\ate \ 16 palsaa klel \
https://w.atwiki.jp/wiki6_vladinet/pages/46.html
エディター(xemacs) パンダでもわかるLinuxプログラミング講座
https://w.atwiki.jp/phys_ss/pages/30.html
emacsに関する覚え書き 有用な解説サイト Emacsの使い方(薮 哲郎) MeadowでFortran90プログラミング
https://w.atwiki.jp/kakis/pages/4073.html
kacskon /// / 園芸道具 kacs\kon \ 16 seren klel \
https://w.atwiki.jp/ntemacs/pages/20.html
【お知らせ】 2017/11/27 追記 本ページはメンテナンスされておりません。利用するツールにこだわりがなければ、「Windows の操作を Emacs のキーバインドで行うための設定 (Keyhac版)」をお薦めします。AutoHotKey の設定を必要としている場合は、次のページも併せて参照ください。 https //github.com/usi3/emacs.ahk https //qiita.com/crz/items/8d864eabfd3922c9a79c http //oneh.blog.jp/archives/9213862.html 【本題】 Windows の操作を Emacs のキーバインドで行うための設定(AutoHotKey版)です。 「Windows の操作を Emacs のキーバインドで行うための設定 (Keyhac版)」の方が多機能ですが、AutoHotKey でシンプルに実現したい場合には利用できると思います。 AutoHotKey のスクリプトは、コンパイルすることにより exe ファイルとして起動することもできます。 ;;; -*- coding utf-8-with-signature-dos -*- ;;; ;;; Windows の操作を Emacs のキーバインドで行うための設定(AutoHotKey版) ;;; ;; このスクリプトは、次のページを参考として作成したものです。 ;; http //usi3.com/emacs-like-keybindings-on-windows.html ;; このページの作者に感謝します。 ;; このスクリプトは、AutoHotkey_L (Unicode版)で動作確認しています。 ;; http //ahkwiki.net/Top ;; スクリプトですので、使いやすいようにカスタマイズしてご利用ください。 ;; スクリプトのまま使うこともできますが、AutoHotkey_L 付属の「Convert .ahk to .exe」 ;; を使うと、exe ファイルに変換することができます。exe ファイルに変換することで、 ;; AutoHotkey_L がインストールされていない PC でも Emacsキーバインドが利用可能 ;; となります。 ;; この内容は、utf-8-with-signature-dos の coding-system で ahk_emacs.ahk 等の名前で ;; セーブして利用してください。 ;; Emacs の挙動と明らかに違う動きの部分は以下のとおりです。 ;; ・ESC の二回押下で、ESC を入力できる。 ;; ・C-o と C-\ で IME の切り替えが行われる。 ;; ・C-k を連続して実行しても、クリップボードへの削除文字列の蓄積は行われない。 ;; ・C-c、C-z は、Windows の「コピー」、「取り消し」が機能するようにしている。 ;; ・C-x o は、一つ前にフォーカスがあったウインドウに移動する。 ;; NTEmacs から Windowsアプリケーションソフトを起動した際に戻るのに便利。 ;; ・プレキー(ESC、C-x)は、その後にそのプレキーが意味を持つ後続キーが入力され ;; なかった場合、状態が不定となる。(プレキーが有効となり続ける場合がある。) ;; (実装を簡素にするため。C-g を押せば、無効となる。) ;; ・C-l は、アプリケーションソフト個別対応とする。recenter 関数で個別に指定すること。 ;; この設定では、Sakura Editor のみ対応している。 ;; ・C-u には対応できていない。 ;; ・キーボードマクロには対応していない。 ;; ・Excel の場合、^Enter に F2(セル編集モード移行)を割り当てている。 #InstallKeybdHook #UseHook ;; Emacs のキーバインドに"したくない"アプリケーションソフトを指定する ;; ・リターンコードが 0 の場合: 全てのキーバインドを有効とする ;; ・リターンコードが 1 の場合: 全てのキーバインドを無効とする ;; ・リターンコードが 2 の場合: input method の切り替えのみを有効とする ;; キーバインドの指定は、477行目(^\)と 648行目(^o)の辺りで行っている ;; ahk_class は、AutoHotKey_L 付属の「AutoIt3 Windows Spy」で確認できる is_target() { global if (WinActive("ahk_class ConsoleWindowClass")) { ; Cmd, Cygwin return 2 } if (WinActive("ahk_class mintty")) { ; mintty return 2 } if (WinActive("ahk_class Emacs")) { ; NTEmacs return 1 } if (WinActive("ahk_class Vim")) { ; Vim return 2 } if (WinActive("ahk_class PuTTY")) { ; PuTTY return 2 } if (WinActive("ahk_class SWT_Window0")) { ; Eclipse return 2 } if (WinActive("xyzzy")) { ; xyzzy return 2 } if (is_c_q = 1) { is_c_q = 0 return 1 } else { return 0 } } ;; コマンドディレイを 0ms にする SetKeyDelay 0 ;; C-x が押されると1になる is_c_x = 0 ;; Escが押されると1になる is_esc = 0 ;; C-Space が押されると1になる is_spc = 0 ;; C-q が押されると1になる。 is_c_q = 0 ;; プレキーの確認 get_pre_key() { global if (is_c_x = 1) { is_c_x = 0 return 1 } if (is_esc = 1) { is_esc = 0 return 2 } return 0 } ;; IMEの切替え toggle_input_method() { Send {vkF3sc029} } ;; ファイル操作 find_file() { Send ^o global is_spc = 0 } save_buffer() { Send ^s } write_file() { Send !fa } ;; カーソル移動 forward_char() { global if (is_spc) { Send +{Right} } else { Send {Right} } } backward_char() { global if (is_spc) { Send +{Left} } else { Send {Left} } } next_line() { global if (is_spc) { Send +{Down} } else { Send {Down} } } previous_line() { global if (is_spc) { Send +{Up} } else { Send {Up} } } move_beginning_of_line() { global if (is_spc) { Send +{Home} } else { Send {Home} } } move_end_of_line() { global if (is_spc) { if (WinActive("ahk_class OpusApp")) { ; Microsoft Word Send +{End}+{Left} } else { Send +{End} } } else { Send {End} } } beginning_of_buffer() { global if (is_spc) { Send ^+{Home} } else { Send ^{Home} } } end_of_buffer() { global if (is_spc) { Send ^+{End} } else { Send ^{End} } } scroll_up() { global if (is_spc) { Send +{PgUp} } else { Send {PgUp} } } scroll_down() { global if (is_spc) { Send +{PgDn} } else { Send {PgDn} } } recenter() { if (WinActive("ahk_class TextEditorWindow")) { ; Sakura Editor Send ^h } } ;; カット / コピー / 削除 / アンドゥ delete_backward_char() { Send {BS} global is_spc = 0 } delete_char() { Send {Del} global is_spc = 0 } kill_line() { global is_spc = 1 move_end_of_line() Send ^c{Del} is_spc = 0 } kill_region() { Send ^x global is_spc = 0 } kill_ring_save() { Send ^c if (!WinActive("ahk_class XLMAIN")) { ; Microsoft Excel 以外 Send {Esc} } global is_spc = 0 } yank() { Send ^v global is_spc = 0 } undo() { Send ^z global is_spc = 0 } set_mark_command() { global if (is_spc) { is_spc = 0 } else { is_spc = 1 } } mark_whole_buffer() { Send ^{End}^+{Home} global is_spc = 1 } mark_page() { Send ^{End}^+{Home} global is_spc = 1 } open_line() { Send {Enter}{Up}{End} global is_spc = 0 } ;; バッファ / ウインドウ操作 kill_buffer() { Send ^{F4} global is_spc = 0 } other_window() { SetKeyDelay 10 Send !{Tab} SetKeyDelay 0 global is_spc = 0 } ;; 文字列検索 / 置換 isearch_forward() { Send ^f global is_spc = 0 } isearch_backward() { Send ^f global is_spc = 0 } ;; その他 newline() { Send {Enter} global is_spc = 0 } newline_and_indent() { Send {Enter}{Tab} global is_spc = 0 } indent_for_tab_command() { Send {Tab} global is_spc = 0 } quote_insert() { global is_c_q = 1 } keybord_quit() { if (!WinActive("ahk_class XLMAIN")) { ; Microsoft Excel 以外 Send {Esc} } global is_spc = 0 global is_c_x = 0 global is_esc = 0 } kill_emacs() { Send !{F4} global is_spc = 0 } ;; キーバインド Esc if (is_target()) { Send {%A_ThisHotkey%} } else { if (get_pre_key() = 2) { Send {%A_ThisHotkey%} is_esc = 0 } else { is_esc = 1 } } return ^Space if (is_target()) { Send {CtrlDown}{Space}{CtrlUp} } else { set_mark_command() } return ^/ if (is_target()) { Send %A_ThisHotkey% } else { undo() } return if (is_target()) { Send %A_ThisHotkey% } else { if (get_pre_key() = 2) { beginning_of_buffer() } else { Send %A_ThisHotkey% } } return ! if (is_target()) { Send %A_ThisHotkey% } else { beginning_of_buffer() } return if (is_target()) { Send %A_ThisHotkey% } else { if (get_pre_key() = 2) { end_of_buffer() } else { Send %A_ThisHotkey% } } return ! if (is_target()) { Send %A_ThisHotkey% } else { end_of_buffer() } return ^@ if (is_target()) { Send %A_ThisHotkey% } else { set_mark_command() } return ^[ if (is_target()) { Send {%A_ThisHotkey%} } else { if (get_pre_key() = 2) { Send {Esc} is_esc = 0 } else { is_esc = 1 } } return ^\ if (is_target() = 1) { Send %A_ThisHotkey% } else { toggle_input_method() } return ^_ if (is_target()) { Send %A_ThisHotkey% } else { undo() } return ^a if (is_target()) { Send %A_ThisHotkey% } else { move_beginning_of_line() } return ^b if (is_target()) { Send %A_ThisHotkey% } else { backward_char() } return ^c if (is_target()) { Send %A_ThisHotkey% } else { if (get_pre_key() = 1) { kill_emacs() } else { ; kill_ring_save() Send %A_ThisHotkey% is_spc = 0 } } return ^d if (is_target()) { Send %A_ThisHotkey% } else { delete_char() } return ^e if (is_target()) { Send %A_ThisHotkey% } else { move_end_of_line() } return ^f if (is_target()) { Send %A_ThisHotkey% } else { if (get_pre_key() = 1) { find_file() } else { forward_char() } } return ^g if (is_target()) { Send %A_ThisHotkey% } else { keybord_quit() } return h if (is_target()) { Send %A_ThisHotkey% } else { if (get_pre_key() = 1) { mark_whole_buffer() } else { Send %A_ThisHotkey% } } return ^h if (is_target()) { Send %A_ThisHotkey% } else { delete_backward_char() } return ^i if (is_target()) { Send %A_ThisHotkey% } else { indent_for_tab_command() } return ^j if (is_target()) { Send %A_ThisHotkey% } else { newline_and_indent() } return k if (is_target()) { Send %A_ThisHotkey% } else { if (get_pre_key() = 1) { kill_buffer() } else { Send %A_ThisHotkey% } } return ^k if (is_target()) { Send %A_ThisHotkey% } else { kill_line() } return ^l if (is_target()) { Send %A_ThisHotkey% } else { recenter() } return ^m if (is_target()) { Send %A_ThisHotkey% } else { newline() } return ^n if (is_target()) { Send %A_ThisHotkey% } else { next_line() } return o if (is_target()) { Send %A_ThisHotkey% } else { if (get_pre_key() = 1) { other_window() } else { Send %A_ThisHotkey% } } return ^o if (is_target() = 1) { Send %A_ThisHotkey% } else { ; open_line() toggle_input_method() } return ^p if (is_target()) { Send %A_ThisHotkey% } else { if (get_pre_key() = 1) { mark_page() } else { previous_line() } } return ^q if (is_target()) { Send %A_ThisHotkey% } else { quote_insert() } return ^r if (is_target()) { Send %A_ThisHotkey% } else { isearch_backward() } return ^s if (is_target()) { Send %A_ThisHotkey% } else { if (get_pre_key() = 1) { save_buffer() } else { isearch_forward() } } return u if (is_target()) { Send %A_ThisHotkey% } else { if (get_pre_key() = 1) { undo() } else { Send %A_ThisHotkey% } } return v if (is_target()) { Send %A_ThisHotkey% } else { if (get_pre_key() = 2) { scroll_up() } else { Send %A_ThisHotkey% } } return ^v if (is_target()) { Send %A_ThisHotkey% } else { scroll_down() } return !v if (is_target()) { Send %A_ThisHotkey% } else { scroll_up() } return w if (is_target()) { Send %A_ThisHotkey% } else { if (get_pre_key() = 2) { kill_ring_save() } else { Send %A_ThisHotkey% } } return ^w if (is_target()) { Send %A_ThisHotkey% } else { if (get_pre_key() = 1) { write_file() } else { kill_region() } } return !w if (is_target()) { Send %A_ThisHotkey% } else { kill_ring_save() } return ^x if (is_target()) { Send %A_ThisHotkey% } else { is_c_x = 1 } return ^y if (is_target()) { Send %A_ThisHotkey% } else { yank() } return ^z if (is_target()) { Send %A_ThisHotkey% } else { undo() } return ;; for Excel ^Enter if (is_target()) { Send {CtrlDown}{Enter}{CtrlUp} } else { if (WinActive("ahk_class XLMAIN")) { ; Microsoft Excel Send {F2} } else { Send {CtrlDown}{Enter}{CtrlUp} } } return 変更履歴 2012/09/15 C-q(quote-insert)をサポートした。 2012/09/16 C-z(undo)をサポートした。 2012/09/17 キーボードの取りこぼしをコマンドディレイを 0ms にすることで対応した。 2012/09/20 is_target() 関数のリータンの返し方に不具合があったのを修正した。 2012/10/01 other_windows() が正しく動かなかったので、KeyDelay を入れた。 2012/11/01 C-q の対応コマンドを quote_insert として動作するようにした。 2012/11/02 C-o をIMEの切替の設定とした。 2013/06/27 IfWinActive、IfNotWinActiveによる判定を、ifとWinActive関数で置き換えた。 2013/07/28 無効とするアプリケーションソフトに xyzzy を追加した。 2013/07/28 input method の切り替えだけができる設定の仕組みを追加した。 2013/08/19 Sakura Editor のみ C-l に対応した。
https://w.atwiki.jp/rouga/pages/6.html
Emacsen and others note. 常用のEditerであるNTEmacs xyzzyの備忘録です。 Emacsen and others note. NTEmacs xyzzy Meadow GIMP2 for Windows NTEmacs Matsutan氏のページよりBinaryで入手。 Matsutan氏による半透明化パッチが当ててあり、なんだかおもしろい。 .emacs に(setq w32-transparency-alpha n%)と記述することでn%でのWindow透過ができる。 また、日本語FontにIPAフォント使用。 独立行政法人情報処理推進機構・・・ですか。 なかなか面白いことをやっているところがあるもんですね。 また、C#用にcsharp-mode.el導入。 C#のコーディングにしか使っていなかったから気がつかなかった(ろくにコメント記述せずにコーディングしてるから^^;)けど、ぱくってきた.emacsだと日本語フォントが盛大にずれる。 これ直すの大変そうだな・・・。 xyzzy Windows向けのEmacsのようなエディタ。 何にしろEmacsのくそ重さはどうにもならず、自宅で使っているPC(Athlon64)ほど力のない事務所で使っているPCでは仕事にならないので導入。 初期状態でC#-Modeを持っていて結構便利。 もう一つ特筆できるのがEmacs同様Buffer内にShellを扱うことができること。 Emacsを使ったことがないとなんだそりゃ、な話だが、要はメモ帳の表示を使ってコマンドプロンプトが表示 操作できる。 C#の勉強にベータ版のVisualC#2005Expressも導入しているが、いきなり統合環境からだと便利すぎて言語そのものがわけわからん状態になるのでコマンドラインからのコンパイラを使うことが多い。 cmd.exeからnotepad hogehoge.csとしてコードを扱うのもよいが、インデントやらマークアップやらが使用できないのはやはりつらい。 正規表現での検索機能などもあり、使い込むととても便利そうである。 Meadow Windows上のEmacs実装の一つ。 細かいことは解説ページに任すが、日本語TrueTypeFontの利用、BDFの利用が標準で添付される.emacsで設定できる。 ダウンロードはこちら。 またMeadowについてのWikiもあり、こちらから様々な情報にアクセスできる。 Emacsの仲間の割には苦労することもなくセットアップできるので特別書くことはあまりない(笑 GIMP2 for Windows ここのページの画像処理をするために導入した有名なフリー画像処理アプリケーション。 WindowsXPsp2だとScript-Fu.exeがクラッシュするためこちらより修正済みScript-Fu.exeと入れ替え。
https://w.atwiki.jp/biboroku2007/pages/10.html
Coffeecup Editor (Linux 上では最良の PHP 用 IDE) PHP エディタ (英語) HTML/PHP エディタ Quanta (英語) HTML/PHP エディタ Blue Fish (英語) Megsonia PHPどうやって開発してる?という基本的な問題を今更悩み、一通り使ってみて一段落したので大まかにまとめてみた。 Type A 開発環境:秀丸(PHPエディタもしくは同等のフリーのエディタ) テスト環境:Windows Type B 開発環境:Eclipse(もしくはZendStudio) テスト環境:Windows Type C 開発環境:vi(vim, nvi, elvis) テスト環境:UNIX Type D 開発環境:emacs php-mode テスト環境:UNIX http //bluestar.s32.xrea.com/text/php-mode.php emacs php-mode http //p0t.jp/mt/archives/2005/12/phpmode.html emacs php-mode http //www.ofug.net/~hachiman/wiliki/wiliki.cgi?php-mode emacs php-mode http //blog.koshigoe.jp/archives/2006/08/emacs_3.html emacs php-mode http //www.kiske.info/blog/archives/2006/05/emacs.html http //www.magic.mediawars.ne.jp/tips/emacs_key.html emacsコマンド一覧 tar xzf php-mode-1.2.0.tgz
https://w.atwiki.jp/kenichiro/pages/60.html
.emacs (if window-system (menu-bar-mode 1) (menu-bar-mode -1)) ;;; 初期フレームの設定 (setq initial-frame-alist (append ((top . 22) ; フレームの Y 位置(ピクセル数) (left . 600) ; フレームの X 位置(ピクセル数) (width . 81) ; フレーム幅(文字数) (height . 50)) ; フレーム高(文字数) initial-frame-alist)) ;;;背景色などの設定 (if window-system (progn ;; 文字の色を設定します。 (add-to-list default-frame-alist (foreground-color . "green")) ;; 背景色を設定します。 (add-to-list default-frame-alist (background-color . "black")) )) ;;;言語の設定 (set-language-environment "Japanese") (set-default-coding-systems utf-8) (set-terminal-coding-system utf-8) ;;; ホイールマウス (mouse-wheel-mode t) (setq mouse-wheel-follow-mouse t) ;;; 対応する括弧を光らせる。 (show-paren-mode 1) ;;; リージョンを光らせる (setq transient-mark-mode t) ;;; バックアップファイルを作らない (setq backup-inhibited t) ;;;モードライン設定 (set-face-background modeline "black") ; モードラインの文字を色換え (set-face-foreground modeline "gray75") ; モードラインの背景を色換え ;;erlangの設定 (setq load-path (cons "/usr/lib/erlang/lib/tools-2.6.2/emacs/" load-path)) (setq erlang-root-dir "/usr/lib/erlang") (setq exec-path (cons "/usr/lib/erlang/bin" exec-path)) (require erlang-start) ;;Mewの設定 (autoload mew "mew" nil t) (autoload mew-send "mew" nil t) (if (boundp read-mail-command) (setq read-mail-command mew)) (autoload mew-user-agent-compose "mew" nil t) (if (boundp mail-user-agent) (setq mail-user-agent mew-user-agent)) (if (fboundp define-mail-user-agent) (define-mail-user-agent mew-user-agent mew-user-agent-compose mew-draft-send-message mew-draft-kill mew-send-hook))
https://w.atwiki.jp/oxon/pages/20.html
Carbon Emacs Last Updated 2006-12-14
https://w.atwiki.jp/wiki6_takt/pages/57.html
;; .emacs ;; WEB+DB40 ;;;; -*- mode lisp-interaction; syntax elisp; coding utf-8-unix -*- ;; ~/elisp をライブラリパスに追加 (setq load-path (append (list (expand-file-name "~/elisp/") ) load-path)) ;; locale (UTF-8) (set-language-environment "Japanese") (set-terminal-coding-system utf-8) (set-keyboard-coding-system utf-8) (set-buffer-file-coding-system utf-8) (setq default-buffer-file-coding-system utf-8) ;; フォントロックモード (強調表示等) を有効にする (global-font-lock-mode t) ;; 一時マークモードの自動有効化 (setq-default transient-mark-mode t) ;; C-x C-u が何もしないように変更する (undo の typo 時誤動作防止) (global-unset-key "\C-x\C-u") ;; 括弧の対応をハイライト. (show-paren-mode 1) ;; バッファ末尾に余計な改行コードを防ぐための設定 (setq next-line-add-newlines nil) ;; default to better frame titles (setq frame-title-format (concat "%b - emacs@" system-name)) ;; C-x l で goto-line を実行 (define-key ctl-x-map "l" goto-line) ;; 時間を表示 (display-time) ;; 列数表示 (column-number-mode 1) ;; メニューバーを消す (menu-bar-mode -1) ;; C-h でカーソルの左にある文字を消す (define-key global-map "\C-h" delete-backward-char) ;; C-h に割り当てられている関数 help-command を C-x C-h に割り当てる (define-key global-map "\C-x\C-h" help-command) ;; C-o に動的略語展開機能を割り当てる (define-key global-map "\C-o" dabbrev-expand) ;; 大文字小文字を区別 (setq dabbrev-case-fold-search nil) ;; 日本語・英語混じり文での区切判定 ;; http //www.alles.or.jp/~torutk/oojava/meadow/Meadow210Install.html (defadvice dabbrev-expand (around modify-regexp-for-japanese activate compile) "Modify `dabbrev-abbrev-char-regexp dynamically for Japanese words." (if (bobp) ad-do-it (let ((dabbrev-abbrev-char-regexp (let ((c (char-category-set (char-before)))) (cond ((aref c ?a) "[-_A-Za-z0-9]") ; ASCII ((aref c ?j) ; Japanese (cond ((aref c ?K) "\\cK") ; katakana ((aref c ?A) "\\cA") ; 2byte alphanumeric ((aref c ?H) "\\cH") ; hiragana ((aref c ?C) "\\cC") ; kanji (t "\\cj"))) ((aref c ?k) "\\ck") ; hankaku-kana ((aref c ?r) "\\cr") ; Japanese roman ? (t dabbrev-abbrev-char-regexp))))) ad-do-it))) ;; BS で選択範囲を消す (delete-selection-mode 1) ;; The local variables list in .emacs と言われるのを抑止 (add-to-list ignored-local-variables syntax) ;; ruby-mode の設定 (autoload ruby-mode "ruby-mode" "Mode for editing ruby source files" t) (setq auto-mode-alist (append (("\\.rb$" . ruby-mode)) auto-mode-alist)) (setq interpreter-mode-alist (append (("ruby" . ruby-mode)) interpreter-mode-alist)) (autoload run-ruby "inf-ruby" "Run an inferior Ruby process") (autoload inf-ruby-keys "inf-ruby" "Set local key defs for inf-ruby in ruby-mode") (add-hook ruby-mode-hook (lambda () (inf-ruby-keys))) ;; cperl-mode の設定 (autoload perl-mode "cperl-mode" "alternate mode for editing Perl programs" t) (setq cperl-auto-newline t) (setq cperl-indent-parens-as-block t) (setq cperl-close-paren-offset -4) (setq cperl-indent-level 4) (setq cperl-label-offset -4) (setq cperl-continued-statement-offset 4) (setq cperl-highlight-variables-indiscriminately t) (add-hook cperl-mode-hook (lambda () (set-face-italic-p cperl-hash-face nil))) (add-hook cperl-mode-hook (lambda () (define-key cperl-mode-map "\C-cc" cperl-check-syntax) (setq indent-tabs-mode nil))) ;; リセットされた場合に UTF-8 に戻す ;; http //0xcc.net/blog/archives/000041.html (set-default-coding-systems utf-8)