From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miguel Ulloa Newsgroups: gmane.emacs.help Subject: PHP syntax highlighting (editing .emacs to look for php-mode.el. from within ~ directory.) Date: Sat, 12 Apr 2003 19:28:31 GMT Organization: Road Runner - NYC Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1050175939 7319 80.91.224.249 (12 Apr 2003 19:32:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 12 Apr 2003 19:32:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 12 21:32:18 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 194Qik-0001qj-00 for ; Sat, 12 Apr 2003 21:31:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 194QiO-00020w-09 for gnu-help-gnu-emacs@m.gmane.org; Sat, 12 Apr 2003 15:31:04 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!news-west.rr.com!news-server.columbus.rr.com!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!53ab2750!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en, es-pe, es-es, de-de Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 24.90.28.181 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.nyc.rr.com 1050175711 24.90.28.181 (Sat, 12 Apr 2003 15:28:31 EDT) Original-NNTP-Posting-Date: Sat, 12 Apr 2003 15:28:31 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:111919 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8419 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8419 OS: Solaris (Sun Microsystems Inc. SunOS 5.8) I have a restricted account given to me by school. Emacs Version: GNU Emacs 20.6.1 I would like to enable syntax highlighting for PHP. http://www.miba.auc.dk/net-common/guides/emacs/config.php suggests: If you program in PHP you will probably need php-mode. It can be turned on automatically when you load a .php or .php3 file with the following code to include in your .emacs: (require 'php-mode) (setq auto-mode-alist (append '(("\\.php$" . php-mode) ("\\.php3$" . php-mode)) auto-mode-alist)) This however requires access to /bin/emacs/emacs-21.2/lisp/progmodes to install php-mode.el. I do not have such access. I was wondering if anybody knows how could I edit .emacs to look for my php-mode.el. from within my home directory. Thanks in advance, Miguel Ulloa p.s. You can download php-mode.el from http://sourceforge.net/projects/php-mode/ I tested it under Windows and Slackware Linux. It works ^_^…