Move Helm and related packages to the Org config
This commit is contained in:
parent
b6cac3a5f1
commit
1964dd4085
@ -715,6 +715,184 @@ Because we can.
|
||||
:defer t)
|
||||
#+END_SRC
|
||||
|
||||
* Helm & Co.
|
||||
|
||||
** Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm
|
||||
:init
|
||||
(require 'helm-config)
|
||||
(setq helm-M-x-fuzzy-match t
|
||||
helm-buffers-fuzzy-matching t
|
||||
helm-recentf-fuzzy-match t)
|
||||
:config
|
||||
(helm-mode t)
|
||||
:bind
|
||||
(("M-x" . helm-M-x)
|
||||
:map ctl-x-map
|
||||
("C-f" . helm-find-files)
|
||||
("b" . helm-mini)
|
||||
:map helm-map
|
||||
("/" . gpolonkai/helm-ff-slash-dir-complete)))
|
||||
#+END_SRC
|
||||
|
||||
** Helm-style swooping
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-swoop
|
||||
:bind
|
||||
(("M-i" . helm-swoop)))
|
||||
#+END_SRC
|
||||
|
||||
** GNU Globals with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-gtags
|
||||
:init
|
||||
(setq-default helm-gtags-auto-update t
|
||||
helm-gtags-ignore-case t
|
||||
helm-gtags-path-style 'relative)
|
||||
:config
|
||||
(add-hook 'c-mode-hook
|
||||
(lambda ()
|
||||
(helm-gtags-mode t)))
|
||||
:bind
|
||||
(:map helm-gtags-mode-map
|
||||
("M-t" . helm-gtags-find-tag)
|
||||
("M-r" . helm-gtags-find-rtag)
|
||||
("M-s" . helm-gtags-find-symbol)
|
||||
("M-g M-p" . helm-gtags-parse-file)
|
||||
("C-c <" . helm-gtags-previous-history)
|
||||
("C-c >" . helm-gtags-next-history)
|
||||
("M-," . helm-gtags-pop-stack)))
|
||||
#+END_SRC
|
||||
|
||||
** Ag with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-ag
|
||||
:bind
|
||||
(:map gpolonkai/pers-map
|
||||
("s" . helm-do-ag)))
|
||||
#+END_SRC
|
||||
|
||||
** Company with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-company
|
||||
:after
|
||||
company
|
||||
helm
|
||||
:bind
|
||||
(:map company-mode-map
|
||||
("C-c j" . helm-company)
|
||||
:map company-active-map
|
||||
("C-c j" . helm-company)))
|
||||
#+END_SRC
|
||||
|
||||
** Projectile with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-projectile
|
||||
:init
|
||||
(setq projectile-completion-system 'helm)
|
||||
:config
|
||||
(helm-projectile-on))
|
||||
#+END_SRC
|
||||
|
||||
** FlyCheck with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-flycheck)
|
||||
#+END_SRC
|
||||
|
||||
** FlySpell with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-flyspell
|
||||
:demand
|
||||
:bind
|
||||
(:map flyspell-mode-map
|
||||
("C-M-i" . helm-flyspell-correct)))
|
||||
#+END_SRC
|
||||
|
||||
** Search GitHub starred repos with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-github-stars
|
||||
:init
|
||||
(setq-default helm-github-stars-username "gergelypolonkai"))
|
||||
#+END_SRC
|
||||
|
||||
** Smex with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-smex
|
||||
:bind
|
||||
(("M-S-x" . helm-smex)))
|
||||
#+END_SRC
|
||||
|
||||
** Describe bindings with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-descbinds)
|
||||
#+END_SRC
|
||||
|
||||
** Describe modes with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-describe-modes)
|
||||
#+END_SRC
|
||||
|
||||
** REST Client with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package restclient-helm)
|
||||
#+END_SRC
|
||||
|
||||
** C Yasnippets with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-c-yasnippet
|
||||
:demand t
|
||||
:config
|
||||
(setq helm-yas-space-match-any-greedy t)
|
||||
:bind
|
||||
(("C-c y" . helm-yas-complete)))
|
||||
#+END_SRC
|
||||
|
||||
** Git hunks with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-hunks)
|
||||
#+END_SRC
|
||||
|
||||
** PyDoc with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-pydoc)
|
||||
#+END_SRC
|
||||
|
||||
** BibTex with Helm
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helm-bibtex
|
||||
:after
|
||||
org
|
||||
:config
|
||||
(setq bibtex-completion-bibliography (concat user-documents-directory
|
||||
(convert-standard-filename
|
||||
"/orgmode/references.bib"))
|
||||
bibtex-completion-library-path (concat user-documents-directory
|
||||
(convert-standard-filename
|
||||
"/orgmode/bibtex-pdfs"))
|
||||
bibtex-completion-notes-path (concat user-documents-directory
|
||||
(convert-standard-filename
|
||||
"/orgmode/bibliography/helm-bibtex-notes"))
|
||||
bibtex-completion-pdf-open-function 'org-open-file))
|
||||
#+END_SRC
|
||||
|
||||
* Mode specific ~use-package~ calls
|
||||
|
||||
** JavaScript
|
||||
|
108
init.el
108
init.el
@ -37,26 +37,6 @@
|
||||
(regexp-quote "/com.termux/")
|
||||
(expand-file-name "~")))
|
||||
|
||||
(use-package helm
|
||||
:init
|
||||
(require 'helm-config)
|
||||
(setq helm-M-x-fuzzy-match t
|
||||
helm-buffers-fuzzy-matching t
|
||||
helm-recentf-fuzzy-match t)
|
||||
:config
|
||||
(helm-mode t)
|
||||
:bind
|
||||
(("M-x" . helm-M-x)
|
||||
:map ctl-x-map
|
||||
("C-f" . helm-find-files)
|
||||
("b" . helm-mini)
|
||||
:map helm-map
|
||||
("/" . gpolonkai/helm-ff-slash-dir-complete)))
|
||||
|
||||
(use-package helm-swoop
|
||||
:bind
|
||||
(("M-i" . helm-swoop)))
|
||||
|
||||
(use-package ggtags
|
||||
:config
|
||||
(add-hook 'c-mode-hook
|
||||
@ -67,25 +47,6 @@
|
||||
(when (derived-mode-p 'c-mode 'c++-mode 'java-mode)
|
||||
(ggtags-mode t)))))
|
||||
|
||||
(use-package helm-gtags
|
||||
:init
|
||||
(setq-default helm-gtags-auto-update t
|
||||
helm-gtags-ignore-case t
|
||||
helm-gtags-path-style 'relative)
|
||||
:config
|
||||
(add-hook 'c-mode-hook
|
||||
(lambda ()
|
||||
(helm-gtags-mode t)))
|
||||
:bind
|
||||
(:map helm-gtags-mode-map
|
||||
("M-t" . helm-gtags-find-tag)
|
||||
("M-r" . helm-gtags-find-rtag)
|
||||
("M-s" . helm-gtags-find-symbol)
|
||||
("M-g M-p" . helm-gtags-parse-file)
|
||||
("C-c <" . helm-gtags-previous-history)
|
||||
("C-c >" . helm-gtags-next-history)
|
||||
("M-," . helm-gtags-pop-stack)))
|
||||
|
||||
;; Whitespace mode
|
||||
;;
|
||||
;; It is turned on by default, and can be toggled with F10
|
||||
@ -210,11 +171,6 @@
|
||||
("j" . origami-forward-fold)
|
||||
("x" . origami-reset)))
|
||||
|
||||
(use-package helm-ag
|
||||
:bind
|
||||
(:map gpolonkai/pers-map
|
||||
("s" . helm-do-ag)))
|
||||
|
||||
(use-package smartparens
|
||||
:demand
|
||||
:config
|
||||
@ -286,27 +242,11 @@
|
||||
(put 'company-clang-arguments 'safe-local-variable #'nil-or-list-of-strings-p)
|
||||
(global-company-mode))
|
||||
|
||||
(use-package helm-company
|
||||
:after
|
||||
company
|
||||
helm
|
||||
:bind
|
||||
(:map company-mode-map
|
||||
("C-c j" . helm-company)
|
||||
:map company-active-map
|
||||
("C-c j" . helm-company)))
|
||||
|
||||
(use-package projectile
|
||||
:pin melpa-stable
|
||||
:config
|
||||
(projectile-global-mode t))
|
||||
|
||||
(use-package helm-projectile
|
||||
:init
|
||||
(setq projectile-completion-system 'helm)
|
||||
:config
|
||||
(helm-projectile-on))
|
||||
|
||||
(use-package drag-stuff
|
||||
:config
|
||||
(drag-stuff-global-mode t)
|
||||
@ -510,18 +450,6 @@
|
||||
|
||||
(use-package helm-chrome)
|
||||
|
||||
(use-package helm-flycheck)
|
||||
|
||||
(use-package helm-flyspell
|
||||
:demand
|
||||
:bind
|
||||
(:map flyspell-mode-map
|
||||
("C-M-i" . helm-flyspell-correct)))
|
||||
|
||||
(use-package helm-github-stars
|
||||
:init
|
||||
(setq-default helm-github-stars-username "gergelypolonkai"))
|
||||
|
||||
(use-package helm-google)
|
||||
|
||||
(use-package id-manager
|
||||
@ -560,10 +488,6 @@
|
||||
|
||||
(use-package xlicense)
|
||||
|
||||
(use-package helm-smex
|
||||
:bind
|
||||
(("M-S-x" . helm-smex)))
|
||||
|
||||
(use-package ediff
|
||||
:init
|
||||
(setq-default ediff-merge-split-window-function 'split-window-horizontally
|
||||
@ -627,10 +551,6 @@
|
||||
(add-hook 'text-mode-hook
|
||||
'flyspell-mode))
|
||||
|
||||
(use-package helm-descbinds)
|
||||
|
||||
(use-package helm-describe-modes)
|
||||
|
||||
(use-package autorevert
|
||||
:config
|
||||
(global-auto-revert-mode 1))
|
||||
@ -663,8 +583,6 @@
|
||||
|
||||
(use-package company-restclient)
|
||||
|
||||
(use-package restclient-helm)
|
||||
|
||||
(use-package alert
|
||||
:config
|
||||
(setq alert-default-style
|
||||
@ -827,17 +745,6 @@ INFO plist."
|
||||
|
||||
(use-package gitlab)
|
||||
|
||||
(use-package helm-c-yasnippet
|
||||
:demand t
|
||||
:config
|
||||
(setq helm-yas-space-match-any-greedy t)
|
||||
:bind
|
||||
(("C-c y" . helm-yas-complete)))
|
||||
|
||||
(use-package helm-hunks)
|
||||
|
||||
(use-package helm-pydoc)
|
||||
|
||||
(use-package hl-todo)
|
||||
|
||||
(use-package glasses
|
||||
@ -942,21 +849,6 @@ INFO plist."
|
||||
|
||||
(use-package feature-mode)
|
||||
|
||||
(use-package helm-bibtex
|
||||
:after
|
||||
org
|
||||
:config
|
||||
(setq bibtex-completion-bibliography (concat user-documents-directory
|
||||
(convert-standard-filename
|
||||
"/orgmode/references.bib"))
|
||||
bibtex-completion-library-path (concat user-documents-directory
|
||||
(convert-standard-filename
|
||||
"/orgmode/bibtex-pdfs"))
|
||||
bibtex-completion-notes-path (concat user-documents-directory
|
||||
(convert-standard-filename
|
||||
"/orgmode/bibliography/helm-bibtex-notes"))
|
||||
bibtex-completion-pdf-open-function 'org-open-file))
|
||||
|
||||
(use-package org-ref
|
||||
:after
|
||||
org
|
||||
|
Loading…
Reference in New Issue
Block a user