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
Matthew Fidler's profile photoJacek Wysocki's profile photoSylvain Benner's profile photoErgoEmacs's profile photo
17 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.
 
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.
 
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
 
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...