From: Reini U. <ru...@x-...> - 2001-08-27 21:27:21
|
(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/ |