Created
August 30, 2011 03:58
-
-
Save ramimassoud/1180144 to your computer and use it in GitHub Desktop.
Quick script of my global emacs key mapping taken from my config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define-key global-map (kbd "`") 'hippie-expand) | |
(define-key global-map (kbd "M-g") 'goto-line) | |
(define-key global-map (kbd "M-'") 'expand-abbrev) | |
(define-key global-map (kbd "M-Q") 'unfill-paragraph) | |
(define-key global-map (kbd "C-c w") 'delete-trailing-whitespace) | |
(define-key global-map (kbd "C-c \\") 'toggle-truncate-lines) | |
(define-key global-map (kbd "C-c q") 'query-replace-string) | |
(define-key global-map (kbd "C-c M-q") 'query-replace-regexp) | |
(define-key global-map (kbd "C-c r") 'replace-string) | |
(define-key global-map (kbd "C-c M-r") 'replace-regexp) | |
(define-key global-map (kbd "C-c C-x C-f") 'find-file-at-point) | |
(define-key global-map (kbd "C-c l") 'linum-mode) | |
(define-key global-map (kbd "C-x g") 'uncomment-region) | |
(define-key global-map (kbd "C-c g") 'comment-region) | |
(define-key global-map (kbd "<f1>") 'switch-to-buffer) | |
(define-key global-map (kbd "ESC <f1>") 'kill-buffer) | |
(define-key global-map (kbd "<f2>") 'buffer-menu) | |
(define-key global-map (kbd "<f3>") 'start-kbd-macro) | |
(define-key global-map (kbd "ESC <f3>") 'end-kbd-macro) | |
(define-key global-map (kbd "<f4>") 'call-last-kbd-macro) | |
(define-key global-map (kbd "<f5>") 'occur) | |
(define-key global-map (kbd "ESC <f5>") 'grep) | |
(define-key global-map (kbd "<f6>") 'string-rectangle) | |
(define-key global-map (kbd "<f7>") 'query-replace) | |
(define-key global-map (kbd "ESC <f7>") 'replace-string) | |
(define-key global-map (kbd "<f8>") 'query-replace-regexp) | |
(define-key global-map (kbd "ESC <f8>") 'replace-regexp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment