# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
github.setup emacs-php php-mode 1.21.4 v
checksums rmd160 5a6629aa7429095126b7d0fe6663642bf01a9267 \
sha256 906374f4c72c96042ff62235f61e109d98122f0d5912775ac3a2bc0485261e11 \
maintainers {ryandesign @ryandesign} openmaintainer
description PHP mode for Emacs
long_description An Emacs major mode for editing PHP code. \
Features: Syntax coloring and indenting\; \
Documentation browse and search functions\; \
Support for Imenu and SpeedBar\; \
# We want emacs from MacPorts since this will install stuff in emacs' site-lisp and we want
# it to go into ${prefix}'s site-lisp.
depends_lib path:bin/emacs:emacs
system -W ${worksrcpath} "emacs --batch --eval \
'(progn (setq load-path (cons \".\" load-path)) \
(byte-compile-file \"php-mode.el\"))'"
set site_lisp ${prefix}/share/emacs/site-lisp
xinstall -d ${destroot}${site_lisp}
xinstall -W ${worksrcpath} php-mode.el php-mode.elc ${destroot}${site_lisp}
To use this, put the following into your ~/.emacs:
(cons '(\"\\\\.php\\\\w?\" . php-mode) auto-mode-alist))
(autoload 'php-mode \"php-mode\" \"PHP mode.\" t)