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")