?
Solved

Emacs for windows loading the visual-basic.el mode.

Posted on 2003-12-03
4
Medium Priority
?
1,791 Views
Last Modified: 2012-06-27
Im running emacs for windows and i just need to how to load the visual basic mode for it.
I searched and searched
0
Comment
Question by:djohnson104
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 9871802
Where did you download emacs from?

The versions I found don't mention a VB editor mode.

mlmcc
0
 
LVL 2

Author Comment

by:djohnson104
ID: 9874218
http://ftp.gnu.org/gnu/windows/emacs/

http://ftp.gnu.org/gnu/windows/emacs/docs/ntemacs/contrib/visual-basic-mode.el


Download emacs then install the Visual basic mode
 But i cant figure out how to use it.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 9879019
To use it I believe you will need a LISP compiler to compile the source.

mlmcc
0
 

Accepted Solution

by:
Matthew_X_Economou earned 400 total points
ID: 10058657
Installation of the aforementioned "visual-basic-mode.el" is similar to most other Emacs Lisp programs.  Copy the ".el" file to somewhere in your load path and cause it to be loaded via the Emacs startup script.  The easiest way to do that for all users on a particular workstation is, assuming Emacs is installed in "C:\Program Files\emacs" (Windows) or "/usr/local/" (UNIX):

(1) Save "visual-basic-mode.el" in the all-users Emacs Lisp directory "C:\Program Files\emacs\site-lisp" (Windows) or "/usr/local/share/emacs/site-lisp" (UNIX).  Make certain the file is readable by all users.

(2) Add the following lines to the following lines to the all-users Emacs startup script, "C:\Program Files\emacs\site-lisp\site-start.el" (Windows) or "/usr/local/share/emacs/site-lisp/site-start.el" (UNIX), making certain the file is readable by all users:

    (load-library "visual-basic-mode")
    (setq auto-mode-alist (cons '("\\.\\(frm\\|bas\\|cls\\|vbs\\)$" . visual-basic-mode) auto-mode-alist))

(3) Restart Emacs.  At some point while Emacs loads, you may see a message at the bottom of the screen that says "Loading textmodes/visual-basic-mode (source)...".

Now, any file with any of the extensions ".frm", ".bas", ".cls", or ".vbs" will be opened in Visual Basic mode, with syntax highlighting and indenting enabled.

Best wishes,
Matthew
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Starting up a Project
Suggested Courses
Course of the Month8 days, 1 hour left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question