Fix midnight-mode documentation
* lisp/midnight.el (Commentary): Document that 'midnight-mode' should be enabled using the function, instead of by merely loading the library. In Emacs 31, doing the latter will no longer work. (Bug#73291)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
;;; midnight.el --- run something every midnight, e.g., kill old buffers -*- lexical-binding:t -*-
|
;;; midnight.el --- run something every midnight, e.g., kill old buffers -*- lexical-binding:t -*-
|
||||||
|
|
||||||
;; Copyright (C) 1998, 2001-2024 Free Software Foundation, Inc.
|
;; Copyright (C) 1998-2024 Free Software Foundation, Inc.
|
||||||
|
|
||||||
;; Author: Sam Steingold <sds@gnu.org>
|
;; Author: Sam Steingold <sds@gnu.org>
|
||||||
;; Created: 1998-05-18
|
;; Created: 1998-05-18
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
;; To use the file, put (require 'midnight) into your .emacs. Then, at
|
;; To use the file, put (midnight-mode) into your .emacs. Then, at
|
||||||
;; midnight, Emacs will run the normal hook `midnight-hook'. You can
|
;; midnight, Emacs will run the normal hook `midnight-hook'. You can
|
||||||
;; put whatever you like there, say, `calendar'; by default there is
|
;; put whatever you like there, say, `calendar'; by default there is
|
||||||
;; only one function there - `clean-buffer-list'. It will kill the
|
;; only one function there - `clean-buffer-list'. It will kill the
|
||||||
|
|||||||
Reference in New Issue
Block a user