Visualizzazione dei risultati da 1 a 9 su 9

Discussione: emacs c/c++

  1. #1

    emacs c/c++

    Ciao a tutti

    ho utilizzato per molto tempo emacs per scrivere file .tex (latex)
    non volendo cambiare editor vorrei usare ancora emacs per editare sorgenti .c .

    ho provato kate e ho notato che ha una funzionalità carina quella di completare le function che scrivo o qualunque altra cosa che può completare.

    In poche parole ho bisogno di un completamento di parole nel documento.

    Non riesco proprio ad impostare questa cosa con emacs. Voi sapete aiutarmi?
    grazie
    ciao
    LE DONNE:
    COME E' POSSIBILE SPERARE DI CAPIRLE SE LORO STESSE NON RIESCONO A FARLO?

  2. #2
    Anchio vorrei sapere come aggiungere questa funzionalità ad emacs.

  3. #3

  4. #4
    buongiorno,

    grazie per avere trovato qualche cosa..

    io utilizzo debian e facendo una ricerca ho scoperto che quel pacchetto è incluso nei repository!

    sudo apt-cache search cedet
    cedet-common - Collection of Emacs Development Environment Tools - common parts
    cedet-contrib - Collection of Emacs Development Environment Tools - contributed
    cogre - Connected Graph Editor
    ede - File manager / Makefile generator for Emacsen
    eieio - Enhanced Implementation of Emacs Interpreted Objects
    semantic - Parser Infrastructure for Emacsen
    speedbar - Everything browser, or Dired on steroids

    ho installato semantic e cedet-common che mi ha installato altre dipendenze..
    ma non ho capito come fare ad usarle con emacs?
    lei ci è riuscito?

    grazie e arrivederci
    LE DONNE:
    COME E' POSSIBILE SPERARE DI CAPIRLE SE LORO STESSE NON RIESCONO A FARLO?

  5. #5
    Da emacs:
    M-x global-semantic-parse-mode

    e attivi la modalità di parsing.
    Poi ci sono altre modalità; guarda il sito da me indicato.


  6. #6
    ciao,

    ho provato a fare come dici:
    M-x global-semantic-parse-mode
    ma emacs dice che non esiste in cambio ho questi:

    Possible completions are:
    global-semantic-decoration-mode global-semantic-folding-mode
    global-semantic-highlight-edits-mode
    global-semantic-idle-scheduler-mode
    global-semantic-mru-bookmark-mode global-semantic-show-parser-state-mode
    global-semantic-show-unmatched-syntax-mode
    global-semantic-stickyfunc-mode global-semantic-tag-folding-mode
    global-semanticdb-minor-mode

    ho installato cedet e ho installato anche ecb.
    ho provato a digitare

    M-x semantic-complete-analyze-inline

    come dice il sito che mi hai dato ma purtroppo emacs mi risponde
    semantic-analyze-current-context: Wrong type argument: syntax-table-p, nil

    che significa??

    ciao a tutti
    LE DONNE:
    COME E' POSSIBILE SPERARE DI CAPIRLE SE LORO STESSE NON RIESCONO A FARLO?

  7. #7
    Prova così, con me ha funzionato:
    codice:
    M-x semantic-idle-completions-mode

  8. #8
    buongiorno,

    ma te hai debian sid? oppure hai scaricato il programma dal sito e poi l'hai installato su emacs?
    quel comando che hai detto non ce l'ho..
    PS: mi potresti fare vedere il tuo .emacs?

    ciao e grazie ancora che continui a rispondermi
    LE DONNE:
    COME E' POSSIBILE SPERARE DI CAPIRLE SE LORO STESSE NON RIESCONO A FARLO?

  9. #9
    Originariamente inviato da jaso
    buongiorno,

    ma te hai debian sid? oppure hai scaricato il programma dal sito e poi l'hai installato su emacs?
    quel comando che hai detto non ce l'ho..
    PS: mi potresti fare vedere il tuo .emacs?

    ciao e grazie ancora che continui a rispondermi
    Io ho debian etch.
    Tutto via apt.
    Non so' che dirti, a me va.
    Ho anche il comando:
    global-semantic-idle-completions-mode

    Il mio .emacs è quello standard non l'ho modificato
    Eccolo comunque:
    codice:
      1 (custom-set-variables
      2   ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
      3   ;; Your init file should contain only one such instance.
      4  '(case-fold-search t)
      5  '(current-language-environment "UTF-8")
      6  '(default-input-method "rfc1345")
      7  '(global-font-lock-mode t nil (font-lock))
      8  '(show-paren-mode t nil (paren))
      9  '(standard-indent 3)
     10  '(transient-mark-mode t))
     11 (custom-set-faces
     12   ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
     13   ;; Your init file should contain only one such instance.
     14  )
     15
     16 ;;----------------------Modified by XXXXX XXXXXXXX-------------------------
     17 (setq tab-width 3)
     18 ;; (define-key c-mode-map "\C-m" -newline-and-indent)

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.