From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Generic hook for "code modes?" Date: Fri, 02 Dec 2011 11:40:24 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1322844038 3304 80.91.229.12 (2 Dec 2011 16:40:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Dec 2011 16:40:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dave Abrahams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 02 17:40:32 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RWWA2-0000Jb-Gx for ged-emacs-devel@m.gmane.org; Fri, 02 Dec 2011 17:40:30 +0100 Original-Received: from localhost ([::1]:50576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWWA1-00033d-MJ for ged-emacs-devel@m.gmane.org; Fri, 02 Dec 2011 11:40:29 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWW9z-00033Y-3r for emacs-devel@gnu.org; Fri, 02 Dec 2011 11:40:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWW9x-0001aL-N0 for emacs-devel@gnu.org; Fri, 02 Dec 2011 11:40:27 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:48074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWW9x-0001aH-DH for emacs-devel@gnu.org; Fri, 02 Dec 2011 11:40:25 -0500 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RWW9x-0002ui-13; Fri, 02 Dec 2011 11:40:25 -0500 In-Reply-To: (Dave Abrahams's message of "Fri, 02 Dec 2011 11:23:11 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146435 Archived-At: Dave Abrahams writes: > I have some things I want to set up whenever I'm editing source code, > pretty much no matter the language. Is there a central hook for code > modes, or do I need to make a table of code modes myself? >From the current trunk etc/NEWS: **** `prog-mode-hook' can be used to enable features for programming modes, e.g. (add-hook 'prog-mode-hook 'flyspell-prog-mode) to enable on-the-fly spell checking for comments and strings.