[slime-devel] Binding C-a / HOME

Helmut Eller heller at common-lisp.net
Mon Aug 30 15:38:33 UTC 2010


* Matthew Mondor [2010-08-30 08:20] writes:

> I admit still considering myself new to emacs, as I only use it with
> Slime for Lisp (using Vim since many years for other languages I have
> to deal with), but I noticed that although ctrl-a indeed moves the
> cursor at the first column on the current line, the actual [home] key
> (although not being one of the recommended emacs editing keys) moves it
> at the top of the document as for alt-<.  Is this expected behaviour or
> am I missing something in my configuration?  The [end] key behaves fine
> as ctrl-e.  This is using GNU Emacs in urxvt.

I think that changed in Emacs 21 or 22, previously HOME was for
beginning-of-buffer and and now it's beginning-of-line.  See
bindings.el:

  ;; natural bindings for terminal keycaps --- defined in X keysym order
  (define-key global-map [C-S-backspace]  'kill-whole-line)
  (define-key global-map [home]           'move-beginning-of-line)
  (define-key global-map [C-home]         'beginning-of-buffer)
  (define-key global-map [M-home]         'beginning-of-buffer-other-window)
  (define-key esc-map    [home]           'beginning-of-buffer-other-window)

There may also be differences in the way escape sequences of urxvt are
translated to Emacs' notion of function key.

Helmut





More information about the slime-devel mailing list