Find file
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (34 sloc) 1.25 KB

Starter Kit Windows Bindings

This is part of the Emacs Starter Kit.

Starter Kit Windows Bindings

This file makes Emacs key bindings more comfortable to use in Windows.

CUA mode

Obvious start

(cua-mode t)

Use regex searches with C-f by default.

(global-set-key (kbd "C-f") 'isearch-forward-regexp)
(global-set-key (kbd "C-S-f") 'isearch-backward-regexp)
(global-set-key (kbd "C-M-f") 'isearch-forward)
(global-set-key (kbd "C-M-S-f") 'isearch-backward)
(define-key isearch-mode-map (kbd "C-f") 'isearch-repeat-forward)
(define-key isearch-mode-map (kbd "C-S-f") 'isearch-repeat-backward)

Save with C-s and close with C-w

This muscle memory is way too ingrained for me.

(global-set-key (kbd "C-s") 'save-buffer)
;; (global-set-key (kbd "C-w") 'kill-this-buffer)
;; Doesn't work for some reason
(global-set-key (kbd "C-S-w") 'ido-kill-buffer)
(global-set-key [M-f4] 'save-buffers-kill-emacs)
(global-set-key [C-f4] 'kill-this-buffer)

C-Tab buffer cycling with Ido

(require 'ourcomments-util)
(setq ourcomments-ido-ctrl-tab t)