Updates for formatting and init hook
This commit is contained in:
parent
2c9e1c83ed
commit
9d46c212af
1 changed files with 21 additions and 22 deletions
|
@ -15,17 +15,17 @@
|
|||
(provide 'smartparens-elixir)
|
||||
:config
|
||||
(set-ligatures! 'elixir-mode
|
||||
;; Functional
|
||||
:def "def"
|
||||
:lambda "fn"
|
||||
;; :src_block "do"
|
||||
;; :src_block_end "end"
|
||||
;; Flow
|
||||
:not "!"
|
||||
:in "in" :not-in "not in"
|
||||
:and "and" :or "or"
|
||||
:for "for"
|
||||
:return "return" :yield "use")
|
||||
;; Functional
|
||||
:def "def"
|
||||
:lambda "fn"
|
||||
;; :src_block "do"
|
||||
;; :src_block_end "end"
|
||||
;; Flow
|
||||
:not "!"
|
||||
:in "in" :not-in "not in"
|
||||
:and "and" :or "or"
|
||||
:for "for"
|
||||
:return "return" :yield "use")
|
||||
|
||||
;; ...and only complete the basics
|
||||
(sp-with-modes 'elixir-mode
|
||||
|
@ -74,15 +74,14 @@
|
|||
|
||||
(use-package! exunit
|
||||
:hook (elixir-mode . exunit-mode)
|
||||
:defer t
|
||||
:config
|
||||
:init
|
||||
(map! :after elixir-mode
|
||||
:localleader
|
||||
:map elixir-mode-map
|
||||
:prefix "t"
|
||||
"a" #'exunit-verify-all
|
||||
"r" #'exunit-rerun
|
||||
"v" #'exunit-verify
|
||||
"T" #'exunit-toggle-file-and-test
|
||||
"t" #'exunit-toggle-file-and-test-other-window
|
||||
"s" #'exunit-verify-single))
|
||||
:localleader
|
||||
:map elixir-mode-map
|
||||
:prefix "t"
|
||||
"a" #'exunit-verify-all
|
||||
"r" #'exunit-rerun
|
||||
"v" #'exunit-verify
|
||||
"T" #'exunit-toggle-file-and-test
|
||||
"t" #'exunit-toggle-file-and-test-other-window
|
||||
"s" #'exunit-verify-single))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue