help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ECB Configuration


From: Sajid Hussain
Subject: ECB Configuration
Date: Mon, 23 Jul 2012 23:17:15 -0700 (PDT)
User-agent: G2/1.0

Hi Everyone,

I installed cedet-1.1 and ecb-2.40 and put the following configuration code in 
my .emacs file at line # 240

(load-file "~/Downloads/cedet-1.1/common/cedet.el")
(global-ede-mode 1)                      ; Enable the Project management system
(semantic-load-enable-code-helpers)      ; Enable prototype help and smart 
completion 
(global-srecode-minor-mode 1)            ; Enable template insertion menu

(add-to-list 'load-path "~/Downloads/ecb-2.40")
(require 'ecb)

When I start emacs, the following messages pop up. I tried to fix them by 
putting the above lines on the top but it still gives error messages. I have 
pasted below the top fragment of my .emacs file. Could you go through it and 
tell me how to fix the error messages?

Debugger entered--Lisp error: (error "Autoloading failed to define function 
semantic-mode")
  (semantic-mode 1)
  (if (string< emacs-version "23.2") nil (semantic-mode 1) 
(global-semanticdb-minor-mode 1) (global-semantic-idle-scheduler-mode 1) 
(global-semantic-idle-summary-mode 1) bla bla....


My .Emacs file fragment:
++++++++++++++++++++++++

(message "%sStarting up Emacs..." (format-time-string "[%Y-%m-%d %a %T] "))

(defvar my/load-verbose t)

;; uptimes
(when (string-match "XEmacs" (version))
  ;; XEmacs doesn't have `float-time'
  (defun float-time ()
    "Convert `current-time' to a floating point number."
    (multiple-value-bind (s0 s1 s2) (current-time)
      (+ (* (float (ash 1 16)) s0) (float s1) (* 0.0000001 s2)))))

(defconst my/emacs-load-time-start (float-time))

;; Identify what parts of your `.emacs' take so long. You can do
;; this e.g. by starting Emacs with "emacs -q", set up your
;; `load-path', and then evaluate
;;
;; (benchmark-run
;;   (require 'package))
;;
;; The first number appearing in the echo area will be the time needed to run
;; that command.
;;
;; Use autoloads, which delay the loading of the complete package until one of
;; the interactive functions is used.
;;
;; If you want to set options which need to be evaluated after a package is
;; loaded, you can use `eval-after-load'.

;; Load user specific config if we find it
(let* ((file "~/.emacs-pre-init-file")
       (gpg (concat file ".gpg")) ;; to keep secrets secret
       (el (concat file ".el")))
  (cond ((file-readable-p gpg) (load-file gpg))
        ((file-readable-p el) (load-file el))))

(message "* --[ Loading Emacs Config Fni ]--")

;; turn on Common Lisp support
(require 'cl)  ; provides useful things like `loop' and `setf'

;; allow quick include/exclude of setup parts -- DO NOT EDIT the DEFVAR!
(defvar chapter-0-environment t)  ; required
(defvar chapter-0-loading-libraries t)  ; required
(defvar chapter-0-debugging nil)
(defvar chapter-1-screen nil)
(defvar chapter-7-basic nil)
(defvar chapter-8-minibuffer nil)
(defvar chapter-10-help nil)
(defvar chapter-11-mark nil)
(defvar chapter-12-killing nil)
(defvar chapter-13-yanking nil)
(defvar chapter-15-rectangles nil)
(defvar chapter-16-cua-bindings nil)
(defvar chapter-17-registers nil)
(defvar chapter-18-display nil)
(defvar chapter-19-search nil)
(defvar chapter-20-fixit nil)
(defvar chapter-21-keyboard-macros nil)
(defvar chapter-22-files nil)
(defvar chapter-23-buffers nil)
(defvar chapter-24-windows nil)
(defvar chapter-25-frames nil)
(defvar chapter-26-international nil)
(defvar chapter-27-major-modes nil)
(defvar chapter-28-indentation nil)
(defvar chapter-29-text nil)
(defvar chapter-30-programs nil)
(defvar chapter-31-building nil)
(defvar chapter-32-maintaining nil)
(defvar chapter-33-abbrevs nil)
(defvar chapter-37-dired nil)
(defvar chapter-38-calendar-diary nil)
(defvar chapter-39-document-view nil)
(defvar chapter-40-gnus nil)
(defvar chapter-41-shell nil)
(defvar chapter-42-emacs-server nil)
(defvar chapter-43-printing nil)
(defvar chapter-47-sorting nil)
(defvar chapter-48-narrowing nil)
(defvar chapter-51-saving-emacs-sessions nil)
(defvar chapter-54-hyperlinking nil)
(defvar chapter-56-amusements nil)
(defvar chapter-57-customization nil)
(defvar chapter-AppG-ms-dos nil)
(defvar chapter-XX-emacs-display nil)
(defvar chapter-99-debugging nil)

;; EDIT HERE
(setq chapter-0-debugging t)
(setq chapter-1-screen t)
(setq chapter-7-basic t)
(setq chapter-8-minibuffer t)
(setq chapter-10-help t)
(setq chapter-11-mark t)
(setq chapter-12-killing t)
(setq chapter-13-yanking t)
(setq chapter-15-rectangles t)
(setq chapter-16-cua-bindings t)
(setq chapter-17-registers t)
(setq chapter-18-display t)
(setq chapter-19-search t)
(setq chapter-20-fixit t)
(setq chapter-21-keyboard-macros t)
(setq chapter-22-files t)
(setq chapter-23-buffers t)
(setq chapter-24-windows t)
(setq chapter-25-frames t)
(setq chapter-26-international t)
(setq chapter-27-major-modes t)
(setq chapter-28-indentation t)
(setq chapter-29-text t)
(setq chapter-30-programs t)
(setq chapter-31-building t)
(setq chapter-32-maintaining t)
(setq chapter-33-abbrevs t)
(setq chapter-37-dired t)
(setq chapter-38-calendar-diary t)
(setq chapter-39-document-view t)
(setq chapter-40-gnus t)
(setq chapter-41-shell t)
(setq chapter-42-emacs-server t)
(setq chapter-43-printing t)
(setq chapter-47-sorting t)
(setq chapter-48-narrowing t)
(setq chapter-51-saving-emacs-sessions t)
(setq chapter-54-hyperlinking t)
(setq chapter-56-amusements t)
(setq chapter-57-customization t)
(setq chapter-AppG-ms-dos t)
(setq chapter-XX-emacs-display t)
(setq chapter-99-debugging t)

(defvar my/load-times-list nil
  "List of chapters and time to load them.")

(defmacro chapter (chapterid chaptername &rest body)
  `(when ,chapterid
     (let (chapter-load-time-start this-chapter-load-time)
       (message "** %s" ,chaptername)
       (setq chapter-load-time-start (float-time))
       (progn ,@body)
       (setq this-chapter-load-time
             (concat "| " ,chaptername " | "
                     (message "%.2f" (- (float-time) chapter-load-time-start))
                     " |"))
       (add-to-list 'my/load-times-list this-chapter-load-time))))

(defun section (sectionname)
  (message "*** %s" sectionname))

(defun subsection (subsectionname)
  (message "**** %s" subsectionname))

(load-file "~/Downloads/cedet-1.1/common/cedet.el")
(global-ede-mode 1)                      ; Enable the Project management system
(semantic-load-enable-code-helpers)      ; Enable prototype help and smart 
completion 
(global-srecode-minor-mode 1)            ; Enable template insertion menu

(add-to-list 'load-path "~/Downloads/ecb-2.40")
(require 'ecb)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]