Keybinds update

This commit is contained in:
Kashish Sharma 2015-01-31 04:40:11 +05:30
parent 291db170aa
commit 8228312e3e
1 changed files with 11 additions and 3 deletions

14
init.el
View File

@ -47,9 +47,8 @@
(global-hl-line-mode 1)
;;;; Custom keys
;(global-set-key (kbd "<escape>") 'god-mode-all)
(global-set-key (kbd "C-y") 'whole-line-or-region-yank)
(global-set-key (kbd "M-w") 'whole-line-or-region-kill-ring-save)
;(global-set-key (kbd "M-w") 'whole-line-or-region-kill-ring-save)
(global-set-key (kbd "C-w") 'whole-line-or-region-kill-region)
(global-set-key (kbd "C-x C-1") 'delete-other-windows)
(global-set-key (kbd "C-x C-2") 'split-window-below)
@ -58,7 +57,11 @@
;(global-set-key (kbd "C-`") 'point-to-register)
;(global-set-key (kbd "C-'") 'jump-to-register)
(global-set-key (kbd "C-h") 'backward-delete-char)
(global-set-key (kbd "C-c n") 'helm-mini)
(global-set-key (kbd "C-x C-d") 'dired)
(global-set-key (kbd "C-x l") 'helm-mini)
;(global-set-key (kbd "C-x l") 'recentf-open-files)
; count-lines-page after helm
;(global-set-key (kbd "C-x s") 'helm-do-grep)
;(global-set-key (kbd "C-x") 'backward-kill-word)
;(global-set-key (kbd "C-,") 'string-rectangle 'TAB)
(global-unset-key (kbd "C-u"))
@ -66,6 +69,11 @@
(global-set-key (kbd "C-x df") 'delete-frame)
;;;; make-frame key is after Helm's config
(global-set-key (kbd "C-x z") 'switch-to-buffer)
(global-set-key (kbd "C-x b") 'eval-buffer)
(global-unset-key (kbd "C-c s"))
(global-set-key (kbd "C-x T") 'neotree-toggle)
;;;; Fix multi-line indenting - thanks forcer!
;(defun hn/add-tab-in-front-of-every-line-in-region (beg end) (interactive "r")
;(save-excursion (goto-char beg) (goto-char (point-at-bol)) (while (re-search-forward "^" end t) (insert "\t"))))