* Redifine shortkeys?
@ 2006-03-15 11:27 blop
2006-03-15 11:54 ` Robert D. Crawford
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: blop @ 2006-03-15 11:27 UTC (permalink / raw)
I would like to save a document by pressing: C-s instead of C-x C-s.
I would also like to use search by pressing C-f instead of C-s.
What do I type in my .emacs file to make this work?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Redifine shortkeys?
2006-03-15 11:27 Redifine shortkeys? blop
@ 2006-03-15 11:54 ` Robert D. Crawford
2006-03-15 16:27 ` Mathias Dahl
2006-03-15 19:35 ` Filter Mails moeller_olaf
2006-03-17 9:06 ` Redifine shortkeys? Peter Dyballa
2006-03-23 18:24 ` Edward O'Connor
2 siblings, 2 replies; 11+ messages in thread
From: Robert D. Crawford @ 2006-03-15 11:54 UTC (permalink / raw)
"blop" <fedevaps@yahoo.dk> writes:
> I would like to save a document by pressing: C-s instead of C-x C-s.
>
> I would also like to use search by pressing C-f instead of C-s.
>
> What do I type in my .emacs file to make this work?
Are you sure you want to go down that slippery slope? Sometimes it is
better to conform to the environment than it is to make the environment
conform to you. Once you start re-defining keys, it can quickly become
a headache.
That being said, there is ample documentation on changing keybindings.
Take a look at global-set-key and of course the emacs info manual..
I hope this points you in the right direction.
rdc
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Robert D. Crawford rdc1x@comcast.net
Go not to the elves for counsel, for they will say both yes and no.
-- J.R.R. Tolkien
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Redifine shortkeys?
2006-03-15 11:54 ` Robert D. Crawford
@ 2006-03-15 16:27 ` Mathias Dahl
2006-03-15 17:24 ` Reiner Steib
2006-03-15 18:39 ` Kevin Rodgers
2006-03-15 19:35 ` Filter Mails moeller_olaf
1 sibling, 2 replies; 11+ messages in thread
From: Mathias Dahl @ 2006-03-15 16:27 UTC (permalink / raw)
"Robert D. Crawford" <rdc1x@comcast.net> writes:
>
> Are you sure you want to go down that slippery slope? Sometimes it is
> better to conform to the environment than it is to make the environment
> conform to you. Once you start re-defining keys, it can quickly become
> a headache.
I agree not messing with this but if he want to go there, here's a
start:
For saving:
(global-set-key (kbd "C-s") 'save-buffer)
For searching:
(global-set-key (kbd "C-f") 'isearch-forward)
A problem with the latter is that the bindings that work "inside"
isearch still is the same and are more cumbersome to set (it is
possible though).
Many years ago I rebound stuff in Emacs. That was a bad idea. I could
recommend binding commonly used commands to the Fx keys and to use
other unbound keys, but in most cases I avoid rebinding Emacs' stanard
keys as there is often a logic behind them that gets more useful the
more you use Emacs.
/Mathias
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Redifine shortkeys?
2006-03-15 16:27 ` Mathias Dahl
@ 2006-03-15 17:24 ` Reiner Steib
2006-03-15 18:39 ` Kevin Rodgers
1 sibling, 0 replies; 11+ messages in thread
From: Reiner Steib @ 2006-03-15 17:24 UTC (permalink / raw)
On Wed, Mar 15 2006, Mathias Dahl wrote:
> Many years ago I rebound stuff in Emacs. That was a bad idea. I could
> recommend binding commonly used commands to the Fx keys and to use
> other unbound keys,
,----[ (info "(emacs)Keymaps") ]
| As a user, you can redefine any key; but it is usually best to stick
| to key sequences that consist of `C-c' followed by a letter. These
| keys are "reserved for users," so they won't conflict with any properly
| designed Emacs extension. The function keys <F5> through <F9> are also
| reserved for users. If you redefine some other key, your definition
| may be overridden by certain extensions or major modes which redefine
| the same key.
`----
> but in most cases I avoid rebinding Emacs' stanard keys as there is
> often a logic behind them that gets more useful the more you use
> Emacs.
ACK
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Redifine shortkeys?
2006-03-15 16:27 ` Mathias Dahl
2006-03-15 17:24 ` Reiner Steib
@ 2006-03-15 18:39 ` Kevin Rodgers
1 sibling, 0 replies; 11+ messages in thread
From: Kevin Rodgers @ 2006-03-15 18:39 UTC (permalink / raw)
Mathias Dahl wrote:
> I agree not messing with this but if he want to go there, here's a
> start:
>
> For saving:
>
> (global-set-key (kbd "C-s") 'save-buffer)
>
> For searching:
>
> (global-set-key (kbd "C-f") 'isearch-forward)
>
> A problem with the latter is that the bindings that work "inside"
> isearch still is the same and are more cumbersome to set (it is
> possible though).
(define-key isearch-mode-map (kbd "C-f") 'isearch-repeat-forward)
> Many years ago I rebound stuff in Emacs. That was a bad idea. I could
> recommend binding commonly used commands to the Fx keys and to use
> other unbound keys, but in most cases I avoid rebinding Emacs' stanard
> keys as there is often a logic behind them that gets more useful the
> more you use Emacs.
Agreed! But there's always an exception that proves the rule:
(global-set-key (kbd "C-x C-q") 'toggle-read-only) ; vc-toggle-read-only
(global-set-key (kbd "C-x v q") 'vc-toggle-read-only)
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 11+ messages in thread
* Filter Mails
2006-03-15 11:54 ` Robert D. Crawford
2006-03-15 16:27 ` Mathias Dahl
@ 2006-03-15 19:35 ` moeller_olaf
2006-03-15 20:28 ` Henrik Enberg
` (2 more replies)
1 sibling, 3 replies; 11+ messages in thread
From: moeller_olaf @ 2006-03-15 19:35 UTC (permalink / raw)
Hi to All,
is it possible to begin the Subjekt in all mails by [emacs] or something like
that?
It will be more efficent for filtering emails, 'cause i receive a lot Mails
from different Mailing-Lists.
Thanks a lot
Olaf Möller
Berlin, Germany
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Redifine shortkeys?
2006-03-15 11:27 Redifine shortkeys? blop
2006-03-15 11:54 ` Robert D. Crawford
@ 2006-03-17 9:06 ` Peter Dyballa
2006-03-23 18:24 ` Edward O'Connor
2 siblings, 0 replies; 11+ messages in thread
From: Peter Dyballa @ 2006-03-17 9:06 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 15.03.2006 um 12:27 schrieb blop:
> I would like to save a document by pressing: C-s instead of C-x C-s.
>
> I would also like to use search by pressing C-f instead of C-s.
>
> What do I type in my .emacs file to make this work?
I'd change the sources ...
--
Greetings
Pete
Never be led astray onto the path of virtue.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Redifine shortkeys?
2006-03-15 11:27 Redifine shortkeys? blop
2006-03-15 11:54 ` Robert D. Crawford
2006-03-17 9:06 ` Redifine shortkeys? Peter Dyballa
@ 2006-03-23 18:24 ` Edward O'Connor
2 siblings, 0 replies; 11+ messages in thread
From: Edward O'Connor @ 2006-03-23 18:24 UTC (permalink / raw)
> I would like to save a document by pressing: C-s instead of C-x C-s.
> I would also like to use search by pressing C-f instead of C-s.
> What do I type in my .emacs file to make this work?
While everyone else has suggested particular keybindings for these, I'd
like to suggest that you consider using CUA mode, which provides such
bindings and many more. Quoting from the "CUA Bindings" page of the
Emacs manual:
,----
| The command `M-x cua-mode' sets up key bindings that are compatible
| with the Common User Access (CUA) system used in many other
| applications. `C-x' means cut (kill), `C-c' copy, `C-v' paste (yank),
| and `C-z' undo. Standard Emacs commands like `C-x C-c' still work,
| because `C-x' and `C-c' only take effect when the mark is active (and
| the region is highlighted). However, if you don't want to override
| these bindings Emacs at all, set `cua-enable-cua-keys' to `nil'.
|
| In CUA mode, using `Shift' together with the movement keys activates
| and highlights the region over which they move. The standard
| (unshifted) movement keys deactivate the mark, and typed text replaces
| the active region as in Delete-Selection mode (*note Graphical Kill::).
`----
--
Edward O'Connor
hober0@gmail.com
Ense petit placidam sub libertate quietem.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2006-04-02 12:00 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-15 11:27 Redifine shortkeys? blop
2006-03-15 11:54 ` Robert D. Crawford
2006-03-15 16:27 ` Mathias Dahl
2006-03-15 17:24 ` Reiner Steib
2006-03-15 18:39 ` Kevin Rodgers
2006-03-15 19:35 ` Filter Mails moeller_olaf
2006-03-15 20:28 ` Henrik Enberg
2006-03-15 20:30 ` Peter Dyballa
2006-04-02 12:00 ` Xavier Maillard
2006-03-17 9:06 ` Redifine shortkeys? Peter Dyballa
2006-03-23 18:24 ` Edward O'Connor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).