From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "heriberaht" Newsgroups: gmane.emacs.help Subject: Re: How to save minor mode in Desktop? Date: 3 May 2005 04:59:10 -0700 Organization: http://groups.google.com Message-ID: <1115121550.177175.23240@f14g2000cwb.googlegroups.com> References: <1114831942.001180.32700@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1115223500 14782 80.91.229.2 (4 May 2005 16:18:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 May 2005 16:18:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 04 18:18:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DTMZ5-00045Z-SB for geh-help-gnu-emacs@m.gmane.org; Wed, 04 May 2005 18:17:36 +0200 Original-Received: from [127.0.0.1] (helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTJcj-0003ob-V9 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 May 2005 09:09:10 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: 61.144.54.40 Original-X-Trace: posting.google.com 1115121554 2739 127.0.0.1 (3 May 2005 11:59:14 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 3 May 2005 11:59:14 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=61.144.54.40; posting-account=niQFxw0AAACd-0Ipz7XcIyOpMX-CUkLS Original-Xref: shelby.stanford.edu gnu.emacs.help:130619 Original-To: help-gnu-emacs@gnu.org 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:26267 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26267 I have read these comments, but can't figure out how to set correctly. Later I adde the minor-mode to matlab-mode-hook and solved it in a not so clever way. (defun my-matlab-mode-hook () (setq fill-column 76) ; (setnu-mode 1) (load "matlab-eei") (matlab-eei-minor-mode 1) (define-key matlab-eei-mode-map (kbd "C-c C-d C-c") 'matlab-eei-clear-breakpoints) (define-key matlab-eei-mode-map (kbd "C-c C-d C-q") 'matlab-eei-exit-debug) (setq matlab-comment-region-s "% ") )