* lisp/menu-bar.el (menu-bar-edit-menu): Move from here...
* lisp/textmodes/enriched.el (enriched-mode): ... to here.
(defvar menu-bar-edit-menu
(let ((menu (make-sparse-keymap "Edit")))
- (bindings--define-key menu [props]
- '(menu-item "Text Properties" facemenu-menu))
-
;; ns-win.el said: Add spell for platform consistency.
(if (featurep 'ns)
(bindings--define-key menu [spell]
;;; Code:
+(require 'facemenu)
(provide 'enriched)
;;;
(t ; Turn mode on
(add-hook 'change-major-mode-hook
#'enriched-before-change-major-mode nil 'local)
+ (easy-menu-add-item
+ text-mode-menu nil
+ ["Text Properties" facemenu-menu :help "Change text properties"])
(add-to-list 'buffer-file-format 'text/enriched)
;; Save old variable values before we change them.
;; These will be restored if we exit Enriched mode.