LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2010, 05:32 AM   #1
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
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?
 
Old 04-21-2010, 07:10 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,487

Rep: Reputation: 88
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
?
 
1 members found this post helpful.
Old 04-21-2010, 07:41 AM   #3
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Original Poster
Rep: Reputation: 63
Quote:
Originally Posted by rylan76 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
launching emacs-snapshot with the emacs command pamparana Linux - Newbie 1 07-21-2009 02:05 PM
What is emacs command to select menu pppaaarrrkkk Linux - Software 6 07-26-2008 09:12 AM
Emacs Lisp - buffer name as part of compile-command jantman Programming 4 10-02-2006 09:32 PM
bash: emacs: command not found appel Linux - Software 1 08-05-2003 10:18 AM
EMACS won't work on unix from command line! jcrapps Programming 2 02-03-2003 11:06 PM


All times are GMT -5. The time now is 05:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration