~edwargix/emacs.d

6378271a89d3be8aa0e47485223e162f088d41cd — David Florness 9 years ago 1e42260
Added starting config for helm
1 files changed, 22 insertions(+), 0 deletions(-)

M init.el
M init.el => init.el +22 -0
@@ 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 "<tab>") '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.