emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: global-reveal-mode and term.el


From: Dan Nicolaescu
Subject: Re: global-reveal-mode and term.el
Date: Sun, 27 Mar 2005 11:09:14 -0800

Stefan Monnier <address@hidden> writes:

  > > It seems that global-reveal-mode conflicts with the C-a and C-e key
  > > bindings in term.el
  > 
  > > (defvar reveal-mode-map
  > >   (let ((map (make-sparse-keymap)))
  > >     ;; Override the default move-beginning-of-line and move-end-of-line
  > >     ;; which skips valuable invisible text.
  > >     (define-key map [?\C-a] 'beginning-of-line)
  > >     (define-key map [?\C-e] 'end-of-line)
  > >     map))
  > 
  > > It is desirable that C-a and C-e are bound to term-send-raw for
  > > term.el
  > > I am not sure how to fix this. Can somebody please take a look? 
  > 
  > One possibility is to change reveal.el to do:
  > 
  >      (define-key map [remap move-beginning-of-line] 'beginning-of-line)
  >      (define-key map [remap move-end-of-line] 'end-of-line)

Yep, that works.
Thanks!

        --dan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]