From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.help Subject: Re: emacs mode line suggestions Date: Wed, 19 Nov 2008 00:25:09 +0100 Organization: GNU's Not UNIX! Message-ID: <200811182325.mAINP9La012453@zogzog.maillard.mobi> References: <15962952-6180-41bd-abce-1b919aa55807@v13g2000pro.googlegroups.com> <433211B3-07C5-459D-A620-581DFA5931EB@digg.com> Reply-To: Xavier Maillard NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1227050994 31221 80.91.229.12 (18 Nov 2008 23:29:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Nov 2008 23:29:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Kevin Rodgers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 19 00:30:55 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L2a20-0002H5-Hw for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Nov 2008 00:30:52 +0100 Original-Received: from localhost ([127.0.0.1]:46771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2a0r-0002UY-S1 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 18:29:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2a0X-0002UO-Vf for help-gnu-emacs@gnu.org; Tue, 18 Nov 2008 18:29:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2a0V-0002U3-Rq for help-gnu-emacs@gnu.org; Tue, 18 Nov 2008 18:29:21 -0500 Original-Received: from [199.232.76.173] (port=42979 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2a0V-0002U0-Oj for help-gnu-emacs@gnu.org; Tue, 18 Nov 2008 18:29:19 -0500 Original-Received: from master.uucpssh.org ([193.218.105.66]:49803) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L2a0W-0000SQ-1m for help-gnu-emacs@gnu.org; Tue, 18 Nov 2008 18:29:20 -0500 Original-Received: by master.uucpssh.org (Postfix, from userid 10) id 2C4A7F8016; Wed, 19 Nov 2008 00:27:10 +0100 (CET) Original-Received: from zogzog.maillard.mobi (IDENT:1000@localhost [127.0.0.1]) by zogzog.maillard.mobi (8.14.2/8.13.8) with ESMTP id mAINPAcw012454; Wed, 19 Nov 2008 00:25:10 +0100 Original-Received: (from xma@localhost) by zogzog.maillard.mobi (8.14.2/8.13.8/Submit) id mAINP9La012453; Wed, 19 Nov 2008 00:25:09 +0100 In-reply-to: (message from Kevin Rodgers on Tue, 18 Nov 2008 02:39:35 -0700) User-Agent: Rmail in GNU Emacs 23.0.60.12 on GNU/Linux Jabber-ID: xma01@jabber.fr X-uucpssh: Found to be clean X-uucpssh-SpamCheck: not spam, SpamAssassin (not cached, score=-4.331, required 4.6, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.07, BAYES_00 -2.60, SPF_HELO_PASS -0.00) X-uucpssh-From: xma@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59915 Archived-At: Ian Eure wrote: > I think the only time I manually switch modes is when I need to use > *scratch* for something, e.g. I'll switch to emacs-lisp-mode if I want > to eval some code, sql-mode if I want to write a query, etc. > > I should probably write some functions to give me *lisp* and *SQL* > buffers with the appropriate mode. I leave initial-major-mode set to lisp-interaction-mode, so *scratch* is my Emacs Lisp buffer. And I've got this in my ~/.emacs: (with-current-buffer (get-buffer-create "*Text*") (text-mode)) (with-current-buffer (get-buffer-create "*SQL*") (sql-mode)) Great idea Rogers (and so simple). For Ian, if you use SLIME, you will have access to a "lispified" *scratch* like buffer. Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org