Add evil-matchit and enable it in html and auctex layers

This commit is contained in:
syl20bnr 2015-01-15 23:45:53 -05:00
parent 4644fa7433
commit 02d2d6c271
6 changed files with 23 additions and 0 deletions

View file

@ -6,6 +6,8 @@ Includes support for Auctex including some bindings, sane defaults, and manual l
Along with other things this layer includes company-auctex, it's only enabled if you also enable my other contrib layer `company-mode`.
Tags navigation can be performed with key `%` thanks to [evil-matchit][].
## Keybindings
Key Binding | Description
@ -30,3 +32,5 @@ Key Binding | Description
This layer was created by and is maintained by @trishume, ping me in the Gitter chat if you have questions. Feel free to submit
PRs for this layer though if you have improvements.
[evil-matchit]: https://github.com/redguardtoo/evil-matchit

View file

@ -1,6 +1,7 @@
(defvar auctex-packages
'(
auctex
evil-matchit
))
(when (member 'company-mode dotspacemacs-configuration-layers)
@ -61,3 +62,6 @@
(setq-default TeX-parse-self t)
(setq-default TeX-master nil)
(setq-default TeX-PDF-mode t))))
(defun auctex/init-evil-matchit ()
(add-hook 'web-mode-hook 'evil-matchit-mode))

View file

@ -20,6 +20,7 @@ Features:
- Editing HTML and CSS file using [web-mode][]
- Support for Scss and Less files
- Generate HTML and CSS coding using [emmet-mode][]
- Tags navigation on key `%` using [evil-matchit][]
## Install
@ -41,3 +42,5 @@ To use this contribution add it to your `~/.spacemacs`
[web-mode]: http://web-mode.org/
[emmet-mode]: https://github.com/smihica/emmet-mode
[evil-matchit]: https://github.com/redguardtoo/evil-matchit

View file

@ -13,6 +13,7 @@
(defvar html-packages
'(
emmet-mode
evil-matchit
flycheck
helm-css-scss
less-css-mode
@ -58,6 +59,9 @@ which require an initialization must be listed explicitly in the list.")
(local-set-key (kbd "<tab>") 'emmet-expand-yas)
(spacemacs|hide-lighter emmet-mode))))
(defun html/init-evil-matchit ()
(add-hook 'web-mode-hook 'evil-matchit-mode))
(defun html/init-scss-mode ()
(use-package scss-mode
:defer t

View file

@ -627,6 +627,7 @@ your `~/.spacemacs`):
[evil-visualstar][] | search for current selection with `*`
[evil-exchange][] | port of [vim-exchange][]
[evil-surround][] | port of [vim-surround][]
[evil-matchit][] | port of [matchit.vim][]
[evil-nerd-commenter][] | port of [nerdcommenter][]
[evil-search-highlight-persist][] | emulation of hlsearch behavior
[evil-numbers][] | like C-a/C-x in vim
@ -2064,6 +2065,8 @@ developers to elisp hackers!
[vim-surround]: https://github.com/tpope/vim-surround
[evil-nerd-commenter]: https://github.com/redguardtoo/evil-nerd-commenter
[nerdcommenter]: https://github.com/scrooloose/nerdcommenter
[evil-matchit]: https://github.com/redguardtoo/evil-matchit
[matchit.vim]: http://www.vim.org/scripts/script.php?script_id=39
[source code pro]: https://github.com/adobe-fonts/source-code-pro
[evil-escape]: https://github.com/syl20bnr/evil-escape
[evil-args]: https://github.com/wcsmith/evil-args

View file

@ -39,6 +39,7 @@
evil-jumper
evil-leader
evil-nerd-commenter
evil-matchit
evil-numbers
evil-org
evil-search-highlight-persist
@ -717,6 +718,10 @@ which require an initialization must be listed explicitly in the list.")
"ct" 'evilnc-quick-comment-or-uncomment-to-the-line
"cy" 'evilnc-copy-and-comment-lines))))
(defun spacemacs/init-evil-matchit ()
(use-package evil-matchit
:defer t))
(defun spacemacs/init-evil-numbers ()
(use-package evil-numbers
:config