Set ligratures for csharp-mode
This commit is contained in:
parent
4e4ad325a5
commit
784acaa64d
1 changed files with 20 additions and 0 deletions
|
@ -7,6 +7,26 @@
|
||||||
(set-rotate-patterns! 'csharp-mode
|
(set-rotate-patterns! 'csharp-mode
|
||||||
:symbols '(("public" "protected" "private")
|
:symbols '(("public" "protected" "private")
|
||||||
("class" "struct")))
|
("class" "struct")))
|
||||||
|
(set-ligatures! 'csharp-mode
|
||||||
|
;; Functional
|
||||||
|
:lambda "() =>"
|
||||||
|
;; Types
|
||||||
|
:null "null"
|
||||||
|
:true "true"
|
||||||
|
:false "false"
|
||||||
|
:int "int"
|
||||||
|
:float "float"
|
||||||
|
:str "string"
|
||||||
|
:bool "bool"
|
||||||
|
:list "List"
|
||||||
|
;; Flow
|
||||||
|
:not "!"
|
||||||
|
:in "in"
|
||||||
|
:and "&&"
|
||||||
|
:or "||"
|
||||||
|
:for "for"
|
||||||
|
:return "return"
|
||||||
|
:yield "yield")
|
||||||
|
|
||||||
(sp-local-pair 'csharp-mode "<" ">"
|
(sp-local-pair 'csharp-mode "<" ">"
|
||||||
:when '(+csharp-sp-point-in-type-p)
|
:when '(+csharp-sp-point-in-type-p)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue