all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* basic c-mode questions
@ 2002-10-03 16:51 seberino
  0 siblings, 0 replies; only message in thread
From: seberino @ 2002-10-03 16:51 UTC (permalink / raw)


From various sources I've created a modified C-mode that
*works*....

(defun cs-c-mode() (interactive)
  (c-mode)
  (c-set-style "K&R")
  (add-hook 'c-mode-hook 'turn-on-font-lock)
  (setq c-basic-offset 3)
  (local-set-key "\C-d" 'cs-kill-line))

What does the K&R style give me???

It was necessary to have the "add-hook" line and the locate-set-key
in order to get a home-grown function behave the same in my
c-mode.  Is there an easier way to do this?? What exactly do
these 2 lines do that make it possible for my old command
to work the same in c-mode???

Thanks,

Chris
-- 
_______________________________________

Dr. Christian Seberino
SPAWAR Systems Center San Diego
Code 2363
49590 Lassing Rd. Rm. A339
San Diego, CA 92152-6147
U.S.A.

Phone: (619) 553-7940
Fax:   (619) 553-1269
Email: seberino@spawar.navy.mil
_______________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-03 16:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-03 16:51 basic c-mode questions seberino

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.