Helm has been released a long time, but I am always get used to
But based on some article recently, and I am really like new things, so I decided to use the this
So, let’s start.
Helm Github already tell many things about the install, here I want to memo down what I do.
I always use the subtree to manage the package by myself, so
> git subtree add –prefix .emacs.d/plugins-subtree/helm-suite/helm –squash https://github.com/emacs-helm/helm.git master
> git subtree add –prefix .emacs.d/plugins-subtree/helm-suite/emacs-async –squash https://github.com/jwiegley/emacs-async.git master
go the helm folder:
Before the config step, you can simply use the following command to have a test:
This would be a simple test environment, and it’s very handy.
Add the package to load path and active the
;; -*- coding: utf-8 -*-
(global-set-key (kbd "M-x") 'helm-M-x)
The default behavior of
Tab key is not handy enough, so change it:
(define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) ; rebind tab to run persistent action
(define-key helm-map (kbd "C-i") 'helm-execute-persistent-action) ; make TAB works in terminal
(define-key helm-map (kbd "C-z") 'helm-select-action) ; list actions using C-z
Still, grep under windows, here is my solution, please not that, your
grep under windows may not support
--include well, so remove
%e will fix it.
(if (executable-find "perl")
(setq helm-grep-default-command "perl ~/.emacs.d/extra-bin/ack/ack-standalone.pl -Hn --no-group --no-color %p %f"
helm-grep-default-recurse-command "perl ~/.emacs.d/extra-bin/ack/ack-standalone.pl -H --no-group --no-color %p %f")
(setq helm-grep-default-command "grep -a -d skip -n -e %p %f"
helm-grep-default-recurse-command "grep -a -d recurse -n -e %p %f"))
- You can insert marked candidates into current buffer with
- you can always switch it to vertical window with
C-tagain returns the Helm window back to horizontal and so on
- You can mark candidates with
C-SPC; this is useful when you need to perform an action on many candidates of your choice.
M-ato select all.
Read this article helm-intro
- Helm Emacs Github
- A Package in a league of its own: Helm
- Helm wiki
- Exploring large projects with Projectile and Helm Projectile