[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to delete a line without putting them into yanking?
From: |
Mathias Dahl |
Subject: |
Re: how to delete a line without putting them into yanking? |
Date: |
10 Sep 2004 16:51:11 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Rokia <Rokia@yahoo.com.cn.discuss> writes:
> I add this: (global-set-key (kbd "C-c d") 'delete-line)
>
> when I press "C-c d" , I got this prompt:
>
> Symbol's defination is void :delete-line
>
> what's wrong. need I install some additional library?
Yes, probably. delete-line is not in a standard Emacs
install. At least not in mine (21.3).
Try this:
1. Put cursor somewhere on a line
2. C-x (
3. C-a
4. C-k
5. C-x )
Now you have recorded a macro that you can give a name:
6. M-x name-last-kbd-macro RET my-kill-line RET
Insert the macro definition in your .emacs file by opening
.emacs and going to the end of the buffer:
7. insert-kbd-macro RET my-kill-line RET
Bind the new macro using the method you tried before.
/Mathias
- how to delete a line without putting them into yanking?, Rokia, 2004/09/08
- Message not available
- Re: how to delete a line without putting them into yanking?, Rokia, 2004/09/08
- Message not available
- Re: how to delete a line without putting them into yanking?, Ole Laursen, 2004/09/09
- Re: how to delete a line without putting them into yanking?, Rokia, 2004/09/10
- Re: how to delete a line without putting them into yanking?,
Mathias Dahl <=
- Re: how to delete a line without putting them into yanking?, Michael Slass, 2004/09/10
- Re: how to delete a line without putting them into yanking?, J. David Boyd, 2004/09/10
- Re: how to delete a line without putting them into yanking?, emacs Fan, 2004/09/10
Re: how to delete a line without putting them into yanking?, Eli Zaretskii, 2004/09/09