|
From: Steve W. <sw...@pa...> - 2001-08-28 15:24:11
|
On Tue, 28 Aug 2001, Reini Urban wrote:
> XEmacs 21.2-b37 "Pan" configured for `i586-pc-win32'.
Heathen!! ;-)
I tried this .emacs file on netbsd and red hat linux, and it flat out does
not work. So something is missing either from php-mode-099 or the .emacs
file.
;; snip....
(setq load-path (append load-path (list "~swain/.elisp")))
(load-library "php-mode-099")
(defun php-mode-hook ()
(setq tab-width 4
c-basic-offset 4
c-hanging-comment-ender-p nil
indent-tabs-mode
(not
(and (string-match "/\\(PEAR\\|pear\\)/" (buffer-file-name))
(string-match "\.php$" (buffer-file-name))
(string-match "\.phtml$" (buffer-file-name))))))
;; end file
I'm using php-mode-099 from Sourceforge (http://php-mode.sourceforge.net).
I was previously using a php-mode from a guy at the ACM. There is a
php-mode-pear-hook in php-mode-099 but my Emacs knowledge is not good
enough to figure out how to run it...
~swain
>
> php-mode: C-h a c-basic-offset
>
> `c-basic-offset' (buffer: *Hyper Apropos*, mode: Hyper-Apropos)
> Customizable user variable:
> value: 2
> *Amount of basic offset used by + and - symbols in `c-offsets-alist'.
>
> Property-list:
> custom-requests: nil
> custom-type: integer
> standard-value: (4)
> saved-variable-comment: nil
> theme-value: ((user set 4))
> saved-value: (4)
>
>
> Steve Wainstead schrieb:
> > Right, this is on the PEAR page, but I put it in my .emacs and it didn't
> > work. Which is to say, I open a php file and c-basic-offset is 3 locally
> > and 2 globally, indent-tabs-mode is t, and so on. I'll try it again later
> > tonight.
> >
> > ~swain
> >
> > On Mon, 27 Aug 2001, Reini Urban wrote:
> >
> > > (defun php-mode-hook ()
> > > (setq tab-width 4
> > > c-basic-offset 4
> > > c-hanging-comment-ender-p nil
> > > indent-tabs-mode
> > > (not
> > > (and (string-match "/\\(PEAR\\|pear\\)/" (buffer-file-name))
> > > (string-match "\.php$" (buffer-file-name))
> > > (string-match "\.phtml$" (buffer-file-name))))))
>
> _______________________________________________
> Phpwiki-talk mailing list
> Php...@li...
> http://lists.sourceforge.net/lists/listinfo/phpwiki-talk
>
---
http://www.panix.com/~swain/
"Without music to decorate it, time is just a bunch of boring
production deadlines or dates by which bills must be paid."
-- Frank Zappa
http://pgp.document_type.org:11371/pks/lookup?op=get&search=0xF7323BAC
|