From: Reini U. <ru...@x-...> - 2001-08-28 10:42:25
|
XEmacs 21.2-b37 "Pan" configured for `i586-pc-win32'. 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)))))) |