From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: cmr.Pent@gmail.com Newsgroups: gmane.emacs.help Subject: Delete (kill) entire line at cursor - how? Date: 5 Mar 2007 23:22:42 -0800 Organization: http://groups.google.com Message-ID: <1173165762.936371.202290@q40g2000cwq.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="koi8-r" X-Trace: sea.gmane.org 1173166867 8644 80.91.229.12 (6 Mar 2007 07:41:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2007 07:41:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 06 08:40:59 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HOUI3-0003No-LS for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Mar 2007 08:40:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOUI4-0008PJ-29 for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Mar 2007 02:40:56 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!q40g2000cwq.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 195.208.219.249 Original-X-Trace: posting.google.com 1173165769 23345 127.0.0.1 (6 Mar 2007 07:22:49 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 6 Mar 2007 07:22:49 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 router.cmm.msu.su:8080 (squid/2.6.STABLE5) Complaints-To: groups-abuse@google.com Injection-Info: q40g2000cwq.googlegroups.com; posting-host=195.208.219.249; posting-account=OUbbXw0AAADs1NYyXuDd-yGYsBpwSzOe Original-Xref: shelby.stanford.edu gnu.emacs.help:146100 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41704 Archived-At: I've been a Windows user for years, but recently I began to feel that my usual work (mostly R scripts and scientific articles) could be done much more efficiently in text-oriented environment, which Linux is. So I've installed Linux and tried some editors like Kate, but they didn't suit my needs 100% (for example, I don't know how to switch between text file and console using keyboard, keeping console open; plus Kate loads like ages). Now I'm studying Emacs. Well, Emacs has this kewl psychotherapist and Conway's life built in, but from the tutorial I got impression it lacks a very simple but extremely useful feature. It says that to delete line at cursor I must hit C-a C-k C-k, while for examle mcedit (and many Windows progs I'm used to) have a C-y shortcut for such operation. Furthermore, when I hit C-y in mcedit, the cursor stays at the same position, but the technique the official Emacs tutorial suggests means that your cursor will go to the start of the line - not very handy for me. I believe the Emacs is powerful enough to emulate such a feature, so please, Emacs gurus, point me out how to create a _simple_ shortcut (like C-y) which would kill line at cursor not moving the cursor itself. Pent