2013-06-09 22 views

risposta

5

Questo è quello che ho fatto (grazie a Alex Ott per il link):

  1. Install ctags esuberanti via Emacs gestore di pacchetti
  2. Installare ctags
  3. creare un file .ctags nella directory principale del progetto (here è il link al Gist originale):

    --langdef=CoffeeScript 
    --langmap=CoffeeScript:.coffee 
    --regex-CoffeeScript=/(^|=[ \t])*class ([A-Za-z.]+)(extends [A-Za-z.]+)?$/\2/c,class/ 
    --regex-CoffeeScript=/^[ \t]*@?([A-Za-z.]+):.*[-=]>.*$/\1/f,function/ 
    --regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=.*[-=]>.*$/\1/f,function/ 
    --regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/ 
    
  4. Generare il file TAGS: ctags -e -R source_folder

+0

ctags non ha l'opzione '-e' sul mio VM. Prova 'etas -R source_folder' nel caso in cui tu non lo faccia neanche. – cyc115