From: Steve W. <sw...@pa...> - 2001-08-27 22:56:41
|
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)))))) > > > Jeff Dairiki schrieb: > > > > > Will do... Postgresql is good; I created "frontpage" and it's different > > > from FrontPage in the pagename column. I'll check mSQL next week. > > > > Thanks! > > > > > 1. Write the abstract base class (the interface definition) > > > 2. Write a class that uses DB and extends the base class > > > 3. Integrate that into the code base (basically, search and replace all > > > database calls) > > > 4. Test, test, test. > > > > Okay, I'll work on it now. (I promise.) I hope to have something > > basically working by the end of the week. > > > > > The reason I stopped working on the abstract base class (aside from being > > > in Florida ;-) was I couldn't get Emacs to format the code according to > > > PEAR. I posted a question to gnu.emacs.help and got no answer, which is > > > odd. > > > > I've recently been using: > > <?php > > // Local Variables: > > // mode: php > > // eval: (c-set-style "cc-mode") > > // End: > > ?> > > Which seems to work. It's a bit of a pain, since emacs now asks if you > > really want to eval the elisp code each time you load the file. > > use the hook instead. eval in user docs is evil! > -- > Reini Urban > http://xarch.tu-graz.ac.at/home/rurban/ > > _______________________________________________ > 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 |