Fix helm section

This commit is contained in:
laurensmiers 2018-06-12 21:45:59 +02:00
parent 945a55a2c0
commit 16a0b0bef6

View file

@ -476,40 +476,42 @@ To be fair, I didn't test this in a while...
(use-package helm (use-package helm
:ensure t :ensure t
:bind :bind
("M-x" . 'helm-M-x) ("M-x" . helm-M-x)
("M-y" . 'helm-show-kill-ring) ("M-y" . helm-show-kill-ring)
("C-x b" . 'helm-mini) ("C-x b" . helm-mini)
("C-x C-b" . 'helm-mini) ("C-x C-b" . helm-mini)
("C-x C-f" . 'helm-find-files) ("C-x C-f" . helm-find-files)
:init :init
(helm-mode 1)) (helm-mode 1)
:config :config
(setq helm-M-x-fuzzy-match t (setq helm-M-x-fuzzy-match t
helm-buffers-fuzzy-matching t helm-buffers-fuzzy-matching t
helm-recentf-fuzzy-match t helm-recentf-fuzzy-match t
helm-semantic-fuzzy-match t helm-semantic-fuzzy-match t
helm-imenu-fuzzy-match t helm-imenu-fuzzy-match t
helm-split-window-inside-p nil ;; open helm buffer inside current window helm-split-window-inside-p nil ;; open helm buffer inside current window
helm-scroll-amount 8 ;; scroll 8 lines other window using M-<next>/M-<prior> helm-scroll-amount 8 ;; scroll 8 lines other window using M-<next>/M-<prior>
;; helm-move-to-line-cycle-in-source nil ;; move to end or beginning of source when reaching to por bottom of source ;; helm-move-to-line-cycle-in-source nil ;; move to end or beginning of source when reaching to por bottom of source
;; helm-ff-search-library-in-sexp t ;; search for library in 'require' and 'declare-function' sexp ;; helm-ff-search-library-in-sexp t ;; search for library in 'require' and 'declare-function' sexp
;; helm-echo-input-in-header-line t ;; helm-echo-input-in-header-line t
) )
)
(require 'helm-config)
;; (helm-autoresize-mode 1)
;; (define-key helm-find-files-map (kbd "C-b") 'helm-find-files-up-one-level)
;; (define-key helm-find-files-map (kbd "C-f") 'helm-execute-persistent-action)
;; replace vanilla isearch with helm-swoop
(use-package helm-swoop (use-package helm-swoop
:ensure t :ensure t
:bind :bind
("C-s" . 'helm-swoop') ("C-s" . helm-swoop)
:config :config
(define-key helm-swoop-map (kbd "C-s") 'helm-multi-swoop-all-from-helm-swoop) (define-key helm-swoop-map (kbd "C-s") 'helm-multi-swoop-all-from-helm-swoop)
) )
;; (require 'helm-config)
;; ;; (helm-autoresize-mode 1)
;; ;; (define-key helm-find-files-map (kbd "C-b") 'helm-find-files-up-one-level)
;; ;; (define-key helm-find-files-map (kbd "C-f") 'helm-execute-persistent-action)
;;
;; ;; replace vanilla isearch with helm-swoop
;; rebind tab to do persistent action ;; rebind tab to do persistent action
;; we use helm-execute-persistent-action more than helm-select-action (default for <tab>) ;; we use helm-execute-persistent-action more than helm-select-action (default for <tab>)
;; (define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) ;; (define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action)
@ -542,10 +544,10 @@ To be fair, I didn't test this in a while...
(use-package helm-gtags (use-package helm-gtags
:ensure t :ensure t
:bind :bind
( "M-." . 'helm-gtags-find-tag-from-here) ( "M-." . helm-gtags-find-tag-from-here)
( "M-," . 'helm-gtags-pop-stack) ( "M-," . helm-gtags-pop-stack)
( "C-c f" . 'helm-gtags-find-files) ( "C-c f" . helm-gtags-find-files)
( "C-c p" . 'helm-gtags-parse-file) ( "C-c p" . helm-gtags-parse-file)
:config :config
(add-hook 'c-mode-hook 'helm-gtags-mode) (add-hook 'c-mode-hook 'helm-gtags-mode)
(add-hook 'c++-mode-hook 'helm-gtags-mode) (add-hook 'c++-mode-hook 'helm-gtags-mode)