[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making Menu Bar with an About Buffer
From: |
Jean Louis |
Subject: |
Re: Making Menu Bar with an About Buffer |
Date: |
Fri, 21 Oct 2022 00:09:57 +0300 |
User-agent: |
Mutt/2.2.7+37 (a90f69b) (2022-09-02) |
* Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
[2022-10-17 00:38]:
> Have seen that Emacs has "About Emacs" and "About Gnu". I would like to do
> the same with a new "Menu Bar"
> called "Gundit" where there is "About Gundit" which prints about Gundit in a
> dedicated buffer.
>
> How can this be done?
You define function and add it to menu.
My function below uses about: hyperlinks, it decides what to display.
I have defined "about:" hyperlink in `browse-url-handlers' to be:
'(("gemini:" . elpher-go)
("gopher:" . elpher-handler-go)
("about:" . hyperscope-about)
("hyperscope:" . hyperscope-go)
("e2dk://" . amule-handler)))
Then this function is showing About, it has Hyperlinks underline where
it says about:
(defun hyperscope-about (&rest what)
(interactive)
(let* ((what (if (eql 'cons (type-of what))
(car what)
what))
(what (if (null what) "about:hyperscope" what)))
(cond ((string= what "about:hyperscope") (hyperscope-text-view "
===================================================
Hyperscope - Dynamic Knowledge Repository for Emacs
===================================================
about:emacs
about:emacs-fancy
about:hyperscope
"))
((string= what "about:emacs") (about-emacs))
((string= what "about:emacs-fancy") (fancy-about-screen))
(t (hyperscope-text-view "Maybe you wish to read
about:hyperscope")))))
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/