[oclug] UNIX philosophy (was Re: vim rulez...)

Bart Trojanowski bart at nexus.carleton.ca
Wed Apr 18 13:03:46 EDT 2001


BTW, I am an XEmacs user... but I didn't know about these two.  The
bindings are a bit awkward, so I tried to do this:

(global-set-key "\A-[" 'beginning-of-defun)
(global-set-key "\A-]" 'end-of-defun)

I have my Meta set to the Win keys.  The Alt in XEmacs for me is 'A'.

It works when I do M-{ and M-} (note I cannot use M-] or M-[ cuz those are
special ones already used).

(global-set-key "\M-{" 'beginning-of-defun)
(global-set-key "\M-}" 'end-of-defun)

However, when the init script is loading the original two set-key lines
the 'A' does not catch.  I am guessing that is defined later in the
configuration (not in .emacs) 'cuz if I remove the set-key lines and press
Alt] or Alt[ it tells me:

A-] not defined.
A-[ not defined.

When I put them in and run xemacs -debug-init I get...

  Signaling: (error "invalid prefix keys in sequence" ?A "A-[")
    define-key(#<keymap global-map 583 entries 0x2dc> "A-[" beginning-of-defun)
    global-set-key("A-[" beginning-of-defun)
    load-internal("~/.emacs" t t t undecided)
    load("~/.emacs" t t t)
    load-user-init-file("")
    load-init-file()
    command-line()
    normal-top-level()

I am not much of a list person but I know that this is tellming that it
does not know what the hell A is.  How do I tell it to use the Alt key for

B.

On Wed, 18 Apr 2001, David F. Skoll wrote:

> On Wed, 18 Apr 2001, Bart Trojanowski wrote:
>
> > Is there a way of skipping over a {} block in (X)Emacs?  That is one
> > feature that I like in vim.
>
> ESC C-f and ESC C-b.  You can also use ESC C-a and ESC C-e to go to the
> start/end of the current function definition.
>
> --
> David.
>
> _______________________________________________
> oclug mailing list
> oclug at lists.oclug.on.ca
> http://www.oclug.on.ca/mailman/listinfo/oclug
>

-- 
	WebSig: http://www.jukie.net/~bart/sig/




More information about the OCLUG mailing list