[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

basic c-mode questions

From: seberino
Subject: basic c-mode questions
Date: Thu, 3 Oct 2002 09:51:20 -0700
User-agent: Mutt/

>From various sources I've created a modified C-mode that

(defun cs-c-mode() (interactive)
  (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???



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

Phone: (619) 553-7940
Fax:   (619) 553-1269

reply via email to

[Prev in Thread] Current Thread [Next in Thread]