From 3c3b6bab042b6d410e211ef81cdbfcfea99b6f8e Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 17 Dec 2017 03:18:48 +0000 Subject: [PATCH] Break apart siren-helm module into individual files --- core/siren-modules.el | 5 ++++ modules/siren-helm-ag.el | 21 ++++++++++++++++ modules/siren-helm-gtags.el | 20 +++++++++++++++ modules/siren-helm-open-github.el | 22 +++++++++++++++++ modules/siren-helm-projectile.el | 19 ++++++++++++++ modules/siren-helm-swoop.el | 19 ++++++++++++++ modules/siren-helm.el | 41 ------------------------------- 7 files changed, 106 insertions(+), 41 deletions(-) create mode 100644 modules/siren-helm-ag.el create mode 100644 modules/siren-helm-gtags.el create mode 100644 modules/siren-helm-open-github.el create mode 100644 modules/siren-helm-projectile.el create mode 100644 modules/siren-helm-swoop.el diff --git a/core/siren-modules.el b/core/siren-modules.el index 82c288e..e2126cd 100644 --- a/core/siren-modules.el +++ b/core/siren-modules.el @@ -31,6 +31,11 @@ (require 'siren-goto-symbol) (require 'siren-haml) (require 'siren-helm) +(require 'siren-helm-ag) +(require 'siren-helm-gtags) +(require 'siren-helm-open-github) +(require 'siren-helm-projectile) +(require 'siren-helm-swoop) (require 'siren-ido) (require 'siren-linum) (require 'siren-linum-relative) diff --git a/modules/siren-helm-ag.el b/modules/siren-helm-ag.el new file mode 100644 index 0000000..bf4331e --- /dev/null +++ b/modules/siren-helm-ag.el @@ -0,0 +1,21 @@ +;;; siren-helm-ag.el --- jimeh's Emacs Siren: helm-ag configuration. + +;;; Commentary: + +;; Basic configuration for helm-ag. + +;;; Code: + +(require 'siren-helm) + +(use-package helm-ag + :bind + ("C-c C-s" . helm-do-ag) + ("C-x C-'" . helm-do-ag-project-root) + + :config + (setq helm-ag-ignore-patterns '("*.sql" "archive-contents") + helm-ag-source-type "file-line")) + +(provide 'siren-helm-ag) +;;; siren-helm-ag.el ends here diff --git a/modules/siren-helm-gtags.el b/modules/siren-helm-gtags.el new file mode 100644 index 0000000..370f6e8 --- /dev/null +++ b/modules/siren-helm-gtags.el @@ -0,0 +1,20 @@ +;;; siren-helm-gtags.el --- jimeh's Emacs Siren: helm-gtags configuration. + +;;; Commentary: + +;; Basic configuration for helm-gtags. + +;;; Code: + +(require 'siren-helm) + +(use-package helm-gtags + :defer t + :config + (setq helm-gtags-auto-update t + helm-gtags-direct-helm-completing t + helm-gtags-fuzzy-match t + helm-gtags-ignore-case t)) + +(provide 'siren-helm-gtags) +;;; siren-helm-gtags.el ends here diff --git a/modules/siren-helm-open-github.el b/modules/siren-helm-open-github.el new file mode 100644 index 0000000..b99b46d --- /dev/null +++ b/modules/siren-helm-open-github.el @@ -0,0 +1,22 @@ +;;; siren-helm-open-github.el --- jimeh's Emacs Siren: helm-open-github configuration. + +;;; Commentary: + +;; Basic configuration for helm-open-github. + +;;; Code: + +(require 'siren-helm) + +(use-package helm-open-github + :bind + ("C-c o f" . helm-open-github-from-file) + ("C-c o c" . helm-open-github-from-commit) + ("C-c o i" . helm-open-github-from-issues) + ("C-c o p" . helm-open-github-from-pull-requests) + + :config + (setq helm-open-github-commit-limit 10000)) + +(provide 'siren-helm-open-github) +;;; siren-helm-open-github.el ends here diff --git a/modules/siren-helm-projectile.el b/modules/siren-helm-projectile.el new file mode 100644 index 0000000..e5c165b --- /dev/null +++ b/modules/siren-helm-projectile.el @@ -0,0 +1,19 @@ +;;; siren-helm-projectile.el --- jimeh's Emacs Siren: helm-projectile configuration. + +;;; Commentary: + +;; Basic configuration for helm-projectile. + +;;; Code: + +(require 'siren-helm) + +(use-package helm-projectile + :bind + ("C-x ;" . helm-projectile) + ("C-x C-;" . helm-projectile) + ("C-c ;" . helm-projectile-switch-project) + ("C-c C-;" . helm-projectile-switch-project)) + +(provide 'siren-helm-projectile) +;;; siren-helm-projectile.el ends here diff --git a/modules/siren-helm-swoop.el b/modules/siren-helm-swoop.el new file mode 100644 index 0000000..72167ae --- /dev/null +++ b/modules/siren-helm-swoop.el @@ -0,0 +1,19 @@ +;;; siren-helm-swoop.el --- jimeh's Emacs Siren: helm-swoop configuration. + +;;; Commentary: + +;; Basic configuration for helm-swoop. + +;;; Code: + +(require 'siren-helm) + +(use-package helm-swoop + :bind + ("M-r" . helm-swoop-without-pre-input) + ("M-R" . helm-swoop-back-to-last-point) + ("C-c M-r" . helm-multi-swoop) + ("C-x M-r" . helm-multi-swoop-all)) + +(provide 'siren-helm-swoop) +;;; siren-helm-swoop.el ends here diff --git a/modules/siren-helm.el b/modules/siren-helm.el index fd0acb2..3863a7f 100644 --- a/modules/siren-helm.el +++ b/modules/siren-helm.el @@ -11,52 +11,11 @@ :config (setq helm-autoresize-mode 1)) -(use-package helm-ag - :bind - ("C-c C-s" . helm-do-ag) - ("C-x C-'" . helm-do-ag-project-root) - - :config - (setq helm-ag-ignore-patterns '("*.sql" "archive-contents") - helm-ag-source-type "file-line")) - (use-package helm-descbinds :defer t) (use-package helm-describe-modes :defer t) -(use-package helm-gtags - :defer t - :config - (setq helm-gtags-auto-update t - helm-gtags-direct-helm-completing t - helm-gtags-fuzzy-match t - helm-gtags-ignore-case t)) - -(use-package helm-open-github - :bind - ("C-c o f" . helm-open-github-from-file) - ("C-c o c" . helm-open-github-from-commit) - ("C-c o i" . helm-open-github-from-issues) - ("C-c o p" . helm-open-github-from-pull-requests) - - :config - (setq helm-open-github-commit-limit 10000)) - -(use-package helm-projectile - :bind - ("C-x ;" . helm-projectile) - ("C-x C-;" . helm-projectile) - ("C-c ;" . helm-projectile-switch-project) - ("C-c C-;" . helm-projectile-switch-project)) - -(use-package helm-swoop - :bind - ("M-r" . helm-swoop-without-pre-input) - ("M-R" . helm-swoop-back-to-last-point) - ("C-c M-r" . helm-multi-swoop) - ("C-x M-r" . helm-multi-swoop-all)) - (provide 'siren-helm) ;;; siren-helm.el ends here