improve face
[dotfiles.git] / emacs.d_old / config / init-helm.el
1
2 (require 'helm)
3 (require 'helm-config)
4
5
6
7 ;(require 'helm-adaptive)
8 (helm-mode 1)
9
10 ;; helm-M-x
11 (global-set-key (kbd "M-x") 'helm-M-x)
12 (setq helm-M-x-fuzzy-match t) ;; optional fuzzy matching for helm-M-x
13
14 ;; helm-mini
15 ;;(global-set-key (kbd "C-x b") 'helm-mini)
16 ;;(global-set-key (kbd "C-o C-j") 'helm-mini)
17 (setq helm-buffers-fuzzy-matching t
18       helm-recentf-fuzzy-match    t)
19
20 ;; helm-find-file
21 ;(global-set-key (kbd "C-x C-f") 'helm-find-files)
22 ;;(global-set-key (kbd "C-o C-f") 'helm-find-files)
23
24 (setq helm-candidate-number-limit 30)
25
26 ;; http://stackoverflow.com/questions/9992475/how-to-show-anything-buffers-always-in-new-window
27 (setq helm-display-function
28       (lambda (buf)
29         (split-window-vertically)
30         (other-window 1)
31         (switch-to-buffer buf)))
32
33
34 ;;;;;;; http://tuhdo.github.io/helm-intro.html
35 ;;;;;(setq helm-split-window-in-side-p           t ; open helm buffer inside current window, not occupy whole other window
36 ;;;;;      helm-move-to-line-cycle-in-source     t ; move to end or beginning of source when reaching top or bottom of source.
37 ;;;;;      helm-ff-search-library-in-sexp        t ; search for library in `require' and `declare-function' sexp.
38 ;;;;;      helm-scroll-amount                    8 ; scroll 8 lines other window using M-<next>/M-<prior>
39 ;;;;;      helm-ff-file-name-history-use-recentf t)
40
41
42
43 (helm-autoresize-mode 1)
44 (helm-adaptive-mode 1)
45 (helm-adaptative-mode 1)
46 (setq helm-adaptive-history 1)
47
48
49 ;;j;(defun helm-buffer-face-mode ()
50 ;;j;  "Helm buffer face"
51 ;;j;  (interactive)
52 ;;j;  (with-helm-buffer ;;j;  (setq line-spacing 2)
53 ;;j;  (buffer-face-set '(:family "Source Code Pro" :height 100))))
54                                                               
55
56 ;;;(add-hook 'helm-update-hook 'helm-buffer-face-mode)
57
58 (require 'helm-cmd-t)
59 (require 'helm-C-x-b)
60
61 (provide 'init-helm)