From 33a2b2491878fc3a7bf1a48d437bcd218ea5e82e Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 23 Jul 2015 09:05:34 +0100 Subject: [PATCH] Add helm-swoop and tweak helm related keybindings --- keybindings.el | 16 +++++++++++++--- packages.el | 1 + 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/keybindings.el b/keybindings.el index 32dbb20..07051e7 100644 --- a/keybindings.el +++ b/keybindings.el @@ -73,6 +73,7 @@ (global-set-key (kbd "C-s") 'phi-search) (global-set-key (kbd "C-r") 'phi-search-backward)) +;; Helm (when (require 'helm nil 'noerror) (define-key helm-map (kbd "") 'previous-history-element) (define-key helm-map (kbd "") 'next-history-element) @@ -80,10 +81,19 @@ (define-key helm-map (kbd "M-n") 'helm-next-source) (global-set-key (kbd "C-c h") 'helm-mini)) -(when (require 'helm-projectile nil 'noerror) - (global-set-key (kbd "C-x ;") 'helm-projectile) - (global-set-key (kbd "C-x C-;") 'helm-projectile)) +;; Helm Swoop +(when (require 'helm-swoop nil 'noerror) + (global-set-key (kbd "M-r") 'helm-swoop) + (global-set-key (kbd "M-R") 'helm-swoop-back-to-last-point) + (global-set-key (kbd "C-c M-r") 'helm-multi-swoop) + (global-set-key (kbd "C-x M-r") 'helm-multi-swoop-all)) +;; Helm Projectile +(when (require 'helm-projectile nil 'noerror) + (global-set-key (kbd "C-c ;") 'helm-projectile) + (global-set-key (kbd "C-c C-;") 'helm-projectile)) + +;; Helm Open Github (when (require 'helm-open-github nil 'noerror) (global-set-key (kbd "C-c o f") 'helm-open-github-from-file) (global-set-key (kbd "C-c o c") 'helm-open-github-from-commit) diff --git a/packages.el b/packages.el index 3ed19c7..be086f7 100644 --- a/packages.el +++ b/packages.el @@ -64,6 +64,7 @@ helm-github-stars helm-open-github helm-projectile + ;; helm-swooop ;; causes error: "Package `helm-swooop-' is unavailable" highlight-indentation ido-vertical-mode inf-ruby