This commit is contained in:
Kashish Sharma 2015-03-24 03:41:22 +05:30
parent feb140ae31
commit 5afa3f216c
1 changed files with 18 additions and 7 deletions

25
init.el
View File

@ -95,8 +95,6 @@
(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"))
@ -307,14 +305,27 @@
;;;; Helm
(require 'helm-config)
(require 'helm-grep)
(global-set-key (kbd "C-c h") 'helm-command-prefix)
;(global-unset-key (kbd "C-x c"))
(global-set-key (kbd "C-c h") 'helm-mode)
(define-key helm-map (kbd "C-h") 'backward-delete-char)
;(define-key helm-map (kbd "C-i") 'hippie-expand)
(define-key helm-map (kbd "C-i") 'minibuffer-complete)
(define-key helm-map (kbd "C-w") 'backward-kill-word)
(global-set-key (kbd "M-x") 'helm-M-x)
(global-set-key (kbd "<menu>") 'helm-M-x)
;(helm-mode 1)
(global-set-key (kbd "C-c C-h") 'helm-command-prefix)
(global-set-key (kbd "C-x cl") 'count-lines-page)
(global-set-key (kbd "C-x cf") 'make-frame)
(helm-mode 1)
;(global-set-key (kbd "C-x cw") 'count-words-region)
;; stop making helm tab-complete in ERC
(setq helm-mode-no-completion-in-region-in-modes 'erc-mode)
(add-to-list 'helm-mode-no-completion-in-region-in-modes 'erc-mode)
(setq helm-mode-handle-completion-in-region 'nil)
;;;; Helm completion in eshell
;(add-hook 'eshell-mode-hook
; #'(lambda ()
; (define-key eshell-mode-map
; [remap eshell-pcomplete]
; 'helm-esh-pcomplete)))
;;;; hippie-expand
(require 'hippie-exp)