* mouse-less emacs
@ 2008-01-25 5:01 sahteaccount
2008-01-25 6:36 ` Vyazovoi Pavel
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: sahteaccount @ 2008-01-25 5:01 UTC (permalink / raw)
To: help-gnu-emacs
I am a fairly new linux and emacs user. When I was using a text editor
under windows, I rarely used the mouse. I used ctrl+shift+arrow keys
to select text and ctrl+c and ctrl+v to do copy paste stuff.
So far in linux (and emacs) whenever I need to copy/paste something, I
highlight the text with mouse and then middle-click the mouse to paste
it. What would be the shortcuts to do same things in emacs with
keyboard? Especially equivalent of ctrl+shift+arrow key in emacs?
Also ctrl+c and ctrl+v are conveniently located on the keyboard. To my
despair ctrl+c has a different meaning (kill!) for linux.
Finally... Undo is simply ctrl+z in windows, while linux uses that
combination to suspend the process. Emacs's ctrl+_ is difficult
because
1) those key are not close to each other
2) I don't have an explicit _ key. It is 'shift' of +. So I need to
ctrl+shift+ + which is obviously harder.
Please help this poor soul in his transition to Linux and emacs
Thanks all
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: mouse-less emacs
2008-01-25 5:01 mouse-less emacs sahteaccount
@ 2008-01-25 6:36 ` Vyazovoi Pavel
2008-01-25 6:53 ` David Kastrup
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Vyazovoi Pavel @ 2008-01-25 6:36 UTC (permalink / raw)
To: help-gnu-emacs
sahteaccount@gmail.com writes:
> I am a fairly new linux and emacs user. When I was using a text editor
> under windows, I rarely used the mouse. I used ctrl+shift+arrow keys
> to select text and ctrl+c and ctrl+v to do copy paste stuff.
>
> So far in linux (and emacs) whenever I need to copy/paste something, I
> highlight the text with mouse and then middle-click the mouse to paste
> it. What would be the shortcuts to do same things in emacs with
> keyboard? Especially equivalent of ctrl+shift+arrow key in emacs?
>
> Also ctrl+c and ctrl+v are conveniently located on the keyboard. To my
> despair ctrl+c has a different meaning (kill!) for linux.
>
> Finally... Undo is simply ctrl+z in windows, while linux uses that
> combination to suspend the process. Emacs's ctrl+_ is difficult
> because
> 1) those key are not close to each other
> 2) I don't have an explicit _ key. It is 'shift' of +. So I need to
> ctrl+shift+ + which is obviously harder.
>
> Please help this poor soul in his transition to Linux and emacs
>
> Thanks all
Emacs is mouseless operating system.
C-h i, C-h t - embedded help system.
Brief: C-spc, C-spc-spc for setting mark and selecting text, M-w for
copying, C-w for cutting, C-y for inserting. And many many more in help
system. I recommend to swap Ctrl with CapsLock for easy use emacs keybindings.
For example - write this simple macro to your .emacs and select word
under cursor with M-@:
(fset 'mark-whole-word
[C-right ?\C- ?\C- C-left])
(global-set-key (kbd "M-@") 'mark-whole-word)
Sorry for my bad english.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: mouse-less emacs
2008-01-25 5:01 mouse-less emacs sahteaccount
2008-01-25 6:36 ` Vyazovoi Pavel
@ 2008-01-25 6:53 ` David Kastrup
2008-01-25 12:57 ` Sebastian Tennant
2008-01-25 20:22 ` Peter Dyballa
` (2 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: David Kastrup @ 2008-01-25 6:53 UTC (permalink / raw)
To: help-gnu-emacs
sahteaccount@gmail.com writes:
> I am a fairly new linux and emacs user. When I was using a text editor
> under windows, I rarely used the mouse. I used ctrl+shift+arrow keys
> to select text and ctrl+c and ctrl+v to do copy paste stuff.
>
> So far in linux (and emacs) whenever I need to copy/paste something, I
> highlight the text with mouse and then middle-click the mouse to paste
> it. What would be the shortcuts to do same things in emacs with
> keyboard? Especially equivalent of ctrl+shift+arrow key in emacs?
C-SPC (twice if you want to specially mark the region for a number of
region-restricted commands), move to the other side of the region. For
copy, type M-w, for kill C-w. At insertion point, type C-y.
It is not like Emacs does not have a handy reference card coming with
it.
> Finally... Undo is simply ctrl+z in windows, while linux uses that
> combination to suspend the process. Emacs's ctrl+_ is difficult
> because
> 1) those key are not close to each other
> 2) I don't have an explicit _ key. It is 'shift' of +. So I need to
> ctrl+shift+ + which is obviously harder.
C-/ is also undo.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: mouse-less emacs
2008-01-25 6:53 ` David Kastrup
@ 2008-01-25 12:57 ` Sebastian Tennant
0 siblings, 0 replies; 8+ messages in thread
From: Sebastian Tennant @ 2008-01-25 12:57 UTC (permalink / raw)
To: help-gnu-emacs
Quoth David Kastrup <dak@gnu.org>:
> It is not like Emacs does not have a handy reference card coming with
> it.
No refcard! Of course Emacs has a refcard. I have the following:
/usr/share/emacs/22.1/etc/cs-refcard.ps
/usr/share/emacs/22.1/etc/cs-refcard.tex
/usr/share/emacs/22.1/etc/de-refcard.ps
/usr/share/emacs/22.1/etc/de-refcard.tex
/usr/share/emacs/22.1/etc/fr-refcard.ps
/usr/share/emacs/22.1/etc/fr-refcard.tex
/usr/share/emacs/22.1/etc/gnus-refcard.ps
/usr/share/emacs/22.1/etc/gnus-refcard.tex
/usr/share/emacs/22.1/etc/pl-refcard.ps
/usr/share/emacs/22.1/etc/pl-refcard.tex
/usr/share/emacs/22.1/etc/pt-br-refcard.ps
/usr/share/emacs/22.1/etc/pt-br-refcard.tex
/usr/share/emacs/22.1/etc/refcard.ps
/usr/share/emacs/22.1/etc/refcard.tex
/usr/share/emacs/22.1/etc/ru-refcard.ps
/usr/share/emacs/22.1/etc/ru-refcard.tex
/usr/share/emacs/22.1/etc/sk-refcard.ps
/usr/share/emacs/22.1/etc/sk-refcard.tex
>> Finally... Undo is simply ctrl+z in windows, while linux uses that
>> combination to suspend the process. Emacs's ctrl+_ is difficult
>> because
>> 1) those key are not close to each other
>> 2) I don't have an explicit _ key. It is 'shift' of +. So I need to
>> ctrl+shift+ + which is obviously harder.
>
> C-/ is also undo.
and C-x u.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: mouse-less emacs
2008-01-25 5:01 mouse-less emacs sahteaccount
2008-01-25 6:36 ` Vyazovoi Pavel
2008-01-25 6:53 ` David Kastrup
@ 2008-01-25 20:22 ` Peter Dyballa
2008-01-25 22:06 ` Xah Lee
2008-01-25 23:52 ` Sven Bretfeld
4 siblings, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2008-01-25 20:22 UTC (permalink / raw)
To: sahteaccount; +Cc: help-gnu-emacs
Am 25.01.2008 um 06:01 schrieb sahteaccount:
> Please help this poor soul in his transition to Linux and emacs
C-h t will load the GNU Emacs tutorial. It will explain and teach a
few basic things.
C-h i will start info-mode, a hyper-text system that documents all of
Emacs. There you'll find information how to change key bindings in
your user-init-file, usually ~/.emacs. There seems to exist a setup
for (former?) losedos users: cua-mode.
There is extra information on the Internet. Would you like to visit
the Emacs Wiki? http://www.emacswiki.org/cgi-bin/wiki.
It's likely that already ELisp code exists to completely alter the
key bindings. Maybe here: http://xahlee.org/PageTwo_dir/more.html.
--
Greetings
Pete
Who the fsck is "General Failure," and why is he reading my disk?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: mouse-less emacs
2008-01-25 5:01 mouse-less emacs sahteaccount
` (2 preceding siblings ...)
2008-01-25 20:22 ` Peter Dyballa
@ 2008-01-25 22:06 ` Xah Lee
2008-01-28 16:37 ` Joel J. Adamson
2008-01-25 23:52 ` Sven Bretfeld
4 siblings, 1 reply; 8+ messages in thread
From: Xah Lee @ 2008-01-25 22:06 UTC (permalink / raw)
To: help-gnu-emacs
all you have to do is turn on the CUA mode.
i quote from my emacs tutorial
http://xahlee.org/emacs/emacs.html
First, turn on the CUA mode, under the menu “Options‣C-x/C-c/C-v Cut
and Paste (CUA)” then select “Options‣Save Options”
This achieve 4 things: (1) Cut/Copy/Paste has shortcuts with x/c/v
keys; (2) Text selection will be highlighted; (3) Typing while a
region is selected will delete/over-ride it. (4) Text selection can be
done by holding down the Shift key and press a arrow key.
you can get a visual template of default keyboard shortcuts, or
instructions how to define any shortcuts, from my tutorial above.
Xah
xah@xahlee.org
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: mouse-less emacs
2008-01-25 5:01 mouse-less emacs sahteaccount
` (3 preceding siblings ...)
2008-01-25 22:06 ` Xah Lee
@ 2008-01-25 23:52 ` Sven Bretfeld
4 siblings, 0 replies; 8+ messages in thread
From: Sven Bretfeld @ 2008-01-25 23:52 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 2722 bytes --]
sahteaccount@gmail.com writes:
> I am a fairly new linux and emacs user. When I was using a text editor
> under windows, I rarely used the mouse. I used ctrl+shift+arrow keys
> to select text and ctrl+c and ctrl+v to do copy paste stuff.
In Emacs you don't need a mouse at all. That's one of the (many)
reasons why I use Emacs for everything. You should read at least a
minimal amount of documentation, for example one of the many Emacs
tutorials on the web.
> So far in linux (and emacs) whenever I need to copy/paste something, I
> highlight the text with mouse and then middle-click the mouse to paste
> it. What would be the shortcuts to do same things in emacs with
> keyboard? Especially equivalent of ctrl+shift+arrow key in emacs?
- C-SPC to set the mark (i.e. to start selecting text, C-SPC means
Ctrl and Space pressed together), arrow-keys to select the text.
After some time in Emacs you may find it easier to use Emacs' innate
key-bindings for cursor-movements instead of arrow keys.
- M-w to copy (M means Meta and corresponds to your Alt-key)
- C-y to yank (i.e. paste, C means Ctrl)
I don't know what ctrl+shift+arrow does in Windows, so I can't tell
you the Emacs equivalent.
> Also ctrl+c and ctrl+v are conveniently located on the keyboard. To my
> despair ctrl+c has a different meaning (kill!) for linux.
I don't think that's true. What's your desktop? In Gnome and KDE these
key-bindings are the same as in Windows. In Linux, Ctrl-c kills
commands in the bash (i.e. in a terminal or without a graphical
desktop); but I don't think that this is what you have in mind. Apart
From that (and apart from Emacs which has its own system of
key-bindings), you can use Ctrl-x -c -v just like you are used to.
> Finally... Undo is simply ctrl+z in windows, while linux uses that
> combination to suspend the process. Emacs's ctrl+_ is difficult
Is it possible that you are mixing up Linux and Emacs? C-z is suspend
(iconify) in Emacs, not in Linux. This misunderstanding might also be
the explanation for your Copy-Paste problem above.
You can use undo in Emacs if you type C-x u (Ctrl and x together, then
release these keys and press u). This might be easier to type on your
keyboard.
You should take some half an hour and work through the Emacs tutorial
which is available if you type C-h t. It's self-explaining and you
will make your first step into a greater world, Luke.
Anyway, you should also read a little about using Linux. It's not
Windows and many concepts and approaches are different. You are a
Linuxer now, and you are welcome (if you don't continue to post to
mailing-lists anonymously ;-) ).
Greetings,
Sven
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: mouse-less emacs
2008-01-25 22:06 ` Xah Lee
@ 2008-01-28 16:37 ` Joel J. Adamson
0 siblings, 0 replies; 8+ messages in thread
From: Joel J. Adamson @ 2008-01-28 16:37 UTC (permalink / raw)
To: help-gnu-emacs
Xah Lee <xah@xahlee.org> writes:
> all you have to do is turn on the CUA mode.
OR read the tutorial and learn the Emacs keybindings.
Joel
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
(617) 643-1432
(303) 880-3109
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-01-28 16:37 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-25 5:01 mouse-less emacs sahteaccount
2008-01-25 6:36 ` Vyazovoi Pavel
2008-01-25 6:53 ` David Kastrup
2008-01-25 12:57 ` Sebastian Tennant
2008-01-25 20:22 ` Peter Dyballa
2008-01-25 22:06 ` Xah Lee
2008-01-28 16:37 ` Joel J. Adamson
2008-01-25 23:52 ` Sven Bretfeld
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.