作为Emacs的新手,我发现IDO并喜欢它,因为它使搜索文件的速度变得如此之快。在此站点上花费了一些时间后,我阅读了有关Helm的越来越多的内容,并且我打算进行切换。我的一些问题是:
- 最大的区别是什么?
- 具体来说,查找文件,切换缓冲区或调用新命令时,我的工作流程应如何更改?
我使用这篇文章来设置Helm,但是我的文件搜索(C-x C-f
)和缓冲开关(C-x b
)看起来和以前几乎一样。
这是我的配置:
(require 'helm)
(require 'helm-config)
;; The default "C-x c" is quite close to "C-x C-c", which quits Emacs.
;; Changed to "C-c h". Note: We must set "C-c h" globally, because we
;; cannot change `helm-command-prefix-key' once `helm-config' is loaded.
(global-set-key (kbd "C-c h") 'helm-command-prefix)
(global-unset-key (kbd "C-x c"))
(define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) ; rebihnd tab to do 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
(when (executable-find "curl")
(setq helm-google-suggest-use-curl-p t))
(setq helm-quick-update t ; do not display invisible candidates
helm-split-window-in-side-p t ; open helm buffer inside current window, not occupy whole other window
helm-buffers-fuzzy-matching t ; fuzzy matching buffer names when non--nil
helm-move-to-line-cycle-in-source t ; move to end or beginning of source when reaching top or bottom of source.
helm-ff-search-library-in-sexp t ; search for library in `require' and `declare-function' sexp.
helm-scroll-amount 8 ; scroll 8 lines other window using M-<next>/M-<prior>
helm-ff-file-name-history-use-recentf t)
(helm-mode 1)
1
正如您已经意识到的那样,您忘记绑定Helm特定的命令来替换现有的Emacs命令。如果您继续阅读有关每个特定Helm命令的指南,则会看到我在每个部分中都放置了键绑定(如果可能)和设置。不过,请尽情享受Helm :)
—
Tu Do