[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Adding a menu item for htmlfontify-buffer to File menu
From: |
Masatake YAMATO |
Subject: |
Adding a menu item for htmlfontify-buffer to File menu |
Date: |
Fri, 12 Nov 2010 23:04:57 +0900 (JST) |
How do you think adding a menu item for htmlfontify-buffer to File menu?
html format is popular so newer user may want to know emacs has an
ability to convert the buffer display to html format.
=== modified file 'lisp/ChangeLog'
--- lisp/ChangeLog 2010-11-09 08:00:46 +0000
+++ lisp/ChangeLog 2010-11-09 19:00:11 +0000
@@ -1,3 +1,8 @@
+2010-11-09 Masatake YAMATO <address@hidden>
+
+ * menu-bar.el (menu-bar-file-menu): Add a new item "Convert Buffer to
HTML"
+ to File menu.
+
=== modified file 'lisp/menu-bar.el'
--- lisp/menu-bar.el 2010-10-31 14:40:01 +0000
+++ lisp/menu-bar.el 2010-11-09 18:58:34 +0000
@@ -131,6 +131,11 @@
(define-key menu-bar-file-menu [separator-window]
menu-bar-separator)
+(define-key menu-bar-file-menu [htmlfontify-buffer]
+ `(menu-item ,(purecopy "Convert Buffer to HTML") htmlfontify-buffer
+ :enable (menu-bar-menu-frame-live-and-visible-p)
+ :help ,(purecopy "Pretty-print current buffer to a new buffer in
HTML")))
+
(define-key menu-bar-file-menu [ps-print-region]
`(menu-item ,(purecopy "Postscript Print Region (B+W)") ps-print-region
:enable mark-active
- Adding a menu item for htmlfontify-buffer to File menu,
Masatake YAMATO <=