Skip to content

Commit a730978

Browse files
committed
Replace Manual installation to wiki page
1 parent 100eb59 commit a730978

File tree

2 files changed

+4
-111
lines changed

2 files changed

+4
-111
lines changed

README.ja.md

+2-55
Original file line numberDiff line numberDiff line change
@@ -36,55 +36,7 @@ PHP Modeは[いくつかのOSが提供するパッケージシステム][php-mod
3636

3737
### 手動でインストール
3838

39-
このプロジェクトを `git cline` または、[php-mode releases]からzip/tarアーカイブをダウンロードして展開してください。
40-
41-
#### A: `(load php-mode-autoloads.el)` *(推奨)*
42-
43-
これはパッケージマネージャを利用した場合と同等のパフォーマンスと使いやすさを両立した初期化方法です。
44-
45-
ダウンロードしたコードを展開したディレクトリに移動し、`make`コマンドを実行すると、バイトコンパイルおよび `php-mode-autoloads.el` を生成できます。 `init.el`からファイルをロードするだけで使用準備は完了です。
46-
47-
```el
48-
;; Put follow code into init.el
49-
(when (file-directory-p "~/path/to/php-mode")
50-
(load "~/path/to/php-mode/php-mode-autoloads.el"))
51-
52-
;; Any code below is *unnecessary*
53-
;; (require 'php-mode)
54-
;; (add-to-list 'load-path (expand-file-name "~/path/to/php-mode"))
55-
;; (add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode))
56-
```
57-
58-
#### **B**: `(autoload 'php-mode)`
59-
60-
Emacs起動時の僅かな読み込み増加をも削減したい上級ユーザー向けです。
61-
62-
この場合も `make`でバイトコンパイルしておくことを推奨します。
63-
64-
```el
65-
;; Put follow code into init.el
66-
(autoload 'php-mode (expand-file-name "~/path/to/php-mode/php-mode") "\
67-
Major mode for editing PHP code.
68-
69-
\\{php-mode-map}
70-
71-
\(fn)" t nil)
72-
73-
(add-to-list 'auto-mode-alist '("\\.\\(?:php\\|phtml\\)\\'" . php-mode))
74-
75-
;; Any code below is *unnecessary*
76-
;; (add-to-list 'load-path (expand-file-name "~/path/to/php-mode"))
77-
;; (require 'php-mode)
78-
```
79-
80-
#### **C**: `(require 'php-mode)` *(非推奨)*
81-
82-
特定のパスから`php-mode`を同期的に読み込みます。 **A**の場合と比べて10倍のサイズのコードを読み込むことになり、起動時間の増加幅はCPUとファイスシステムのパフォーマンスに依存します。
83-
84-
```el
85-
(require 'php-mode "~/path/to/php-mode/php-mode")
86-
(add-to-list 'load-path (expand-file-name "~/path/to/php-mode"))
87-
```
39+
もしパッケージマネージャに依存したくなければ、伝統的な方法によってLispファイルを直接インストールすることもできます。詳細なセットアップ方法は[手動でのインストール][wiki-manual-installation-ja]ページをご覧ください。
8840

8941
バグを報告する
9042
--------------
@@ -300,10 +252,6 @@ GNU Emacsには[Subword Mode][]という機能があり、このマイナーモ
300252

301253
キーバインド `C-c C-w` はSubword Modeのオンとオフを切り替えます。
302254

303-
### Amakaサポート
304-
305-
Viewing and editing build scripts for [Amaka](http://trashofmasters.github.io/amaka/) will automatically enable PHP Mode.
306-
307255
### 現在のclass/namespaceを挿入する
308256

309257
```el
@@ -383,7 +331,6 @@ PHP Modeは[GNU General Public License Version 3][gpl-v3] (GPLv3) でライセ
383331
[Contributors]: https://github.com/emacs-php/php-mode/graphs/contributors
384332
[MELPA Stable]: https://stable.melpa.org/
385333
[MELPA]: https://melpa.org/
386-
[Marmalade]: http://marmalade-repo.org/
387334
[Subword Mode]: https://www.gnu.org/software/emacs/manual/html_node/ccmode/Subword-Movement.html
388335
[Supported Version]: https://github.com/emacs-php/php-mode/wiki/Supported-Version
389336
[Web Mode]: http://web-mode.org/
@@ -398,8 +345,8 @@ PHP Modeは[GNU General Public License Version 3][gpl-v3] (GPLv3) でライセ
398345
[package]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Packages.html
399346
[php-elisp-stretch]: https://packages.debian.org/stretch/php-elisp
400347
[php-elisp-ubuntu1810]: https://packages.ubuntu.com/cosmic/php-elisp
401-
[php-mode releases]: https://github.com/emacs-php/php-mode/releases
402348
[php-mode-packages]: https://repology.org/project/emacs:php-mode/versions
403349
[php-mode]: https://github.com/emacs-php/php-mode
404350
[php-suite]: https://github.com/emacs-php/php-suite
405351
[wiki]: https://github.com/emacs-php/php-mode/wiki
352+
[wiki-manual-installation-ja]: https://github.com/emacs-php/php-mode/wiki/Manual-installation-ja

README.md

+2-56
Original file line numberDiff line numberDiff line change
@@ -38,56 +38,7 @@ Also, the `php-elisp` package provided by [Debian 9 (stretch)][php-elisp-stretch
3838

3939
### Manual installation
4040

41-
Please `git clone` this project or download and unarchive tar or zip file from [php-mode releases].
42-
43-
You can choose one of the following **A**, **B**, **C** installation methods.
44-
45-
#### **A**: `(load php-mode-autoloads.el)` *(RECOMMENDED)*
46-
47-
This is an initialization method that achieves the same performance and ease of use as using a package manager.
48-
49-
By moving the downloaded file to the extracted path of the current directory and executing the `make` command, byte compilation and `php-mode-autoloads.el` is generated. Just load the file from `init.el` and you are ready to use.
50-
51-
```el
52-
;; Put follow code into init.el
53-
(when (file-directory-p "~/path/to/php-mode")
54-
(load "~/path/to/php-mode/php-mode-autoloads.el"))
55-
56-
;; Any code below is *unnecessary*
57-
;; (require 'php-mode)
58-
;; (add-to-list 'load-path (expand-file-name "~/path/to/php-mode"))
59-
;; (add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode))
60-
```
61-
#### **B**: `(autoload 'php-mode)`
62-
63-
This is for advanced users who want to reduce the slight increase in reading when Emacs starts.
64-
65-
Also in this case, it is recommended to byte compile with `make`.
66-
67-
```el
68-
;; Put follow code into init.el
69-
(autoload 'php-mode (expand-file-name "~/path/to/php-mode/php-mode") "\
70-
Major mode for editing PHP code.
71-
72-
\\{php-mode-map}
73-
74-
\(fn)" t nil)
75-
76-
(add-to-list 'auto-mode-alist '("\\.\\(?:php\\|phtml\\)\\'" . php-mode))
77-
78-
;; Any code below is *unnecessary*
79-
;; (add-to-list 'load-path (expand-file-name "~/path/to/php-mode"))
80-
;; (require 'php-mode)
81-
```
82-
83-
#### **C**: `(require 'php-mode)` *(NOT RECOMMENDED)*
84-
85-
Load `php-mode` synchronously from a specific path. It will load 10 times the size of the code compared to method **A**, and how much the startup time will depend on the performance of your machine's CPU and file system.
86-
87-
```el
88-
(require 'php-mode "~/path/to/php-mode/php-mode")
89-
(add-to-list 'load-path (expand-file-name "~/path/to/php-mode"))
90-
```
41+
If you don't want to depend on a package manager, you can install Lisp files directly in the traditional way. See [Manual installation][wiki-manual-installation] for our recommended setup method.
9142

9243
### Configuration
9344

@@ -281,10 +232,6 @@ If you want to always use Subword Mode for PHP files then you can add this to yo
281232

282233
The key-binding `C-c C-w` will also toggle Subword Mode on and off.
283234

284-
### Amaka Support
285-
286-
Viewing and editing build scripts for [Amaka](http://trashofmasters.github.io/amaka/) will automatically enable PHP Mode.
287-
288235
### Insert current class/namespace
289236

290237
```el
@@ -364,7 +311,6 @@ This project was maintained by [Eric James Michael Ritz][@ejmr] until 2017. Curr
364311
[Contributors]: https://github.com/emacs-php/php-mode/graphs/contributors
365312
[MELPA Stable]: https://stable.melpa.org/
366313
[MELPA]: https://melpa.org/
367-
[Marmalade]: http://marmalade-repo.org/
368314
[Subword Mode]: https://www.gnu.org/software/emacs/manual/html_node/ccmode/Subword-Movement.html
369315
[Supported Version]: https://github.com/emacs-php/php-mode/wiki/Supported-Version
370316
[Web Mode]: http://web-mode.org/
@@ -379,8 +325,8 @@ This project was maintained by [Eric James Michael Ritz][@ejmr] until 2017. Curr
379325
[package]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Packages.html
380326
[php-elisp-stretch]: https://packages.debian.org/stretch/php-elisp
381327
[php-elisp-ubuntu1810]: https://packages.ubuntu.com/cosmic/php-elisp
382-
[php-mode releases]: https://github.com/emacs-php/php-mode/releases
383328
[php-mode-packages]: https://repology.org/project/emacs:php-mode/versions
384329
[php-mode]: https://github.com/emacs-php/php-mode
385330
[php-suite]: https://github.com/emacs-php/php-suite
386331
[wiki]: https://github.com/emacs-php/php-mode/wiki
332+
[wiki-manual-installation]: https://github.com/emacs-php/php-mode/wiki/Manual-installation

0 commit comments

Comments
 (0)