Skip to content

Commit

Permalink
add missing helm settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kiririmode committed Aug 17, 2018
1 parent 5796fb0 commit d16c801
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .emacs.d/inits/init-helm-ls-git.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(global-set-key (kbd "C-x C-g") 'helm-ls-git-ls)

; Enable fuzzy matching in `helm-source-ls-git-status' and `helm-source-ls-git'."
(setq helm-ls-git-fuzzy-match t)

(add-to-list 'helm-for-files-preferred-list 'helm-source-ls-git)
31 changes: 28 additions & 3 deletions .emacs.d/inits/init-helm.el
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,39 @@
helm-lisp-fuzzy-completion t
; When non-`nil', `helm-delete-minibuffer-contents' delete region from `point'.
helm-delete-minibuffer-contents-from-point t
; Enable fuzzy matching in `helm-source-ls-git-status' and `helm-source-ls-git'."
helm-ls-git-fuzzy-match t
; When non-`nil', save last state of `helm-follow-mode' for the next emacs sessions.
helm-follow-mode-persistent t
; Your preferred sources to find files.
helm-for-files-preferred-list '(
helm-source-buffers-list
helm-source-ls-git
helm-source-recentf
helm-source-file-cache
helm-source-files-in-current-dir))

; It is `helm' replacement of regular `M-x' `execute-extended-command'.
(global-set-key (kbd "M-x") 'helm-M-x)
; It is drop-in replacement of `yank-pop'.
(global-set-key (kbd "M-y") 'helm-show-kill-ring)
; Preconfigured `helm' for helm implementation of `find-file'.
(global-set-key (kbd "C-x C-f") 'helm-find-files)
; Preconfigured `helm' to list buffers.
(global-set-key (kbd "C-x C-b") 'helm-buffers-list)
; Preconfigured `helm' for `recentf'.
(global-set-key (kbd "C-x C-r") 'helm-recentf)
; Preconfigured `helm' for opening files.
(global-set-key (kbd "C-x b") 'helm-for-files)
; Preconfigured `helm' for Man and Woman pages.
(global-set-key (kbd "C-x m") 'helm-man-woman)

; Browse files and see status of project with its vcs.
(global-set-key (kbd "C-x C-d") 'helm-browse-project)

(global-set-key (kbd "C-x c /") 'helm-find)
(global-set-key (kbd "C-x c g") 'helm-do-grep)
(global-set-key (kbd "C-x c o") 'helm-occur)
(define-key isearch-mode-map (kbd "C-o") 'helm-occur-from-isearch)
(global-set-key (kbd "C-x c C-i") 'helm-lisp-completion-at-point)

(define-key helm-read-file-map (kbd "TAB") 'helm-execute-persistent-action)
(define-key helm-find-files-map (kbd "TAB") 'helm-execute-persistent-action)
(define-key helm-read-file-map (kbd "C-h") 'delete-backward-char)

0 comments on commit d16c801

Please sign in to comment.