Discussion  - 
 
list 10 commands in #emacs  you use the most.

5 that start with C-c key. (any mode)
5 that starts with C-x key.

(or more than 5 if you want. You can just write down the key, but with the mode's name.)
6
2
ErgoEmacs's profile photoYuriy Pitometsu's profile photoNick Alcock's profile photoQian Wu's profile photo
22 comments
 
C-c C-c compile defun in lisp-interaction-mode.
C-c C-k compile and load file.
C-x r w and j: window registers
C-x k kill buffer
C-x 0,1,2,3: arrange buffers.

I'm not a power user though.
 
I always change my most frequently used shortcuts to key-chord style with comma:
,f ido-find-file
,r ido-fine-recentf
,2 ,3 ,1 ,0 arrange buffers
,b switch buffer
,k kill-buffer
,d deft
,s save-buffer
...
and so one.

I have the similar style in vim, where I remapped esc to comma.
It is a big reliefe for my pinky.

Sorry for off-topic, but it is some kind related IMHO ;]
 
M-x shell
M-x p4-submit along with C-x C-q to open the files for edit
M-x ediff-buffers
C-x d  ;; heavy dired user
C-x r b ;; still old school with bookmarks

and a few of my own making:
M-x pushd-shell-buffer-here
inserts a CD into the shell buffer to change to the directory you're looking at in another buffer
M-x load-todays-snippets
opens an org mode file for this month and adds/moves to today's entry.
 
(Alert: Not a power user!)  #emacskeybindings

LaTeX Mode (with AucTeX):
C-c C-e -- New Environment
C-c C-c -- Compile LaTeX Document
C-c C-v -- View the compiled document

C-x 1 -- kill other windows
C-x C-s -- write buffer to file
C-x C-f -- find file
C-x b -- change to a buffer whose name you know
C-x C-b -- list buffer
 
+Rafał Babinicz what do you do when you need to type comma? twice or something?
it's a great idea, btw. i might actually follow.
 
This solution is not for everyone, but changing 3-4 most frequently used shortcuts to key-chord style can be a big relief.

For now I had only silly problems like with arrays in Haskell [1,2,3,4].
In that case I must delay my touch typing,
because my ",1" ",2" ",3"... handle window management,
but this is only for ints from 0 to 4. ;]
BTW In clojure I do not have this problem. Commas are treated as whitespace.

To handle this I can tweak key-chords delay,
or change comma to e.g. semicolon for 0 to 4,
or change ,1 to ,somefreeergonomicletter...
or maybe change comma only for haskell mode.

Regarding typing comma twice - if you type, after leader key (here comma), character that is not defined in your key-chord, you do not have any delay.

It is hard to describe, but If I type ",s" I save document,
if I type fast ",sd" (not defined key chord) then I save document and write "d",
but if I type ",e" (not defined key chord) then I simply type ",e" without any delays and the same is for ",," .

This is a list of shortcuts that I use currently:
https://www.refheap.com/15927

You should customize key-chord-mode for your needs.
I do not advocate switching to it for everything.
In that case evil-mode is probably a better solution.

I just wanted to show that now I relatively rarely use C-c and C-x prefixes and my pinky is soooo happy ;]

Cheers.
 
