Re: Estensione Emacs
On Fri, 08 Oct 2004, Francesco wrote:
[...]
> Infatti la funzione non si chiama php-html-helper-mode bensi`
> html-helper-mode! Se pero` provo a entrare nella modalita`
> html-helper-mode a mano funziona.
> 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.
`----
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)
--
a bocca aperta lo seguirono
Reply to: