1. After Emacs is installed in Ubuntu, the size of the pop-up form and the prompt information in the pop-up window of Emacs are uncomfortable and need to be modified.
First, you need ~ /Check whether the. emacs file exists in the directory. If not, create it and check whether the. xdefaults file exists. If it is not created
. Emacs file configuration (see for details). The font style is added here, which is better than the default one.
(set-default-font "courier 10 pitch-12")(set-fontset-font "fontset-default"'han '("WenQuanYi Bitmap Song" . "unicode-bmp"))(set-fontset-font "fontset-default"'cjk-misc '("WenQuanYi Bitmap Song" . "unicode-bmp"))(set-fontset-font "fontset-default"'bopomofo '("WenQuanYi Bitmap Song" . "unicode-bmp"))(set-fontset-font "fontset-default"'gb18030 '("WenQuanYi Bitmap Song". "unicode-bmp"))(set-fontset-font "fontset-default"'symbol '("WenQuanYi Bitmap Song". "unicode-bmp"))(add-to-list 'default-frame-alist '(font . "courier 10 pitch-12"))
Edit the. xdefault File
Emacs.geometry: 80x36+50+74
Save the file and run the following command: $ xrdb ~ /. Xdefaults make it take effect
If the default help information is removed, add it to the. emacs file.
(setq inhibit-startup-message t)
2. Install cedit
Download the cedit package at http://cedet.sourceforge.net/
Unzip: $ tar-zvxf cedet-1.1.tar.gz
Go to the decompressed directory and compile: $ make Emacs = Emacs
Add the. emacs file
(load-file "/home/loulijun/software/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
3. Install ECB
Download the compressed package at http://ecb.sourceforge.net/
Extract
Add the. emacs file
(add-to-list 'load-path"/home/loulijun/software/ecb-2.40")(require 'ecb)(require 'ecb-autoloads)
Start Emacs, open a source code file, and select Tools --> Start code browser (ECB)
Emacs is configured with a simple IDE.
4. The error CB can only be used with [1.0pre6, 1.0.9]! Please install it and restart Emacs!
Solution:
Find the ecb-upgrade.el file under the ECB directory, and replace:
Find the Code; comment out and open Emacs again.
;; check if vedet-version is correct when (or (not (boundp 'cedet-version)) (ecb-package-version-list< (ecb-package-version-str2list cedet-version) ecb-required-cedet-version-min) (ecb-package-version-list< ecb-required-cedet-version-max (ecb-package-version-str2list cedet-version))) (setq version-error (concat "cedet [" cedet-required-version-str-min ", " cedet-required-version-str-max "]")))
If the prompt ECB-tip-of-the day dialog box appears after you open Emacs
Add (setq ECB-tip-of-the-day nil) to the. emacs file.