Emacs: Config helm (options and bindings) and extensions
parent
5a46392dc4
commit
9bdef91c98
|
@ -169,15 +169,43 @@ Example: to assign some-function to C-i, use
|
|||
;; Search compatible with mc.
|
||||
(require 'phi-search nil t))
|
||||
|
||||
(add-to-list 'package-pinned-packages 'helm)
|
||||
(add-to-list 'package-pinned-packages 'helm-descbinds)
|
||||
(add-to-list 'package-pinned-packages 'helm-fuzzy-find)
|
||||
(add-to-list 'package-pinned-packages 'helm-ls-git)
|
||||
(when (require 'helm-config nil t)
|
||||
(when (require 'helm-descbinds nil t)
|
||||
(helm-descbinds-mode))
|
||||
(require 'helm-ls-git nil t)
|
||||
(helm-mode 1)
|
||||
; (helm-autoresize-mode 1)
|
||||
(setq helm-apropos-fuzzy-match t)
|
||||
(setq helm-buffers-fuzzy-matching t)
|
||||
(setq helm-imenu-fuzzy-match t)
|
||||
(setq helm-M-x-fuzzy-match t)
|
||||
(define-key my-keys-minor-mode-map (kbd "M-x") 'helm-M-x)
|
||||
(define-key my-keys-minor-mode-map (kbd "C-x M-f") 'helm-imenu)
|
||||
(define-key my-keys-minor-mode-map (kbd "C-x C-/") 'helm-find)
|
||||
(when (require 'helm-fuzzy-find nil t)
|
||||
(define-key my-keys-minor-mode-map (kbd "C-c C-/") 'helm-fuzzy-find))
|
||||
(define-key my-keys-minor-mode-map (kbd "C-x C-f") 'helm-find-files)
|
||||
(define-key my-keys-minor-mode-map (kbd "C-x C-d") 'helm-browse-project)
|
||||
(define-key my-keys-minor-mode-map (kbd "C-x b") 'helm-buffers-list)
|
||||
(define-key my-keys-minor-mode-map (kbd "C-x C-b") 'helm-mini)
|
||||
(define-key my-keys-minor-mode-map (kbd "M-y") 'helm-show-kill-ring)
|
||||
(define-key my-keys-minor-mode-map (kbd "C-x C-x") 'helm-all-mark-rings)
|
||||
(define-key my-keys-minor-mode-map (kbd "C-x x") 'helm-mark-ring)
|
||||
(define-key my-keys-minor-mode-map (kbd "M-s o") 'helm-occur)
|
||||
(define-key my-keys-minor-mode-map (kbd "C-h a") 'helm-apropos)
|
||||
(setq helm-follow-mode-persistent t)
|
||||
(add-to-list 'helm-sources-using-default-as-input 'helm-source-man-pages))
|
||||
|
||||
(when (require 'dired+ nil t)
|
||||
(toggle-diredp-find-file-reuse-dir 1))
|
||||
|
||||
(when (require 'powerline nil t)
|
||||
(powerline-default-theme))
|
||||
|
||||
(when (require 'helm-fuzzy-find nil t)
|
||||
(define-key my-keys-minor-mode-map (kbd "C-c C-/") 'helm-fuzzy-find))
|
||||
|
||||
;; TODO: fzf and helm-fuzzy-find are in direct competition. Test and pick the best.
|
||||
;; helm-ff has better integration, but does not print anything initially.
|
||||
(require 'fzf nil t)
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
;; Go
|
||||
;;==============================================================================
|
||||
(add-to-list 'package-pinned-packages 'go-rename)
|
||||
(add-to-list 'package-pinned-packages 'helm-go-package)
|
||||
;; Optional packages: go-autocomplete, go-guru
|
||||
|
||||
(defun go-eval-buffer ()
|
||||
|
@ -34,6 +35,8 @@
|
|||
(add-hook 'before-save-hook #'gofmt-before-save nil t)
|
||||
(local-set-key (kbd "C-c m") 'go-main)
|
||||
(local-set-key (kbd "C-c D") 'godoc)
|
||||
(when (require 'helm-go-package nil t)
|
||||
(local-set-key (kbd "C-c D") 'helm-go-package))
|
||||
(local-set-key (kbd "C-c d") 'godoc-at-point)
|
||||
(local-set-key (kbd "M-.") #'godef-jump)
|
||||
(local-set-key (kbd "C-<f10>") 'go-eval-buffer)
|
||||
|
|
Loading…
Reference in New Issue