From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kgold@watson.ibm.com (kgold) Newsgroups: gmane.emacs.help Subject: Re: load custom minor/major modes Date: 5 Aug 2003 13:18:01 GMT Organization: IBM T.J. Watson Research Center Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <20030804234258.4453b7dc.t.ruschival@vivid-md.de> NNTP-Posting-Host: deer.gmane.org X-Trace: main.gmane.org 1060090467 8133 80.91.224.253 (5 Aug 2003 13:34:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 5 Aug 2003 13:34:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 05 15:34:45 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19k1xd-00077l-00 for ; Tue, 05 Aug 2003 15:34:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19k1ti-00042H-Oh for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Aug 2003 09:30:42 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.ems.psu.edu!news.cse.psu.edu!uwm.edu!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!an02.austin.ibm.com!ausnews.austin.ibm.com!newsfeed.btv.ibm.com!news.btv.ibm.com!kgold Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: alpha.watson.ibm.com Original-X-Trace: news.btv.ibm.com 1060089481 8894 9.2.16.245 (5 Aug 2003 13:18:01 GMT) Original-X-Complaints-To: news@btv.ibm.com Original-NNTP-Posting-Date: 5 Aug 2003 13:18:01 GMT X-Newsreader: xrn 9.01 Originator: kgold@watson.ibm.com Original-Xref: shelby.stanford.edu gnu.emacs.help:115682 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11600 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11600 Thomas Ruschival writes: > I found a elisp source that puts emacs into SQL*Plus mode for oracle > SQL. I can compile it and load it but ho do I tell emacs to load it > whenever a file called *.sql is opened? (setq auto-mode-alist (append '( ("\\.sql$" . sql-mode) ) auto-mode-alist)) > I also like to modify the the java mode, I can't edit the global > elisp file and recompile it so can I also modify menues on a user > basis like i can set my tab size etc.? Example: (add-hook 'c-mode-common-hook (function (lambda () (setq c-basic-offset 4) ))) There is a java-mode-hook as well, but generally people used the same style for C, C++, and Java so the common hook is used. -- -- Ken Goldman kgold@watson.ibm.com 914-784-7646