Solved

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

Posted on 2003-12-03
4
1,775 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 100

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 100

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 100 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Advice in Xamarin 21 120
Math Equation 23 148
some keys in my laptop is not working. any suggestion 6 61
COM server issue 2 23
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

734 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