]> git.donarmstrong.com Git - lib.git/blob - emacs_el/configuration/don-helm.org
b5df56b4a71afd7b0cb91fa92089a10f84333ee6
[lib.git] / emacs_el / configuration / don-helm.org
1 #+TITLE: Helm Configuration
2 #+AUTHOR: Don Armstrong
3
4 * Introduction
5 ** requires
6 Require helm-config
7
8
9 #+BEGIN_SRC emacs-lisp  :tangle don-helm.el
10   (add-to-list 'load-path "~/lib/emacs_el/helm/")
11   (require 'helm-config)
12 #+END_SRC
13
14 * Configuration
15
16 #+BEGIN_SRC emacs-lisp  :tangle don-helm.el
17   (helm-mode 1)
18   (define-key global-map [remap find-file] 'helm-find-files)
19   (define-key global-map [remap occur] 'helm-occur)
20   (define-key global-map [remap list-buffers] 'helm-buffers-list)
21   (define-key global-map [remap dabbrev-expand] 'helm-dabbrev)
22   (global-set-key (kbd "M-x") 'helm-M-x)
23   (unless (boundp 'completion-in-region-function)
24     (define-key lisp-interaction-mode-map [remap completion-at-point] 'helm-lisp-completion-at-point)
25     (define-key emacs-lisp-mode-map       [remap completion-at-point] 'helm-lisp-completion-at-point))
26   (add-hook 'kill-emacs-hook #'(lambda () (and (file-exists-p "$TMP") (delete-file "$TMP"))))
27 #+END_SRC
28
29
30 * END
31
32 #+BEGIN_SRC emacs-lisp  :tangle don-helm.el
33   (provide 'don-helm)
34 #+END_SRC
35