all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: How to save minor mode in Desktop?
Date: Mon, 02 May 2005 09:09:33 -0600	[thread overview]
Message-ID: <d55ffq$ol5$1@sea.gmane.org> (raw)
In-Reply-To: <1114831942.001180.32700@o13g2000cwo.googlegroups.com>

heriberaht wrote:
>   I use desktop.el to save emacs sessions, but minor-mode is lost after
> restart. how to correct this? The two minor mode I want to keep is
> setnu-mode and matlab-eei-minor-mode.
> 
>   Looking forward to all of your valuable advices, thanks.

desktop.el itself seems to suggest that you should frob 
desktop-minor-mode-table:

;; Some words on minor modes: Most minor modes are controlled by
;; buffer-local variables, which have a standard save / restore
;; mechanism.  To handle all minor modes, we take the following
;; approach: (1) check whether the variable name from
;; `minor-mode-alist' is also a function; and (2) use translation
;; table `desktop-minor-mode-table' in the case where the two names
;; are not the same.

-- 
Kevin Rodgers

  reply	other threads:[~2005-05-02 15:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-30  3:32 How to save minor mode in Desktop? heriberaht
2005-05-02 15:09 ` Kevin Rodgers [this message]
     [not found] ` <mailman.248.1115046900.2819.help-gnu-emacs@gnu.org>
2005-05-03 11:59   ` heriberaht
2005-05-04 16:58     ` Kevin Rodgers
     [not found]     ` <mailman.3270.1115227292.2819.help-gnu-emacs@gnu.org>
2005-05-05  2:53       ` heriberaht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='d55ffq$ol5$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.