From 6378271a89d3be8aa0e47485223e162f088d41cd Mon Sep 17 00:00:00 2001 From: David Florness Date: Tue, 13 Dec 2016 22:17:35 -0600 Subject: [PATCH] Added starting config for helm --- init.el | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/init.el b/init.el index 37104d6..a31c733 100644 --- a/init.el +++ b/init.el @@ -81,6 +81,28 @@ (require 'company-c-headers) (add-to-list 'company-backends 'company-c-headers) +;;; Install helm +(package-install 'helm) + +;;; This config code for helm was obtained from https://tuhdo.github.io/helm-intro.html +(require 'helm) +(require 'helm-config) + +;;; "'C-x c' is quite close to 'C-x C-c'" Agreed! +(global-set-key (kbd "C-c h") 'helm-command-prefix) +(global-unset-key (kbd "C-x c")) + +(define-key helm-map (kbd "") 'helm-execute-persistent-action) ; rebind tab to run persisten action +(define-key helm-map (kbd "C-i") 'helm-execute-persistent-action) ; make TAB work in terminal +(define-key helm-map (kbd "C-z") 'helm-select-action) ; list actions using C-z + +(when (executable-find "curl") + (setq helm-net-prefer-curl t)) + +;; (setq helm-split-window) + +(helm-mode 1) + (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. -- 2.38.4