Define auto-save-mode with define-minor-mode.
[emacs.git] / lisp / emacs-lisp / easy-mmode.el
blob5a21946183e93bd4a1f2d1889003cd1ce87af8c1
1 ;;; easy-mmode.el --- easy definition for major and minor modes
3 ;; Copyright (C) 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4 ;; 2008, 2009, 2010 Free Software Foundation, Inc.
6 ;; Author: Georges Brun-Cottan <Georges.Brun-Cottan@inria.fr>
7 ;; Maintainer: Stefan Monnier <monnier@gnu.org>
9 ;; Keywords: extensions lisp
11 ;; This file is part of GNU Emacs.
13 ;; GNU Emacs is free software: you can redistribute it and/or modify
14 ;; it under the terms of the GNU General Public License as published by
15 ;; the Free Software Foundation, either version 3 of the License, or
16 ;; (at your option) any later version.
18 ;; GNU Emacs is distributed in the hope that it will be useful,
19 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;; GNU General Public License for more details.
23 ;; You should have received a copy of the GNU General Public License
24 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26 ;;; Commentary:
28 ;; Minor modes are useful and common. This package makes defining a
29 ;; minor mode easy, by focusing on the writing of the minor mode
30 ;; functionalities themselves. Moreover, this package enforces a
31 ;; conventional naming of user interface primitives, making things
32 ;; natural for the minor-mode end-users.
34 ;; For each mode, easy-mmode defines the following:
35 ;; <mode> : The minor mode predicate. A buffer-local variable.
36 ;; <mode>-map : The keymap possibly associated to <mode>.
37 ;; see `define-minor-mode' documentation
39 ;; eval
40 ;; (pp (macroexpand '(define-minor-mode <your-mode> <doc>)))
41 ;; to check the result before using it.
43 ;; The order in which minor modes are installed is important. Keymap
44 ;; lookup proceeds down minor-mode-map-alist, and the order there
45 ;; tends to be the reverse of the order in which the modes were
46 ;; installed. Perhaps there should be a feature to let you specify
47 ;; orderings.
49 ;; Additionally to `define-minor-mode', the package provides convenient
50 ;; ways to define keymaps, and other helper functions for major and minor modes.
52 ;;; Code:
54 (eval-when-compile (require 'cl))
56 (defun easy-mmode-pretty-mode-name (mode &optional lighter)
57 "Turn the symbol MODE into a string intended for the user.
58 If provided, LIGHTER will be used to help choose capitalization by,
59 replacing its case-insensitive matches with the literal string in LIGHTER."
60 (let* ((case-fold-search t)
61 ;; Produce "Foo-Bar minor mode" from foo-bar-minor-mode.
62 (name (concat (replace-regexp-in-string
63 ;; If the original mode name included "-minor" (some
64 ;; of them don't, e.g. auto-revert-mode), then
65 ;; replace it with " minor".
66 "-Minor" " minor"
67 ;; "foo-bar-minor" -> "Foo-Bar-Minor"
68 (capitalize (replace-regexp-in-string
69 ;; "foo-bar-minor-mode" -> "foo-bar-minor"
70 "-mode\\'" "" (symbol-name mode))))
71 " mode")))
72 (if (not (stringp lighter)) name
73 ;; Strip leading and trailing whitespace from LIGHTER.
74 (setq lighter (replace-regexp-in-string "\\`\\s-+\\|\\s-+\\'" ""
75 lighter))
76 ;; Replace any (case-insensitive) matches for LIGHTER in NAME
77 ;; with a literal LIGHTER. E.g., if NAME is "Iimage mode" and
78 ;; LIGHTER is " iImag", then this will produce "iImage mode".
79 ;; (LIGHTER normally comes from the mode-line string passed to
80 ;; define-minor-mode, and normally includes at least one leading
81 ;; space.)
82 (replace-regexp-in-string (regexp-quote lighter) lighter name t t))))
84 ;;;###autoload
85 (defalias 'easy-mmode-define-minor-mode 'define-minor-mode)
86 ;;;###autoload
87 (defmacro define-minor-mode (mode doc &optional init-value lighter keymap &rest body)
88 "Define a new minor mode MODE.
89 This function defines the associated control variable MODE, keymap MODE-map,
90 and toggle command MODE.
92 DOC is the documentation for the mode toggle command.
93 Optional INIT-VALUE is the initial value of the mode's variable.
94 Optional LIGHTER is displayed in the modeline when the mode is on.
95 Optional KEYMAP is the default (defvar) keymap bound to the mode keymap.
96 If it is a list, it is passed to `easy-mmode-define-keymap'
97 in order to build a valid keymap. It's generally better to use
98 a separate MODE-map variable than to use this argument.
99 The above three arguments can be skipped if keyword arguments are
100 used (see below).
102 BODY contains code to execute each time the mode is activated or deactivated.
103 It is executed after toggling the mode,
104 and before running the hook variable `MODE-hook'.
105 Before the actual body code, you can write keyword arguments (alternating
106 keywords and values). These following keyword arguments are supported (other
107 keywords will be passed to `defcustom' if the minor mode is global):
108 :group GROUP Custom group name to use in all generated `defcustom' forms.
109 Defaults to MODE without the possible trailing \"-mode\".
110 Don't use this default group name unless you have written a
111 `defgroup' to define that group properly.
112 :global GLOBAL If non-nil specifies that the minor mode is not meant to be
113 buffer-local, so don't make the variable MODE buffer-local.
114 By default, the mode is buffer-local.
115 :init-value VAL Same as the INIT-VALUE argument.
116 :lighter SPEC Same as the LIGHTER argument.
117 :keymap MAP Same as the KEYMAP argument.
118 :require SYM Same as in `defcustom'.
119 :variable PLACE The location (as can be used with `setf') to use instead
120 of the variable MODE to store the state of the mode. PLACE
121 can also be of the form (GET . SET) where GET is an expression
122 that returns the current state and SET is a function that takes
123 a new state and sets it.
125 For example, you could write
126 (define-minor-mode foo-mode \"If enabled, foo on you!\"
127 :lighter \" Foo\" :require 'foo :global t :group 'hassle :version \"27.5\"
128 ...BODY CODE...)"
129 (declare (debug (&define name stringp
130 [&optional [&not keywordp] sexp
131 &optional [&not keywordp] sexp
132 &optional [&not keywordp] sexp]
133 [&rest [keywordp sexp]]
134 def-body)))
136 ;; Allow skipping the first three args.
137 (cond
138 ((keywordp init-value)
139 (setq body (list* init-value lighter keymap body)
140 init-value nil lighter nil keymap nil))
141 ((keywordp lighter)
142 (setq body (list* lighter keymap body) lighter nil keymap nil))
143 ((keywordp keymap) (push keymap body) (setq keymap nil)))
145 (let* ((last-message (make-symbol "last-message"))
146 (mode-name (symbol-name mode))
147 (pretty-name (easy-mmode-pretty-mode-name mode lighter))
148 (globalp nil)
149 (set nil)
150 (initialize nil)
151 (group nil)
152 (type nil)
153 (extra-args nil)
154 (extra-keywords nil)
155 (variable nil) ;The PLACE where the state is stored.
156 (setter nil) ;The function (if any) to set the mode var.
157 (modefun mode) ;The minor mode function name we're defining.
158 (require t)
159 (hook (intern (concat mode-name "-hook")))
160 (hook-on (intern (concat mode-name "-on-hook")))
161 (hook-off (intern (concat mode-name "-off-hook")))
162 keyw keymap-sym)
164 ;; Check keys.
165 (while (keywordp (setq keyw (car body)))
166 (setq body (cdr body))
167 (case keyw
168 (:init-value (setq init-value (pop body)))
169 (:lighter (setq lighter (purecopy (pop body))))
170 (:global (setq globalp (pop body)))
171 (:extra-args (setq extra-args (pop body)))
172 (:set (setq set (list :set (pop body))))
173 (:initialize (setq initialize (list :initialize (pop body))))
174 (:group (setq group (nconc group (list :group (pop body)))))
175 (:type (setq type (list :type (pop body))))
176 (:require (setq require (pop body)))
177 (:keymap (setq keymap (pop body)))
178 (:variable (setq variable (pop body))
179 (if (not (functionp (cdr-safe variable)))
180 ;; PLACE is not of the form (GET . SET).
181 (setq mode variable)
182 (setq mode (car variable))
183 (setq setter (cdr variable))))
184 (t (push keyw extra-keywords) (push (pop body) extra-keywords))))
186 (setq keymap-sym (if (and keymap (symbolp keymap)) keymap
187 (intern (concat mode-name "-map"))))
189 (unless set (setq set '(:set 'custom-set-minor-mode)))
191 (unless initialize
192 (setq initialize '(:initialize 'custom-initialize-default)))
194 (unless group
195 ;; We might as well provide a best-guess default group.
196 (setq group
197 `(:group ',(intern (replace-regexp-in-string
198 "-mode\\'" "" mode-name)))))
200 (unless type (setq type '(:type 'boolean)))
202 `(progn
203 ;; Define the variable to enable or disable the mode.
204 ,(cond
205 ;; If :variable is specified, then the var will be
206 ;; declared elsewhere.
207 (variable nil)
208 ((not globalp)
209 `(progn
210 (defvar ,mode ,init-value ,(format "Non-nil if %s is enabled.
211 Use the command `%s' to change this variable." pretty-name mode))
212 (make-variable-buffer-local ',mode)))
214 (let ((base-doc-string
215 (concat "Non-nil if %s is enabled.
216 See the command `%s' for a description of this minor mode."
217 (if body "
218 Setting this variable directly does not take effect;
219 either customize it (see the info node `Easy Customization')
220 or call the function `%s'."))))
221 `(defcustom ,mode ,init-value
222 ,(format base-doc-string pretty-name mode mode)
223 ,@set
224 ,@initialize
225 ,@group
226 ,@type
227 ,@(unless (eq require t) `(:require ,require))
228 ,@(nreverse extra-keywords)))))
230 ;; The actual function.
231 (defun ,modefun (&optional arg ,@extra-args)
232 ,(or doc
233 (format (concat "Toggle %s on or off.
234 Interactively, with no prefix argument, toggle the mode.
235 With universal prefix ARG turn mode on.
236 With zero or negative ARG turn mode off.
237 \\{%s}") pretty-name keymap-sym))
238 ;; Use `toggle' rather than (if ,mode 0 1) so that using
239 ;; repeat-command still does the toggling correctly.
240 (interactive (list (or current-prefix-arg 'toggle)))
241 (let ((,last-message (current-message)))
242 (,@(if setter (list setter)
243 (list (if (symbolp mode) 'setq 'setf) mode))
244 (if (eq arg 'toggle)
245 (not ,mode)
246 ;; A nil argument also means ON now.
247 (> (prefix-numeric-value arg) 0)))
248 ,@body
249 ;; The on/off hooks are here for backward compatibility only.
250 (run-hooks ',hook (if ,mode ',hook-on ',hook-off))
251 (if (called-interactively-p 'any)
252 (progn
253 ,(if (and globalp (symbolp mode))
254 `(customize-mark-as-set ',mode))
255 ;; Avoid overwriting a message shown by the body,
256 ;; but do overwrite previous messages.
257 (unless (and (current-message)
258 (not (equal ,last-message
259 (current-message))))
260 (message ,(format "%s %%sabled" pretty-name)
261 (if ,mode "en" "dis"))))))
262 (force-mode-line-update)
263 ;; Return the new setting.
264 ,mode)
266 ;; Autoloading a define-minor-mode autoloads everything
267 ;; up-to-here.
268 :autoload-end
270 ;; Define the minor-mode keymap.
271 ,(unless (symbolp keymap) ;nil is also a symbol.
272 `(defvar ,keymap-sym
273 (let ((m ,keymap))
274 (cond ((keymapp m) m)
275 ((listp m) (easy-mmode-define-keymap m))
276 (t (error "Invalid keymap %S" ,keymap))))
277 ,(format "Keymap for `%s'." mode-name)))
279 ,(if (not (symbolp mode))
280 (if (or lighter keymap)
281 (error ":lighter and :keymap unsupported with mode expression %s" mode))
282 `(with-no-warnings
283 (add-minor-mode ',mode ',lighter
284 ,(if keymap keymap-sym
285 `(if (boundp ',keymap-sym) ,keymap-sym))
287 ,(unless (eq mode modefun) 'modefun)))))))
290 ;;; make global minor mode
293 ;;;###autoload
294 (defalias 'easy-mmode-define-global-mode 'define-globalized-minor-mode)
295 ;;;###autoload
296 (defalias 'define-global-minor-mode 'define-globalized-minor-mode)
297 ;;;###autoload
298 (defmacro define-globalized-minor-mode (global-mode mode turn-on &rest keys)
299 "Make a global mode GLOBAL-MODE corresponding to buffer-local minor MODE.
300 TURN-ON is a function that will be called with no args in every buffer
301 and that should try to turn MODE on if applicable for that buffer.
302 KEYS is a list of CL-style keyword arguments. As the minor mode
303 defined by this function is always global, any :global keyword is
304 ignored. Other keywords have the same meaning as in `define-minor-mode',
305 which see. In particular, :group specifies the custom group.
306 The most useful keywords are those that are passed on to the
307 `defcustom'. It normally makes no sense to pass the :lighter
308 or :keymap keywords to `define-globalized-minor-mode', since these
309 are usually passed to the buffer-local version of the minor mode.
311 If MODE's set-up depends on the major mode in effect when it was
312 enabled, then disabling and reenabling MODE should make MODE work
313 correctly with the current major mode. This is important to
314 prevent problems with derived modes, that is, major modes that
315 call another major mode in their body."
317 (let* ((global-mode-name (symbol-name global-mode))
318 (pretty-name (easy-mmode-pretty-mode-name mode))
319 (pretty-global-name (easy-mmode-pretty-mode-name global-mode))
320 (group nil)
321 (extra-keywords nil)
322 (MODE-buffers (intern (concat global-mode-name "-buffers")))
323 (MODE-enable-in-buffers
324 (intern (concat global-mode-name "-enable-in-buffers")))
325 (MODE-check-buffers
326 (intern (concat global-mode-name "-check-buffers")))
327 (MODE-cmhh (intern (concat global-mode-name "-cmhh")))
328 (MODE-major-mode (intern (concat (symbol-name mode) "-major-mode")))
329 keyw)
331 ;; Check keys.
332 (while (keywordp (setq keyw (car keys)))
333 (setq keys (cdr keys))
334 (case keyw
335 (:group (setq group (nconc group (list :group (pop keys)))))
336 (:global (setq keys (cdr keys)))
337 (t (push keyw extra-keywords) (push (pop keys) extra-keywords))))
339 (unless group
340 ;; We might as well provide a best-guess default group.
341 (setq group
342 `(:group ',(intern (replace-regexp-in-string
343 "-mode\\'" "" (symbol-name mode))))))
345 `(progn
346 (defvar ,MODE-major-mode nil)
347 (make-variable-buffer-local ',MODE-major-mode)
348 ;; The actual global minor-mode
349 (define-minor-mode ,global-mode
350 ;; Very short lines to avoid too long lines in the generated
351 ;; doc string.
352 ,(format "Toggle %s in every possible buffer.
353 With prefix ARG, turn %s on if and only if
354 ARG is positive.
355 %s is enabled in all buffers where
356 \`%s' would do it.
357 See `%s' for more information on %s."
358 pretty-name pretty-global-name pretty-name turn-on
359 mode pretty-name)
360 :global t ,@group ,@(nreverse extra-keywords)
362 ;; Setup hook to handle future mode changes and new buffers.
363 (if ,global-mode
364 (progn
365 (add-hook 'after-change-major-mode-hook
366 ',MODE-enable-in-buffers)
367 (add-hook 'fundamental-mode-hook ',MODE-enable-in-buffers)
368 (add-hook 'find-file-hook ',MODE-check-buffers)
369 (add-hook 'change-major-mode-hook ',MODE-cmhh))
370 (remove-hook 'after-change-major-mode-hook ',MODE-enable-in-buffers)
371 (remove-hook 'fundamental-mode-hook ',MODE-enable-in-buffers)
372 (remove-hook 'find-file-hook ',MODE-check-buffers)
373 (remove-hook 'change-major-mode-hook ',MODE-cmhh))
375 ;; Go through existing buffers.
376 (dolist (buf (buffer-list))
377 (with-current-buffer buf
378 (if ,global-mode (,turn-on) (when ,mode (,mode -1))))))
380 ;; Autoloading define-globalized-minor-mode autoloads everything
381 ;; up-to-here.
382 :autoload-end
384 ;; List of buffers left to process.
385 (defvar ,MODE-buffers nil)
387 ;; The function that calls TURN-ON in each buffer.
388 (defun ,MODE-enable-in-buffers ()
389 (dolist (buf ,MODE-buffers)
390 (when (buffer-live-p buf)
391 (with-current-buffer buf
392 (unless (eq ,MODE-major-mode major-mode)
393 (if ,mode
394 (progn
395 (,mode -1)
396 (,turn-on)
397 (setq ,MODE-major-mode major-mode))
398 (,turn-on)
399 (setq ,MODE-major-mode major-mode)))))))
400 (put ',MODE-enable-in-buffers 'definition-name ',global-mode)
402 (defun ,MODE-check-buffers ()
403 (,MODE-enable-in-buffers)
404 (setq ,MODE-buffers nil)
405 (remove-hook 'post-command-hook ',MODE-check-buffers))
406 (put ',MODE-check-buffers 'definition-name ',global-mode)
408 ;; The function that catches kill-all-local-variables.
409 (defun ,MODE-cmhh ()
410 (add-to-list ',MODE-buffers (current-buffer))
411 (add-hook 'post-command-hook ',MODE-check-buffers))
412 (put ',MODE-cmhh 'definition-name ',global-mode))))
415 ;;; easy-mmode-defmap
418 (eval-and-compile
419 (if (fboundp 'set-keymap-parents)
420 (defalias 'easy-mmode-set-keymap-parents 'set-keymap-parents)
421 (defun easy-mmode-set-keymap-parents (m parents)
422 (set-keymap-parent
424 (cond
425 ((not (consp parents)) parents)
426 ((not (cdr parents)) (car parents))
427 (t (let ((m (copy-keymap (pop parents))))
428 (easy-mmode-set-keymap-parents m parents)
429 m)))))))
431 ;;;###autoload
432 (defun easy-mmode-define-keymap (bs &optional name m args)
433 "Return a keymap built from bindings BS.
434 BS must be a list of (KEY . BINDING) where
435 KEY and BINDINGS are suitable for `define-key'.
436 Optional NAME is passed to `make-sparse-keymap'.
437 Optional map M can be used to modify an existing map.
438 ARGS is a list of additional keyword arguments.
440 Valid keywords and arguments are:
442 :name Name of the keymap; overrides NAME argument.
443 :dense Non-nil for a dense keymap.
444 :inherit Parent keymap.
445 :group Ignored.
446 :suppress Non-nil to call `suppress-keymap' on keymap,
447 'nodigits to suppress digits as prefix arguments."
448 (let (inherit dense suppress)
449 (while args
450 (let ((key (pop args))
451 (val (pop args)))
452 (case key
453 (:name (setq name val))
454 (:dense (setq dense val))
455 (:inherit (setq inherit val))
456 (:suppress (setq suppress val))
457 (:group)
458 (t (message "Unknown argument %s in defmap" key)))))
459 (unless (keymapp m)
460 (setq bs (append m bs))
461 (setq m (if dense (make-keymap name) (make-sparse-keymap name))))
462 (when suppress
463 (suppress-keymap m (eq suppress 'nodigits)))
464 (dolist (b bs)
465 (let ((keys (car b))
466 (binding (cdr b)))
467 (dolist (key (if (consp keys) keys (list keys)))
468 (cond
469 ((symbolp key)
470 (substitute-key-definition key binding m global-map))
471 ((null binding)
472 (unless (keymapp (lookup-key m key)) (define-key m key binding)))
473 ((let ((o (lookup-key m key)))
474 (or (null o) (numberp o) (eq o 'undefined)))
475 (define-key m key binding))))))
476 (cond
477 ((keymapp inherit) (set-keymap-parent m inherit))
478 ((consp inherit) (easy-mmode-set-keymap-parents m inherit)))
481 ;;;###autoload
482 (defmacro easy-mmode-defmap (m bs doc &rest args)
483 "Define a constant M whose value is the result of `easy-mmode-define-keymap'.
484 The M, BS, and ARGS arguments are as per that function. DOC is
485 the constant's documentation."
486 `(defconst ,m
487 (easy-mmode-define-keymap ,bs nil (if (boundp ',m) ,m) ,(cons 'list args))
488 ,doc))
492 ;;; easy-mmode-defsyntax
495 (defun easy-mmode-define-syntax (css args)
496 (let ((st (make-syntax-table (plist-get args :copy)))
497 (parent (plist-get args :inherit)))
498 (dolist (cs css)
499 (let ((char (car cs))
500 (syntax (cdr cs)))
501 (if (sequencep char)
502 (mapc (lambda (c) (modify-syntax-entry c syntax st)) char)
503 (modify-syntax-entry char syntax st))))
504 (if parent (set-char-table-parent
505 st (if (symbolp parent) (symbol-value parent) parent)))
506 st))
508 ;;;###autoload
509 (defmacro easy-mmode-defsyntax (st css doc &rest args)
510 "Define variable ST as a syntax-table.
511 CSS contains a list of syntax specifications of the form (CHAR . SYNTAX)."
512 `(progn
513 (autoload 'easy-mmode-define-syntax "easy-mmode")
514 (defconst ,st (easy-mmode-define-syntax ,css ,(cons 'list args)) ,doc)))
519 ;;; easy-mmode-define-navigation
522 (defmacro easy-mmode-define-navigation (base re &optional name endfun narrowfun
523 &rest body)
524 "Define BASE-next and BASE-prev to navigate in the buffer.
525 RE determines the places the commands should move point to.
526 NAME should describe the entities matched by RE. It is used to build
527 the docstrings of the two functions.
528 BASE-next also tries to make sure that the whole entry is visible by
529 searching for its end (by calling ENDFUN if provided or by looking for
530 the next entry) and recentering if necessary.
531 ENDFUN should return the end position (with or without moving point).
532 NARROWFUN non-nil means to check for narrowing before moving, and if
533 found, do `widen' first and then call NARROWFUN with no args after moving.
534 BODY is executed after moving to the destination location."
535 (declare (indent 5) (debug (exp exp exp def-form def-form &rest def-body)))
536 (let* ((base-name (symbol-name base))
537 (prev-sym (intern (concat base-name "-prev")))
538 (next-sym (intern (concat base-name "-next")))
539 (when-narrowed
540 (lambda (body)
541 (if (null narrowfun) body
542 `(let ((was-narrowed
543 (prog1 (or (< (- (point-max) (point-min)) (buffer-size)))
544 (widen))))
545 ,body
546 (when was-narrowed (,narrowfun)))))))
547 (unless name (setq name base-name))
548 `(progn
549 (add-to-list 'debug-ignored-errors
550 ,(concat "^No \\(previous\\|next\\) " (regexp-quote name)))
551 (defun ,next-sym (&optional count)
552 ,(format "Go to the next COUNT'th %s." name)
553 (interactive "p")
554 (unless count (setq count 1))
555 (if (< count 0) (,prev-sym (- count))
556 (if (looking-at ,re) (setq count (1+ count)))
557 ,(funcall when-narrowed
558 `(if (not (re-search-forward ,re nil t count))
559 (if (looking-at ,re)
560 (goto-char (or ,(if endfun `(,endfun)) (point-max)))
561 (error "No next %s" ,name))
562 (goto-char (match-beginning 0))
563 (when (and (eq (current-buffer) (window-buffer (selected-window)))
564 (called-interactively-p 'interactive))
565 (let ((endpt (or (save-excursion
566 ,(if endfun `(,endfun)
567 `(re-search-forward ,re nil t 2)))
568 (point-max))))
569 (unless (pos-visible-in-window-p endpt nil t)
570 (recenter '(0)))))))
571 ,@body))
572 (put ',next-sym 'definition-name ',base)
573 (defun ,prev-sym (&optional count)
574 ,(format "Go to the previous COUNT'th %s" (or name base-name))
575 (interactive "p")
576 (unless count (setq count 1))
577 (if (< count 0) (,next-sym (- count))
578 ,(funcall when-narrowed
579 `(unless (re-search-backward ,re nil t count)
580 (error "No previous %s" ,name)))
581 ,@body))
582 (put ',prev-sym 'definition-name ',base))))
585 (provide 'easy-mmode)
587 ;; arch-tag: d48a5250-6961-4528-9cb0-3c9ea042a66a
588 ;;; easy-mmode.el ends here