From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: seberino@spawar.navy.mil Newsgroups: gmane.emacs.help Subject: best way to add commands to c-mode??.... Date: Wed, 23 Oct 2002 11:46:04 -0700 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <20021023114604.A20134@spawar.navy.mil> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035398981 28831 80.91.224.249 (23 Oct 2002 18:49:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:49:41 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 184QZX-0007UP-00 for ; Wed, 23 Oct 2002 20:49:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 184QYW-000845-00; Wed, 23 Oct 2002 14:48:36 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 184QWG-0005dV-00 for help-gnu-emacs@gnu.org; Wed, 23 Oct 2002 14:46:16 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 184QWA-0005Y7-00 for help-gnu-emacs@gnu.org; Wed, 23 Oct 2002 14:46:14 -0400 Original-Received: from seberino.spawar.navy.mil ([128.49.22.159]) by monty-python.gnu.org with esmtp (Exim 4.10) id 184QW9-0005Tt-00 for help-gnu-emacs@gnu.org; Wed, 23 Oct 2002 14:46:09 -0400 Original-Received: from seberino by seberino.spawar.navy.mil with local (Exim 4.10) id 184QW4-0005F0-00 for help-gnu-emacs@gnu.org; Wed, 23 Oct 2002 11:46:04 -0700 Original-To: help-gnu-emacs@gnu.org Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2861 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2861 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 _______________________________________