From 7758640d8546c2a9c376cc7fb6d73805ee02b955 Mon Sep 17 00:00:00 2001 From: Kashish Sharma Date: Wed, 25 Nov 2015 02:39:32 +0530 Subject: [PATCH] Modular init.el - helm config --- contrapunctus/cp-helm.el | 18 ++++++++++++++++++ init.el | 20 +------------------- 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 contrapunctus/cp-helm.el diff --git a/contrapunctus/cp-helm.el b/contrapunctus/cp-helm.el new file mode 100644 index 0000000..63c9732 --- /dev/null +++ b/contrapunctus/cp-helm.el @@ -0,0 +1,18 @@ +(require 'helm-config) +(require 'helm-grep) +(global-set-key (kbd "C-x C-l") 'helm-mini) +(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-w") 'backward-kill-word) +(global-set-key (kbd "M-x") 'helm-M-x) +(global-set-key (kbd "") '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) + +;; 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) diff --git a/init.el b/init.el index cd953e8..1b5fc85 100644 --- a/init.el +++ b/init.el @@ -363,25 +363,7 @@ (global-relative-line-numbers-mode 1) -(require 'helm-config) -(require 'helm-grep) -(global-set-key (kbd "C-x C-l") 'helm-mini) -(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-w") 'backward-kill-word) -(global-set-key (kbd "M-x") 'helm-M-x) -(global-set-key (kbd "") '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) - -;; 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) - +(load "cp-helm") (load "cp-god")