help-gnu-emacs
[Top][All Lists]
Advanced

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

best way to add commands to c-mode??....


From: seberino
Subject: best way to add commands to c-mode??....
Date: Wed, 23 Oct 2002 11:46:04 -0700
User-agent: Mutt/1.2.5.1i

Is this the simplest way to add commands to c-mode?...

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


Did I have to define a new mode/function to add
these 3 commands??

Chris
-- 
_______________________________________

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

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




reply via email to

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