LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Emacs command question (https://www.linuxquestions.org/questions/linux-newbie-8/emacs-command-question-803236/)

cola 04-21-2010 04:32 AM

Emacs command question
 
What's the command to delete from the cursor position to the beginning of the line or to the beginning of the document?

And what's the command to delete from the cursor position to the end of the document?

rylan76 04-21-2010 06:10 AM

Well, on my 21.3 Emacs at work, to delete to the end of line I press the following keys, in sequence:

Code:

-- Place cursor at the start of the line

CTRL+SPACE

SHIFT+END

CTRL+W

To delete to the end of the file:

Code:

CTRL+SPACE

CTRL+PAGE DOWN

CTRL+W

?

cola 04-21-2010 06:41 AM

Quote:

Originally Posted by rylan76 (Post 3942483)
Well, on my 21.3 Emacs at work, to delete to the end of line I press the following keys, in sequence:

Code:

-- Place cursor at the start of the line

CTRL+SPACE

SHIFT+END

CTRL+W

To delete to the end of the file:

Code:

CTRL+SPACE

CTRL+PAGE DOWN

CTRL+W

?

The firs one works.Second one does not.
"CTRL+PAGE DOWN" doesn't work.I can do this manually moving the cursor to the end of document.
Code:

C-<space>
move the cursor to the end of document
C-w

It works.
Thanks.


All times are GMT -5. The time now is 06:50 PM.