all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Help:  I need to use beginning-of-defun
@ 2006-06-15 22:21 Bruce Korb
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Korb @ 2006-06-15 22:21 UTC (permalink / raw)


My new Fedora platform's X environment eats C-A-a, so I need another
binding.  I can manually type:

  A-x global-set-key<enter>
  <<three keys held: C-s-a>> beginning-of-defun<enter>

every time I start emacs, but that is not any fun.
Nor is <escape>-<release>-'a'<release>.  Escape is way
too far from the home keys.

I can put:

   (global-set-key [C-s-a]     'beginning-of-defun)

in my .emacs file, and the binding shows up as:

   C-s-a        beginning-of-defun

Unfortunately, that is not recognized.  I need this:

   <C-s-a>        beginning-of-defun

in the table.  And, if there is any comprehensible
documentation of how to spell these things existing
anywhere, I am not able to locate it.

If there is anybody with any emacs development ability
out there reading this, is there any way possible to
have some function say, ``insert-key-name'' that will
take my ``<<three keys held: C-s-a>>'' and insert
whatever magic spelling it takes to be able to create
a valid:

  (global-set-key <<GOBBELDY_GOOK_GOES_HERE>> `somefunction)

PLEASE? please please?  It feels like every time my platform
wiggles, I wind up spending hours and hours and hours just
trying to figure out how to bind standard functions to standard
keys because some standard key gets hosed.  *sigh*.  Thank you.  :(

Regards, Bruce

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help:  I need to use beginning-of-defun
       [not found] <mailman.2936.1150443770.9609.help-gnu-emacs@gnu.org>
@ 2006-06-16  9:29 ` Andreas Roehler
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Roehler @ 2006-06-16  9:29 UTC (permalink / raw)


Bruce Korb wrote:

> My new Fedora platform's X environment eats C-A-a, so I need
> another
> binding.  I can manually type:
> 
>   A-x global-set-key<enter>
>   <<three keys held: C-s-a>> beginning-of-defun<enter>
> 
> every time I start emacs, but that is not any fun.
> Nor is <escape>-<release>-'a'<release>.  Escape is way
> too far from the home keys.
> 
> I can put:
> 
>    (global-set-key [C-s-a]     'beginning-of-defun)
> 
> in my .emacs file, and the binding shows up as:
> 
>    C-s-a        beginning-of-defun
> 
> Unfortunately, that is not recognized.  I need this:
> 
>    <C-s-a>        beginning-of-defun
> 
> in the table.  And, if there is any comprehensible
> documentation of how to spell these things existing
> anywhere, I am not able to locate it.
> 
> If there is anybody with any emacs development ability
> out there reading this, is there any way possible to
> have some function say, ``insert-key-name'' that will
> take my ``<<three keys held: C-s-a>>'' and insert
> whatever magic spelling it takes to be able to create
> a valid:
> 
>   (global-set-key <<GOBBELDY_GOOK_GOES_HERE>> `somefunction)
> 
> PLEASE? please please?  It feels like every time my platform
> wiggles, I wind up spending hours and hours and hours just
> trying to figure out how to bind standard functions to standard
> keys because some standard key gets hosed.  *sigh*.  Thank you.
>  :(
> 
> Regards, Bruce

Here runs this:

(define-key emacs-lisp-mode-map (kbd "C-s-a") 'beginning-of-defun)

See also:

http://tiny-tools.sourceforge.net/emacs-keys.html

__
Andreas Roehler

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-16  9:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2936.1150443770.9609.help-gnu-emacs@gnu.org>
2006-06-16  9:29 ` Help: I need to use beginning-of-defun Andreas Roehler
2006-06-15 22:21 Bruce Korb

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.