all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "David Vanderschel" <DJV4@Austin.RR.com>
Subject: Re: Newbie questions
Date: Sun, 24 Dec 2006 11:19:03 -0600	[thread overview]
Message-ID: <458eb63c$0$4873$4c368faf@roadrunner.com> (raw)
In-Reply-To: 1166976047.172487.194790@42g2000cwt.googlegroups.com

<ocelot1970@gmail.com> wrote in message
news:1166976047.172487.194790@42g2000cwt.googlegroups.com...
> 1) Is there a way to see what a keyboard shortcut is currently bound
> to? Before I write my own programs making my own, I want to make sure
> I'm not unbinding something really important.

Some useful help functions:

What does this key-sequence do?

    C-h k runs the command describe-key
       which is an interactive compiled Lisp function in `help'.
    (describe-key KEY)

    Display documentation of the function invoked by KEY.  KEY is a string.


What key-sequence invokes this function?

    C-h w runs the command where-is
       which is an interactive compiled Lisp function in `help'.
    (where-is DEFINITION &optional INSERT)

    Print message listing key sequences that invoke the command DEFINITION.
    Argument is a command definition, usually a symbol with a function
definition.
    If INSERT (the prefix arg) is non-nil, insert the
    message in the buffer.


What special keys are bound in the current mode?

    C-h m runs the command describe-mode
       which is an interactive compiled Lisp function in `help'.
    (describe-mode)

    Display documentation of current major mode and minor modes.
    The major mode description comes first, followed by the minor modes,
    each on a separate page.

    For this to work correctly for a minor mode, the mode's indicator
variable
    (listed in `minor-mode-alist') must also be a function whose
documentation
    describes the minor mode.


> 2) Is there a way to see a list of all functions that can possible be
> bound to keymappings, the list of files they appear in, and their
> descriptions?

The list is bigger than you would want to see all at
once.  There is really no limit, as you can create
your own functions as well.  In almost all cases, the
detailed documentation for an emacs package is in the
source code.  Just browse the emacs/lisp/ library to
get an idea of the magnitude of the problem.  But most
of the things you would be interested in are also
documented the Emacs info file:  C-h i.  I learned
Emacs by reading the info file.


> 3) Are there any key combos with meta and ctrl that are not allowed
> when creating my own key bindings? Any reason why I wouldn't use C-q,
> C-w, C-e, etc. just go through the keyboard and use what's not used yet?

Virtually all of the alphabetic keys with either the
control or meta modifier are already assigned for
something.  You can usurp the default bindings; but I
would not recommend it, as you may someday find need
for a function whose default key-sequence you assigned
to something else.  As long as you are just starting
with Emacs and have no history that makes key-binding
changes desirable for you, I would recommend staying
with the defaults.

I define lots of my own functions which I need to bind
somehow.  Unless mine is a replacement for an
already-bound function, I usually use a prefix key to
distinguish my own bindings.  (I have many prefixed
with each of C-z, F12, and F6.  (My C-z prefix
preempts the regular C-z binding which I have on C-z
C-z.))

You can also use the Windows Key as a modifier, which
will also keep you from running afoul of standard
Emacs bindings.  (Just avoid Windows Key combinations
defined by the OS.  In Emacs, I usually use the
Windows Key only in combination with ctrl or meta to
avoid things outside Emacs that might otherwise grab
the key; and I do it only for functions that would
make sense only on a PC.)

The keypad keys with ctrl and meta modifiers _are_
available.

Regards,
  David V.

  parent reply	other threads:[~2006-12-24 17:19 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-24 16:00 Newbie questions ocelot1970
2006-12-24 17:15 ` Peter Dyballa
2006-12-24 17:38   ` Michaël Cadilhac
2006-12-24 17:19 ` David Vanderschel [this message]
2006-12-27  7:31 ` Kevin Rodgers
  -- strict thread matches above, loose matches on Subject: below --
2009-07-09 20:37 Newbie Questions Andrew M. Nuxoll
2009-07-09 21:04 ` Brian van den Broek
2009-07-10  3:16 ` Nick Dokos
2009-07-10  4:08   ` Andrew M. Nuxoll
2009-07-10  7:06     ` Ian Barton
2009-07-10 15:26     ` Eric S Fraga
     [not found]       ` <ucecesf@ucl.ac.uk>
2009-07-10 16:32         ` Nick Dokos
2009-07-10 17:48           ` Nicolas Goaziou
2009-07-10 17:53             ` Eric S Fraga
2009-07-10 17:49           ` Eric S Fraga
2009-08-03  4:27   ` Carsten Dominik
2009-07-10 17:43 ` Memnon Anon
2009-08-03 20:35 ` Samuel Wales
2009-04-06 11:04 newbie questions Stathis Sideris
2009-04-06 15:40 ` Manish
2009-04-08 15:44 ` Carsten Dominik
     [not found] <mailman.2542.1076996903.928.help-gnu-emacs@gnu.org>
2004-02-17  9:38 ` FKtPp@Office ;)
2004-02-17  5:46 niDapeng
2004-02-17  7:21 ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to='458eb63c$0$4873$4c368faf@roadrunner.com' \
    --to=djv4@austin.rr.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.