Ignoring the really boring stuff like C-x b and movement commands, I have bound M-. to gtags-find-tag, and I use it constantly. Other things: hideshow commands, git-gutter previous and next hunk commands (only reliable after a save but useful then)... but the winner by a mile must be C-u C-SPC (which is so wired into my fingers that I didn't know what the keys were I was pressing anymore and had to switch buffers and do it under C-h c to find out! I just think 'back' and my fingers do it.)
 
For me its the boring org mode stuff

org-agenda
org-capture
C-c C-d org set deadline
C-c C-s org schedule
C-c C-t org toggle todo state

C-x b 

I also use ace-jump-mode quite frequently.
 
+Rafał Babinicz thanks for that key logger link. Been wanting to look into keyloggers.

about your comma method, I was thinking it's key sequence, which i find more interesting... the key chord mode is great, i haven't tried it though. Because somewhat the hack nature stopped me. That is, given our PC keyboard, we don't really have chords. We either have modifier combination, which means press hold release several keys in particular sequence, or the emacs key chord mode which is to similar to arbitrary key chord, but the price we pay is complexity, namely, there's the delay aspect.

actually, ignore the above. I think it may work out well. I'll have to try it sometimes.
 
+Nick Alcock do you use keyfreq.el ? i thought you might since it gives you complete detail of your command frequency.
 
+ErgoEmacs I have used key chord mode before and am considering using it again. I got annoyed with it when I was typing some commands to close together since it would start that command. The key is to choose combinations that are ergonomic but not frequently typed. On a qwerty keyboard fj is a decent combination since I rarely type fjords. Otherwise you get problems where you need to slow down, like [1,2,3,4] in this case. 
 
C-x 1
C-x 0
C-x r s <letter>
C-x r i <letter>
C-x d

C-c left arrow (winner-mode)
...
Can't think of any more C-c key commands I use.
 
+Matthew Fidler if you have key sequence, such as Menu key followed by another key (where Menu can be any easy position such as capslock), what's the advantage of the key-chord mode?

i was inspired by your comment (following +Rafał Babinicz 's) and about to install just now, then i read the description, the stopped. I can't see any theoretical advantage. For a moment, i was thinking to define a chord such as fj which act as a start sequence key. Can it do that? but then, i thought even if it can, i can't think of a reason for it to be better than a single key sequence starter, for me anyway, other than the constant need to look for new ways.
 
Thanks for the reminder about winner-mode. I must play some more with that today.
 
+ErgoEmacs its all a matter of belief of if you should tax the pinky that is responsible for all the pageup pagedown keys to also do a lateral movement to press the capslock key. The workman layout says this is terrible. Hence a keychord for appps or menu will reduce pinky usage
 
C-x C-b ido-switch-buffer
C-x C-g magit-status
C-x C-f ido-find-file
C-x 1 2 3 0 - windows management


C-c C-c different behaviour on each mode (commits, comments switching tags etc sending tweets)
C-c f recentf-ido-find-file
C-c p * some projectile keys
C-c g open-translate-site - this is my custom function to translate with gtranslate site
C-c r - send-to-redmine - custom function collects data from org timers and send them by readmine API as time tracer record.

Custom function probably in:
https://github.com/exu/emacs.d/blob/master/autoload/functions.el
 
+Yuriy Pitometsu I'm aware of super and menu keys, but in my case super is for system wide things like xmonad (window manager), dunst (notifications), etc... 

To be specific I PREFER fast and easy and CLOSER to home row and more NATURAL for hand position ",f" for ido-find-file than combos like super+f, m-f, esc-f,  c-x c-f...
For me it is faster and easier to type ",f".
I feel it in my hands after whole day.

And you must take into consideration that I use comma as my leader key in vim.
And besides emacs I'm using  conkeror, xmonad, tmux... alllll day. This is a  keyboard driven heaven/hell ;]

As I said it is not for everyone, but it is for my pinky
and it is good to now such possibility exists in spectrum
between standard emacs shortcuts and evil mode. 
 
Maybe in another short words:
I found that a little key chords style is better for my workflow,  that doesn't imply it is a better way in general.
 
I use evil-leader with leader on space bar. For vim commands I type : and for Emacs commands I type SPC then :
For SPC leader to work you have to be in normal mode so no worry when typing in insert mode.
ALL my shortcuts starts with leader by pressing SPC with the thumb, then I type a sequence like 'fs' to save the file. I switch back to normal mode by pressing 'fd' while in another mode (I don't use keychord anymore which is a false good idea, I have a custom script for this).
You can see my shortcuts here: https://github.com/syl20bnr/dotemacs/blob/master/my-keybindings.el

I truly think this is the best you can get by combining two wonderful pieces of software: Emacs and Vim.

This have numerous advantages like giving you a big space for shortcuts and be able to produce NATURAL key sequences which are easy to remember.

The main downside (and only to my mind) is that you have to learn Vi first (as mentioned in Sasha drawing).

Add a comment...