Mercurial > emacs
comparison lisp/desktop.el @ 94425:780f88412851
(desktop-minor-mode-table): Add `savehist-mode'.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Mon, 28 Apr 2008 08:03:18 +0000 |
parents | 85846e73fafe |
children | ee5932bf781d |
comparison
equal
deleted
inserted
replaced
94424:5daa3021b13a | 94425:780f88412851 |
---|---|
82 ;; (defun bar-desktop-restore | 82 ;; (defun bar-desktop-restore |
83 ;; ... | 83 ;; ... |
84 ;; (add-to-list 'desktop-minor-mode-handlers | 84 ;; (add-to-list 'desktop-minor-mode-handlers |
85 ;; '(bar-mode . bar-desktop-restore)) | 85 ;; '(bar-mode . bar-desktop-restore)) |
86 | 86 |
87 ;; in the module itself, and make shure that the mode function is | 87 ;; in the module itself, and make sure that the mode function is |
88 ;; autoloaded. See the docstrings of `desktop-buffer-mode-handlers' and | 88 ;; autoloaded. See the docstrings of `desktop-buffer-mode-handlers' and |
89 ;; `desktop-minor-mode-handlers' for more info. | 89 ;; `desktop-minor-mode-handlers' for more info. |
90 | 90 |
91 ;; Minor modes. | 91 ;; Minor modes. |
92 ;; ------------ | 92 ;; ------------ |
454 | 454 |
455 (defcustom desktop-minor-mode-table | 455 (defcustom desktop-minor-mode-table |
456 '((auto-fill-function auto-fill-mode) | 456 '((auto-fill-function auto-fill-mode) |
457 (vc-mode nil) | 457 (vc-mode nil) |
458 (vc-dired-mode nil) | 458 (vc-dired-mode nil) |
459 (erc-track-minor-mode nil)) | 459 (erc-track-minor-mode nil) |
460 (savehist-mode nil)) | |
460 "Table mapping minor mode variables to minor mode functions. | 461 "Table mapping minor mode variables to minor mode functions. |
461 Each entry has the form (NAME RESTORE-FUNCTION). | 462 Each entry has the form (NAME RESTORE-FUNCTION). |
462 NAME is the name of the buffer-local variable indicating that the minor | 463 NAME is the name of the buffer-local variable indicating that the minor |
463 mode is active. RESTORE-FUNCTION is the function to activate the minor mode. | 464 mode is active. RESTORE-FUNCTION is the function to activate the minor mode. |
464 RESTORE-FUNCTION nil means don't try to restore the minor mode. | 465 RESTORE-FUNCTION nil means don't try to restore the minor mode. |