comparison lisp/emulation/crisp.el @ 29056:abee88aa37f0

(brief-mode): New alias.
author Dave Love <fx@gnu.org>
date Sun, 21 May 2000 17:33:05 +0000
parents 47cdb31c3a62
children 0d8b17d428b5
comparison
equal deleted inserted replaced
29055:661c97b907a8 29056:abee88aa37f0
349 (save-buffers-kill-emacs) 349 (save-buffers-kill-emacs)
350 (call-interactively 'execute-extended-command))) 350 (call-interactively 'execute-extended-command)))
351 351
352 ;;;###autoload 352 ;;;###autoload
353 (defun crisp-mode (&optional arg) 353 (defun crisp-mode (&optional arg)
354 "Toggle CRiSP emulation minor mode. 354 "Toggle CRiSP/Brief emulation minor mode.
355 With ARG, turn CRiSP mode on if ARG is positive, off otherwise." 355 With ARG, turn CRiSP mode on if ARG is positive, off otherwise."
356 (interactive "P") 356 (interactive "P")
357 (setq crisp-mode (if (null arg) 357 (setq crisp-mode (if (null arg)
358 (not crisp-mode) 358 (not crisp-mode)
359 (> (prefix-numeric-value arg) 0))) 359 (> (prefix-numeric-value arg) 0)))
369 (require 'scroll-all)) 369 (require 'scroll-all))
370 (if (featurep 'scroll-all) 370 (if (featurep 'scroll-all)
371 (define-key crisp-mode-map [(meta f1)] 'scroll-all-mode)) 371 (define-key crisp-mode-map [(meta f1)] 'scroll-all-mode))
372 (run-hooks 'crisp-mode-hook))) 372 (run-hooks 'crisp-mode-hook)))
373 373
374 ;; People might use Apropos on `brief'.
375 ;;;###autoload
376 (defalias 'brief-mode 'crisp-mode)
377
374 (if (fboundp 'add-minor-mode) 378 (if (fboundp 'add-minor-mode)
375 (add-minor-mode 'crisp-mode 'crisp-mode-modeline-string 379 (add-minor-mode 'crisp-mode 'crisp-mode-modeline-string
376 crisp-mode-map nil 'crisp-mode) 380 crisp-mode-map nil 'crisp-mode)
377 (or (assq 'crisp-mode minor-mode-alist) 381 (or (assq 'crisp-mode minor-mode-alist)
378 (setq minor-mode-alist 382 (setq minor-mode-alist