mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
I've taken a lot of inspiration from Emacs-Prelude when it came to the structure of this rewritten config. I didn't want to use Prelude as I don't agree with all it's defaults, nor do I want to have to deal with any future changes in Prelude that might break things for me. So instead I went down the fully custom path, but heavily inspired by Prelude, both in terms of file/code structure, and also some of it's features. Compared to my old config setup, it's got most of the same things, but nearly everything is in a module file now, making it easy to fully enable/disable certain features.
40 lines
1.2 KiB
EmacsLisp
40 lines
1.2 KiB
EmacsLisp
;;
|
|
;; helm
|
|
;;
|
|
|
|
(siren-require-packages '(helm helm-swoop helm-projectile helm-open-github))
|
|
|
|
(require 'helm)
|
|
(require 'helm-swoop)
|
|
(require 'helm-projectile)
|
|
(require 'helm-open-github)
|
|
|
|
(setq helm-ag-source-type "file-line"
|
|
helm-open-github-commit-limit 10000)
|
|
|
|
;; Helm
|
|
(define-key helm-map (kbd "<up>") 'previous-history-element)
|
|
(define-key helm-map (kbd "<down>") 'next-history-element)
|
|
(define-key helm-map (kbd "M-p") 'helm-previous-source)
|
|
(define-key helm-map (kbd "M-n") 'helm-next-source)
|
|
(global-set-key (kbd "C-c h") 'helm-mini)
|
|
|
|
;; Helm Swoop
|
|
(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
|
|
(global-set-key (kbd "C-c ;") 'helm-projectile)
|
|
(global-set-key (kbd "C-c C-;") 'helm-projectile)
|
|
|
|
;; Helm Open Github
|
|
(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)
|
|
(global-set-key (kbd "C-c o i") 'helm-open-github-from-issues)
|
|
(global-set-key (kbd "C-c o p") 'helm-open-github-from-pull-requests)
|
|
|
|
|
|
(provide 'siren-helm)
|