News for hackers. Stuff that matters.
Re:Emacs-fu: some handy key bindings by cycojesus on Saturday July 31, 2010 @04:36AM (#1563436)
By default goto-line is mapped to M-g M-g which I find quite convenient already. I mention this because I used to have it bound to C-x g before discovering it was already bound elsewhere, default was good so C-x g got the boot to be available for something else someday.

Here's some of mine (full config @ http://github.com/cycojesus/emacs )

    (global-set-key (kbd "C-z") 'undo)
    (global-set-key [delete] 'delete-char)
    (global-set-key [kp-delete] 'delete-char)
    (global-set-key (kbd "C-c b") 'browse-url)
    (global-set-key (kbd "C-c c") 'calendar)
    (global-set-key (kbd "C-c h") 'calc) ;; 'h' for 'h'P-48
    (global-set-key (kbd "C-c l") 'linum-mode)
    (global-set-key (kbd "C-c w") 'whitespace-mode)
    (global-set-key [(control mouse-4)] (lambda () (interactive)
                                      (text-scale-increase 1)))
    (global-set-key [(control mouse-5)] (lambda () (interactive)
                                      (text-scale-decrease 1)))
    (define-key global-map (kbd "RET") 'newline-and-indent)
    (global-set-key (kbd "C-;") 'shrink-window)
    (global-set-key (kbd "C-.") 'enlarge-window)
    (global-set-key (kbd "M-/") 'hippie-expand)

    ;; scrollwheel on the modeline to navigate buffers
    (global-set-key [mode-line mouse-4] 'next-buffer)
    (global-set-key [mode-line mouse-5] 'previous-buffer)

There are no comments on this comment yet.