メモとまとめ。Slackware Linux 15.0 でやったこと。途中からWinネタも混ざってる。

PHPの練習
https://seesaawiki.jp/lifewithslackzaurus_15_0/d/H...
で、PHPに慣れたらVSCodeからEmacsに戻るかと思ったが、さすがにモノクロ画面では不便
すぎる。がしかしEmacsのバッファやDiredはやっぱり捨てがたい。
php-modeを入れてみる事にした。

emacs php-mode、でググった:
Emacs PHP Modeユーザーマニュアル (Draft)
https://qiita.com/tadsan/items/a76768439869f00a4e8...

手動インストールを実行する事にした。
Win10& git clone https://github.com/emacs-php/php-mode
Win10& cd php-mode
Win10$ make
ここでmakeが無いときた。先に下を実行した。
https://seesaawiki.jp/lifewithslackzaurus_15_0/d/I...
Win10$ make
make: TMPDIR 値 /dev/shm/tmp/: No such file or directory
make: デフォルト一時ディレクトリ '/tmp' を使用します
emacs --batch -L lisp/ --eval \
\"(let \(\(user-emacs-directory default-directory)) \
\ (require 'package) \
\ (package-generate-autoloads \"php-mode\" (expand-file-name \"lisp\")))"
\ INFO Scraping files for php-mode-autoloads.el...
\ INFO Scraping files for php-mode-autoloads.el...61%
\ INFO Scraping files for php-mode-autoloads.el...done
emacs --batch -L lisp/ -f batch-byte-compile lisp/php.el
emacs --batch -L lisp/ -f batch-byte-compile lisp/php-align.el
emacs --batch -L lisp/ -f batch-byte-compile lisp/php-complete.el
emacs --batch -L lisp/ -f batch-byte-compile lisp/php-defs.el
emacs --batch -L lisp/ -f batch-byte-compile lisp/php-face.el
emacs --batch -L lisp/ -f batch-byte-compile lisp/php-flymake.el
emacs --batch -L lisp/ -f batch-byte-compile lisp/php-format.el
emacs --batch -L lisp/ -f batch-byte-compile lisp/php-ide-phpactor.el
emacs --batch -L lisp/ -f batch-byte-compile lisp/php-ide.el
emacs --batch -L lisp/ -f batch-byte-compile lisp/php-local-manual.el
emacs --batch -L lisp/ -f batch-byte-compile lisp/php-mode-debug.el
emacs --batch -L lisp/ -f batch-byte-compile lisp/php-mode.el
emacs --batch -L lisp/ -f batch-byte-compile lisp/php-project.el
Generating AUTHORS.md file...FINISHED
Win10$ mkdir /usr/share/emacs/php-mode
Win10$ cp -a -i lisp/* /usr/share/emacs/php-mode/

同様に、Slack(Linux)の方も実行した。
$ cd php-mode
$ LANG=C LC_ALL=POSIX make clean
rm -f lisp/php.elc lisp/php-align.elc lisp/php-complete.elc lisp/php-defs.elc lisp/php-face.elc lisp/php-flymake.elc lisp/php-format.elc lisp/php-ide-phpactor.elc lisp/php-ide.elc lisp/php-local-manual.elc lisp/php-mode-debug.elc lisp/php-mode.elc lisp/php-project.elc php-mode-autoloads.el
$ LANG=C LC_ALL=POSIX make
(ログはCygwin64と同じだった)
$ sudo mkdir /usr/share/emacs/php-mode
$ sudo cp -a -i lisp/* /usr/share/emacs/php-mode/

まあまあ、使えそう。
カスタマイズはそのうちやろう。

\

Menu

メニューサンプル1

メニューサンプル2

開くメニュー

閉じるメニュー

  • アイテム
  • アイテム
  • アイテム
【メニュー編集】

管理人/副管理人のみ編集できます