pkd wrote:
Dove si associano le modalita` ai file?,----[ C-h v auto-mode-alist RET ] | `auto-mode-alist' is a variable declared in Lisp. [...]| | Documentation:| Alist of filename patterns vs. corresponding major mode functions. | Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL). | (NON-NIL stands for anything that is not nil; the value does not matter.) | Visiting a file whose name matches REGEXP specifies FUNCTION as the | mode function to use. FUNCTION will be called, unless it is nil.| | If the element has the form (REGEXP FUNCTION NON-NIL), then after| calling FUNCTION (if it's not nil), we delete the suffix that matched | REGEXP and search the list again for another match. `----
D'accordo, ho capito, ma ora come faccio a modificare la lista?
esempio: (add-to-list 'auto-mode-alist '("\\.php$" . html-helper-mode)))
dovrebbe essere necessario caricare la lib (o almeno prevedere l'auto-load
della funzione)
Grazie,
Francesco
--
Boto - GNU/Linux User - boto.nelweb.it
Registered at http://counter.li.org - #340148
Debian GNU/Linux (testing) - Kernel 2.6.3
Ion2 - Emacs - Mozilla Firefox e Thunderbird
--- La semplicita` e` la vera grandezza ---
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Natsabe.it la più grande erboristeria online italiana
* prezzi bassi tutto l'anno !
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1298&d=9-10