summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2024-09-21 02:19:53 +0200
committerStefan Kangas <stefankangas@gmail.com>2024-09-21 02:22:43 +0200
commit76c6b4d2799ab1396ba003d33e4a177519d7e53d (patch)
tree320eeeb99b77972004f576d39ff6494ea4186ab0 /lisp
parentf77825222077799b79a9f62cb8a3f0fa37373614 (diff)
downloademacs-76c6b4d2799ab1396ba003d33e4a177519d7e53d.tar.gz
emacs-76c6b4d2799ab1396ba003d33e4a177519d7e53d.tar.bz2
emacs-76c6b4d2799ab1396ba003d33e4a177519d7e53d.zip
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)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/midnight.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/midnight.el b/lisp/midnight.el
index bfa99d6a7a8..3578d702f07 100644
--- a/lisp/midnight.el
+++ b/lisp/midnight.el
@@ -1,6 +1,6 @@
;;; 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>
;; Created: 1998-05-18
@@ -23,7 +23,7 @@
;;; 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
;; put whatever you like there, say, `calendar'; by default there is
;; only one function there - `clean-buffer-list'. It will kill the