unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Alternate binding for C-a
@ 2009-04-01  1:56 willwillis
  2009-04-01  7:44 ` Tassilo Horn
  0 siblings, 1 reply; 5+ messages in thread
From: willwillis @ 2009-04-01  1:56 UTC (permalink / raw)
  To: Help-gnu-emacs


I've attempted several times to change C-a ( beginning-of-line ) to M-a. Does
anyone know the elisp I'd need to put in my .emacs to make this change?

(yes, I use screen if you were wondering why'd I'd want to do such a thing)

Thanks,
Will
-- 
View this message in context: http://www.nabble.com/Alternate-binding-for-C-a-tp22818419p22818419.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





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

* Re: Alternate binding for C-a
  2009-04-01  1:56 willwillis
@ 2009-04-01  7:44 ` Tassilo Horn
  0 siblings, 0 replies; 5+ messages in thread
From: Tassilo Horn @ 2009-04-01  7:44 UTC (permalink / raw)
  To: help-gnu-emacs

willwillis <will.willis@gmail.com> writes:

> I've attempted several times to change C-a ( beginning-of-line ) to
> M-a. Does anyone know the elisp I'd need to put in my .emacs to make
> this change?

Try this:

  (global-set-key (kbd "M-a") 'beginning-of-line)

Bye,
Tassilo





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

* Re: Alternate binding for C-a
       [not found] <mailman.4360.1238561052.31690.help-gnu-emacs@gnu.org>
@ 2009-04-01  9:11 ` Pascal J. Bourguignon
  2009-04-01 17:44   ` Jonathan Groll
       [not found]   ` <mailman.4399.1238607876.31690.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Pascal J. Bourguignon @ 2009-04-01  9:11 UTC (permalink / raw)
  To: help-gnu-emacs

willwillis <will.willis@gmail.com> writes:

> I've attempted several times to change C-a ( beginning-of-line ) to M-a. Does
> anyone know the elisp I'd need to put in my .emacs to make this change?
>
> (yes, I use screen if you were wondering why'd I'd want to do such a thing)

In screen, type: C-a :escape ^Z^Z RET   (type caret and Z, caret and Z)
This change screen's escape to C-z, which is bound to
iconify-or-deiconify-frame, useless in screen.

Otherwise see the other answer on how to change key bindings in emacs.

-- 
__Pascal Bourguignon__


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

* Re: Alternate binding for C-a
  2009-04-01  9:11 ` Alternate binding for C-a Pascal J. Bourguignon
@ 2009-04-01 17:44   ` Jonathan Groll
       [not found]   ` <mailman.4399.1238607876.31690.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Jonathan Groll @ 2009-04-01 17:44 UTC (permalink / raw)
  To: Pascal J. Bourguignon, help-gnu-emacs

On Wed, Apr 01, 2009 at 11:11:15AM +0200, Pascal J. Bourguignon wrote:
>willwillis <will.willis@gmail.com> writes:
>
>> I've attempted several times to change C-a ( beginning-of-line ) to M-a. Does
>> anyone know the elisp I'd need to put in my .emacs to make this change?
>>
>> (yes, I use screen if you were wondering why'd I'd want to do such a thing)
>
>In screen, type: C-a :escape ^Z^Z RET   (type caret and Z, caret and Z)
>This change screen's escape to C-z, which is bound to
>iconify-or-deiconify-frame, useless in screen.
>
I personally find this binding works best in my ~/.screenrc :

#Press backtick twice if you want a backtick, else its the command character
escape ``

Cheers,
Jonathan




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

* Re: Alternate binding for C-a
       [not found]   ` <mailman.4399.1238607876.31690.help-gnu-emacs@gnu.org>
@ 2009-04-02  3:57     ` poppyer
  0 siblings, 0 replies; 5+ messages in thread
From: poppyer @ 2009-04-02  3:57 UTC (permalink / raw)
  To: help-gnu-emacs


Jonathan Groll <lists@groll.co.za> writes:

: On Wed, Apr 01, 2009 at 11:11:15AM +0200, Pascal J. Bourguignon wrote:
:>willwillis <will.willis@gmail.com> writes:
:>
:>> I've attempted several times to change C-a ( beginning-of-line ) to M-a. Does
:>> anyone know the elisp I'd need to put in my .emacs to make this change?
:>>
:>> (yes, I use screen if you were wondering why'd I'd want to do such a thing)
:>
:>In screen, type: C-a :escape ^Z^Z RET   (type caret and Z, caret and Z)
:>This change screen's escape to C-z, which is bound to
:>iconify-or-deiconify-frame, useless in screen.
:>
: I personally find this binding works best in my ~/.screenrc :
:
: #Press backtick twice if you want a backtick, else its the command character
: escape ``
:
But using ` as screen prefix will destroy 'mouse wheel up' event in
emacs (xterm-mouse-mode/mouse-wheel-mode)



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

end of thread, other threads:[~2009-04-02  3:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.4360.1238561052.31690.help-gnu-emacs@gnu.org>
2009-04-01  9:11 ` Alternate binding for C-a Pascal J. Bourguignon
2009-04-01 17:44   ` Jonathan Groll
     [not found]   ` <mailman.4399.1238607876.31690.help-gnu-emacs@gnu.org>
2009-04-02  3:57     ` poppyer
2009-04-01  1:56 willwillis
2009-04-01  7:44 ` Tassilo Horn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).