From: Steve W. <wai...@us...> - 2001-06-22 21:35:46
|
Update of /cvsroot/phpwiki/phpwiki In directory usw-pr-cvs1:/tmp/cvs-serv1926 Modified Files: README.coding Log Message: Added bit about Emacs mode, where to get it, how to add it to your .emacs file, and a request for Vim info. Index: README.coding =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/README.coding,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** README.coding 2001/05/31 17:35:32 1.1 --- README.coding 2001/06/22 21:35:44 1.2 *************** *** 19,20 **** --- 19,41 ---- BAD: define("MES", "howdy"); gettext(MES); + For editing files in Emacs, set indent-tabs-mode to nil. Some people + argue that it's better to use tabs and let people set their tab width, + but I think we're better off using just spaces because aligned + comments in the right region will not align correctly. + + Use php-mode as well. This is freely available on the net + (http://sourceforge.net/projects/php-mode/). Put something like this + in your .emacs file: + + (load "your-path-to-lisp-files/php-mode") + (setq auto-mode-alist + (append '( + ("\\.php\\d?\\'" . php-mode)) auto-mode-alist)) + + so when you open .php files in Emacs it will start PHP mode + automatically. + + I'm sure Vim has a similar mode, if someone would let us know I'll add + it to this README. + + Steve Wainstead \ No newline at end of file |