Mercurial > dotfiles
annotate .elisp/settings/90.keybindings.el @ 99:26450200777a
Latest textmate.el
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sun, 03 May 2009 22:46:07 -0500 |
parents | df45e402581c |
children | 0c1db2df2bf8 |
rev | line source |
---|---|
77 | 1 ;; Key Bindings |
2 ; M-backspace kills the current buffer | |
3 (global-set-key [(meta backspace)] 'kill-this-buffer) | |
4 ; Save early and often, with only one keystroke | |
5 (global-set-key [(meta s)] 'save-buffer) | |
6 ; Typing tab is for lesser editors, make hitting return do that | |
7 (global-set-key "\C-m" 'newline-and-indent) | |
8 ; M-l makes more sense to me for jumping to a line | |
9 (global-set-key "\M-l" 'goto-line) | |
10 ; Sometimes C-h is what Backspace sends in a terminal, and I never use C-h | |
11 (global-set-key "\C-h" 'backward-delete-char-untabify) | |
12 ; M-t is what I want for the textmate file finding | |
13 (global-set-key [(meta t)] 'textmate-goto-file) | |
14 (global-set-key [(meta z)] 'textmate-find-in-project-type) | |
15 (global-set-key [(meta m)] 'iconify-or-deiconify-frame) | |
16 (global-set-key [(control backspace)] 'kill-word) | |
95
df45e402581c
Save in server buffer also marks as done.
Augie Fackler <durin42@gmail.com>
parents:
77
diff
changeset
|
17 |
df45e402581c
Save in server buffer also marks as done.
Augie Fackler <durin42@gmail.com>
parents:
77
diff
changeset
|
18 (defun server-save-buffer-and-finish () |
df45e402581c
Save in server buffer also marks as done.
Augie Fackler <durin42@gmail.com>
parents:
77
diff
changeset
|
19 (interactive) |
df45e402581c
Save in server buffer also marks as done.
Augie Fackler <durin42@gmail.com>
parents:
77
diff
changeset
|
20 (save-buffer) (server-edit)) |
df45e402581c
Save in server buffer also marks as done.
Augie Fackler <durin42@gmail.com>
parents:
77
diff
changeset
|
21 (add-hook 'server-switch-hook |
df45e402581c
Save in server buffer also marks as done.
Augie Fackler <durin42@gmail.com>
parents:
77
diff
changeset
|
22 '(lambda ()(local-set-key "\M-s" 'server-save-buffer-and-finish ))) |