Merge pull request #1039 from ar1a/elixir-pretty

Elixir pretty-symbols
This commit is contained in:
Henrik Lissner 2018-12-06 17:45:26 -05:00 committed by GitHub
commit 145b07972f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -15,6 +15,18 @@
:post-handlers '("||\n[i]")) :post-handlers '("||\n[i]"))
(sp-local-pair "do " " end" :unless '(sp-in-comment-p sp-in-string-p)) (sp-local-pair "do " " end" :unless '(sp-in-comment-p sp-in-string-p))
(sp-local-pair "fn " " end" :unless '(sp-in-comment-p sp-in-string-p)))) (sp-local-pair "fn " " end" :unless '(sp-in-comment-p sp-in-string-p))))
(set-pretty-symbols! '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")
(def-package! alchemist-company (def-package! alchemist-company
:when (featurep! :completion company) :when (featurep! :completion company)

View file

@ -5,7 +5,7 @@
'(;; org '(;; org
:name "»" :name "»"
:src_block "»" :src_block "»"
:src_block_end "»" :src_block_end "«"
;; Functional ;; Functional
:lambda "λ" :lambda "λ"
:def "ƒ" :def "ƒ"