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

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

Re: emacs mode line suggestions


From: Xavier Maillard
Subject: Re: emacs mode line suggestions
Date: Wed, 19 Nov 2008 00:25:09 +0100
User-agent: Rmail in GNU Emacs 23.0.60.12 on GNU/Linux

   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




reply via email to

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