#+BEGIN_SRC emacs-lisp :tangle yes
(if (>= emacs-major-version 24)
(progn
- (add-to-list 'load-path
+ (add-to-list 'load-path
"~/.emacs.d/elpa/helm-20160530.424")
- (require 'helm)
- (helm-mode 1)
- (global-set-key (kbd "M-y") 'helm-show-kill-ring)
- (global-set-key (kbd "C-c w") 'helm-man-woman)
- (global-set-key (kbd "M-x") 'helm-M-x)
- (global-set-key "\C-cr" 'helm-recentf)
- (global-set-key (kbd "M-s o") 'helm-occur)
- (define-key global-map "\C-x\C-b" 'helm-buffers-list)
- (define-key global-map "\C-x\C-k\C-h" 'helm-execute-kmacro)
- (define-key global-map (kbd "C-x r b") 'helm-bookmarks)
- (define-key global-map (kbd "C-x C-S-f") 'helm-find-files)
- (define-key global-map "\C-cy" 'helm-yas-complete)
- (setq helm-yas-display-key-on-candidate t)
-
- (add-hook 'eshell-mode-hook
+ (require 'helm)
+ (helm-mode 1)
+ (global-set-key (kbd "M-y") 'helm-show-kill-ring)
+ (global-set-key (kbd "C-c w") 'helm-man-woman)
+ (global-set-key (kbd "M-x") 'helm-M-x)
+ (global-set-key "\C-cr" 'helm-recentf)
+ (global-set-key (kbd "M-s o") 'helm-occur)
+ (define-key global-map "\C-x\C-b" 'helm-buffers-list)
+ (define-key global-map "\C-x\C-k\C-h" 'helm-execute-kmacro)
+ (define-key global-map (kbd "C-x r b") 'helm-bookmarks)
+ (define-key global-map (kbd "C-x C-S-f") 'helm-find-files)
+ (define-key global-map "\C-cy" 'helm-yas-complete)
+ (setq helm-yas-display-key-on-candidate t)
+ (setq helm-buffer-max-length nil)
+
+ (add-hook 'eshell-mode-hook
#'(lambda()
(define-key eshell-mode-map
- [remap eshell-pcomplete]
- 'helm-esh-pcomplete)
+ [remap eshell-pcomplete]
+ 'helm-esh-pcomplete)
(define-key eshell-mode-map
- (kbd "M-p")
- 'helm-eshell-history)
+ (kbd "M-p")
+ 'helm-eshell-history)
))
- (add-hook 'shell-mode-hook
+ (add-hook 'shell-mode-hook
#'(lambda()
(define-key shell-mode-map
- [remap comint-history-isearch-backward-regexp]
- 'helm-comint-input-ring)
+ [remap comint-history-isearch-backward-regexp]
+ 'helm-comint-input-ring)
))
- (setq helm-mini-default-sources '(helm-source-buffers-list
+ (setq helm-mini-default-sources '(helm-source-buffers-list
helm-source-recentf
helm-source-bookmarks
helm-source-buffer-not-found))
- (define-key global-map "\C-xb" 'helm-mini)
- )
+ (define-key global-map "\C-xb" 'helm-mini)
+ )
)
#+END_SRC