Some recent experiences on Emacs

Source: Internet
Author: User
Tags autoload gtk

I have been studying Emacs recently. After using it for a while, I still think it is very vague. Today, I read some materials and think it is a bit of an eye, which is specially recorded here.

1. The installation address of Emacs on my machine is/usr/share/Emacs/22.1.

2. the Emacs installation directory contains site-list/subdirs. El. This file stores all operations performed when you start Emacs.

3 ,~ /. Emacs Save the current user's Emacs settings

4. If you want to install a new plug-in, such as speedbar, you can directly put the speedbar code in a directory.
For example,/usr/share/Emacs/speedbar. Add in subdirs. El
(Add-to-list 'Load-path "/usr/share/Emacs/21.3/speedbar ")
(Autoload 'speedbar-frame-mode "speedbar" "popup A speedbar frame" t)
(Autoload 'speedbar-get-Focus "speedbar" "Jump to speedbar frame" t)
(Global-set-Key [(F4)] 'speedbar-get-Focus)
You can.

5, when installing ECB, always prompt installation is not successful, prompt cannot find Cl, later found in emacs-22.1/lisp/emacs-lisp, so in subdirs. add (add-to-list 'Load-path "/usr/share/Emacs/21.3/emacs-lisp") to El. Restart Emacs and make corresponding modifications as prompted, successful.

6. If the configuration script is directly written in subdirs. El when Emacs is used in windows, emacs cannot be started as long as an error occurs during Script Loading. If you want to know where. emacs is stored, you can choose Options> customize emacs-> saved options to view the. emacs location in minibuf. Write the configuration file to. emacs. If an error occurs, a message is displayed. My local. emacs address is
C:/Documents and Settings/Administrator/Application Data/. emacs.

7. emacs topic
(Load-file "F:/soft/emacs-22.1/lisp/color_theme/color-theme.el ")
(Require 'color-theme)
(Color-theme-dark-blue)

8. emacs indent
(Setq C-Basic-offset 4) indent 4 characters

8. run CVs to compile Emacs.
CVS-Z3-D: pserver: anonymous@cvs.sv.gnu.org:/sources/Emacs co-r emacs-unicode-2 Emacs
. /Configure -- prefix =/usr/local -- With-X-Toolkit = GTK -- With-XPM -- With-xft -- With-FreeType -- With-GTK -- With-JPEG --- tiff -- With-GIF -- With-PNG -- With-X -- enable-font-backend
Make Bootstrap
Sudo make install
If error: makeinfo> = 4.6 is required appears during compilation, you need to install texinfo

Now, the Emacs configuration logic has been clarified and can be used.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.