]> git.donarmstrong.com Git - lib.git/commitdiff
use-package helm
authorDon Armstrong <don@donarmstrong.com>
Wed, 9 Nov 2016 18:09:04 +0000 (10:09 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 9 Nov 2016 18:09:04 +0000 (10:09 -0800)
emacs_el/configuration/don-configuration.org

index 905861895d8d7322695d3db278d602bc40b4c368..46c122425d2f8ac88f323d0354d56561aa57f448 100644 (file)
@@ -324,7 +324,20 @@ value, scrolling continues until there is no more output.
 
 ** Helm
 #+BEGIN_SRC emacs-lisp
-(require 'don-helm)
+  (use-package helm
+    :ensure t
+    :config
+    (helm-mode 1)
+    (define-key global-map [remap find-file] 'helm-find-files)
+    (define-key global-map [remap occur] 'helm-occur)
+    (define-key global-map [remap list-buffers] 'helm-buffers-list)
+    (define-key global-map [remap dabbrev-expand] 'helm-dabbrev)
+    (global-set-key (kbd "M-x") 'helm-M-x)
+    (unless (boundp 'completion-in-region-function)
+      (define-key lisp-interaction-mode-map [remap completion-at-point] 'helm-lisp-completion-at-point)
+      (define-key emacs-lisp-mode-map       [remap completion-at-point] 'helm-lisp-completion-at-point))
+    (add-hook 'kill-emacs-hook #'(lambda () (and (file-exists-p "$TMP") (delete-file "$TMP"))))
+  )
 #+END_SRC
 ** Hydra
 #+BEGIN_SRC emacs-lisp :tangle don-configuration.el