* lisp/textmodes/enriched.el (enriched-mode): Don't add "Text
Properties" sub-menu to Text mode menu.
* lisp/facemenu.el (menu-bar-edit-menu): Add "Text Properties"
sub-menu back to the Edit menu.
(define-key map [fc] (cons "Face" 'facemenu-face-menu)))
(defalias 'facemenu-menu facemenu-menu)
+(easy-menu-add-item
+ menu-bar-edit-menu nil
+ ["Text Properties" facemenu-menu])
+
(defvar facemenu-keymap
(let ((map (make-sparse-keymap "Set face")))
(define-key map "o" (cons "Other..." 'facemenu-set-face))
;;; 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.