From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Meisel Newsgroups: gmane.emacs.help Subject: Re: VB mode? Date: Wed, 12 Jul 2006 17:47:54 +0200 Organization: EmK Message-ID: <200607121747.56222.sebastianmeisel@web.de> References: <1152710165.154917.187730@s13g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1152719258 19141 80.91.229.2 (12 Jul 2006 15:47:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Jul 2006 15:47:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 12 17:47:37 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G0gvP-0003gs-4x for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Jul 2006 17:46:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G0gvO-0000bg-II for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Jul 2006 11:46:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G0gv7-0000YC-AB for help-gnu-emacs@gnu.org; Wed, 12 Jul 2006 11:46:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G0gv5-0000Vr-DV for help-gnu-emacs@gnu.org; Wed, 12 Jul 2006 11:46:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G0gv5-0000Vg-9f for help-gnu-emacs@gnu.org; Wed, 12 Jul 2006 11:46:35 -0400 Original-Received: from [217.72.192.221] (helo=fmmailgate01.web.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G0gwe-0007kX-5E for help-gnu-emacs@gnu.org; Wed, 12 Jul 2006 11:48:12 -0400 Original-Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate01.web.de (Postfix) with ESMTP id 8DA807FA696 for ; Wed, 12 Jul 2006 17:46:33 +0200 (CEST) Original-Received: from [84.157.169.183] (helo=[192.168.168.253]) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.107 #114) id 1G0gv3-0008RK-00 for help-gnu-emacs@gnu.org; Wed, 12 Jul 2006 17:46:33 +0200 Original-To: help-gnu-emacs@gnu.org User-Agent: KMail/1.9.3 In-Reply-To: <1152710165.154917.187730@s13g2000cwa.googlegroups.com> Content-Disposition: inline X-Sender: sebastianmeisel@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35919 Archived-At: Am Mittwoch, 12. Juli 2006 15:16 schrieb Simon: > Hi there, > I recently started programming in Visual Basic and decided to use my > favorite text editor: emacs. However, best would be to have a mode > that will highlight keywords, ident, and everything. > > I did find such a file: > http://d116.com/hacks/emacs/visual-basic-mode.el > > However, in the instructions, it says to put the file in my path > (ok...) and then to compile it, what does that mean? I've never > touched lisp before so i have no idea what it's fed with in the > winter... > > I will not have time to read and understand the manual for a long time, > so if you care to help an emacs lover like me, please do so! > > Oh! by the way, I'm currently using xemacs on windows, but will also > use emacs and xemacs on linux (slackware). > > Thanks, > Simon > > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs Hi Simon, you don't have to compile anything. Just put the file to /usr/share/emacs/21.4/lisp/progmodes/ ^^^ may be different depending on the version of emacs you're using Then you put ->> (setq any mode-customization variables you want here) (autoload 'visual-basic-mode "visual-basic-mode" "Visual Basic mode." t) (setq auto-mode-alist (append '(("\\.\\(frm\\|bas\\|cls\\)$" . visual-basic-mode)) auto-mode-alist)) <<- to your .emacs file, as is stated in visual-basic-mode.el. Then you have to close emacs. When you open a visual-basic-file the next time in emacs, visual-basic-mode is used. -- Sebastian Meisel