unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Gottfried <gottfried@posteo.de>,
	"mbork@mbork.pl" <mbork@mbork.pl>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Re: how can I make a reference card like the Emacs reference, card
Date: Sat, 10 Dec 2022 21:02:29 +0000	[thread overview]
Message-ID: <SJ0PR10MB54886614FC8D3AB99E5DA513F31F9@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <42668d33-45e1-eb87-0846-2acfdcd3f303@posteo.de>

> Hi Drew,
> thanks for help.
> I don't yet understand exactly how it works.
> 
> AFAIU I have to copy parts of the source file of keysee.el and sorie.el
> into my init.el file in order to install it.
> 
> But which parts?
> 
> this I should add:
> (global-set-key (kbd "S-<f10>") 'kc-complete-menu-bar)

That's only if you want to use `kc-complete-menu-bar'
(by hitting a key).

> what is with that?
> (require 'cl-macs) ;; cl-case, cl-loop
> (require 'sortie)
> 
> Does it also belong to the part I have to copy into my init.el file?

Yes.
To use `keysee.el' you need to require `sortie.el',
And you need to require `cl-macs.el' (or `cl-lib.el').

> There is text in between code, and AFAIU text should always have ;; at
> the beginning, but there are not those ;;

Where do you see text between code (other than in
comments or strings)?  If that were the case in some
library then you couldn't load it.

> so what is the real code?
> i just started learning emacs, so please forgive my ignorance

There's nothing to forgive.  Sorry if I wasn't clear.
You should be able to first try it interactively,
i.e., without changing anything in your init file.
For that, you can just use `M-x load-library' to load
`cl-macs.el' and `M-x load-file to load `sortie.el'
and then `keysee.el'.

(Or put the latter two in a directory that you add to
your `load-path' and then load them too using
`M-x load-library' instead of `M-x load-file'.)

If you decide to use `keysee.el' then you might want
to put this or similar in your init file:

 (require 'cl-macs)
 (add-to-list 'load-path "/SOME/DIRECTORY/SOMEWHERE/")
 (require 'sortie)
 (require 'keysee)

where /SOME/DIRECTORY/SOMEWHERE/ is the directory
where you've saved `sortie.el' and `keysee.el'.

This is the "old-fashioned" way to use a library
(package).  The value of variable `load-path' is a
list of libraries and directories that contain
libraries.  Those libraries can be loaded using
`load-library' or `require' - Emacs looks for them
where `load-path' tells it to look.

See the Emacs manual, node `Lisp Libraries':

https://www.gnu.org/software/emacs/manual/html_node/emacs/Lisp-Libraries.html


  reply	other threads:[~2022-12-10 21:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-09 19:40 how can I make a reference card like the Emacs reference, card Gottfried
2022-12-09 22:17 ` Jean Louis
2022-12-10 21:42   ` Marcin Borkowski
2022-12-10 22:11     ` Jean Louis
2022-12-10 22:39       ` Marcin Borkowski
2022-12-09 22:24 ` [External] : " Drew Adams
2022-12-10 20:28   ` Gottfried
2022-12-10 21:02     ` Drew Adams [this message]
2022-12-11 12:51       ` about keysee Gottfried
2022-12-11 14:45         ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-12-14 20:46           ` Emanuel Berg
2022-12-15  4:50             ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-12-15  5:10               ` Emanuel Berg
2022-12-11 16:10         ` [External] : " Drew Adams
     [not found]       ` <231e4551-5eb0-d472-8793-10c6cf24217b@posteo.de>
     [not found]         ` <6921b46e-bc88-ff46-8545-118677f9ccfb@posteo.de>
     [not found]           ` <f0aa1011-414b-8008-0faf-3490b07141dc@posteo.de>
     [not found]             ` <SJ0PR10MB5488FB2091E9E7BECEF74D95F3E29@SJ0PR10MB5488.namprd10.prod.outlook.com>
     [not found]               ` <53326500-cc84-5313-2b28-e4f424eb231c@posteo.de>
     [not found]                 ` <CO6PR10MB54734FE9DE53DA39DB92C6DCF3E09@CO6PR10MB5473.namprd10.prod.outlook.com>
2022-12-16 16:00                   ` [External] : keysee Gottfried
2022-12-10 21:46     ` [External] : Re: how can I make a reference card like the Emacs reference, card Marcin Borkowski
2022-12-10 22:10       ` Jean Louis
2022-12-11 12:18         ` Gottfried

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR10MB54886614FC8D3AB99E5DA513F31F9@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=gottfried@posteo.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mbork@mbork.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).