all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* load custom minor/major modes
@ 2003-08-04 21:42 Thomas Ruschival
  2003-08-05 13:18 ` kgold
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Ruschival @ 2003-08-04 21:42 UTC (permalink / raw)


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?
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.?

Thanks 
Thomas

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: load custom minor/major modes
  2003-08-04 21:42 load custom minor/major modes Thomas Ruschival
@ 2003-08-05 13:18 ` kgold
  0 siblings, 0 replies; 2+ messages in thread
From: kgold @ 2003-08-05 13:18 UTC (permalink / raw)



Thomas Ruschival <t.ruschival@vivid-md.de> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-05 13:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-04 21:42 load custom minor/major modes Thomas Ruschival
2003-08-05 13:18 ` kgold

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.