Reduce amount of ligatures to bare essential
This commit is contained in:
parent
25d3a6f773
commit
91db76b200
60
README.org
60
README.org
|
@ -344,62 +344,10 @@ Loading this file is handled automatically on my [[https://git.xenia.me.uk/xenia
|
||||||
:ensure t
|
:ensure t
|
||||||
:diminish
|
:diminish
|
||||||
:config
|
:config
|
||||||
;; Enable all ligatures in programming modes
|
(ligature-set-ligatures '(text-mode prog-mode)
|
||||||
(ligature-set-ligatures '(prog-mode)
|
'("==" "!=" ">=" "<="
|
||||||
'(;; == === ==== => =| =>>=>=|=>==>> ==< =/=//=// =~
|
"->" "=>" "~>"))
|
||||||
;; =:= =!=
|
(global-ligature-mode +1))
|
||||||
("=" (rx (+ (or ">" "<" "|" "/" "~" ":" "!" "="))))
|
|
||||||
;; ;; ;;;
|
|
||||||
(";" (rx (+ ";")))
|
|
||||||
;; && &&&
|
|
||||||
("&" (rx (+ "&")))
|
|
||||||
;; !! !!! !. !: !!. != !== !~
|
|
||||||
("!" (rx (+ (or "=" "!" "\." ":" "~"))))
|
|
||||||
;; ?? ??? ?: ?= ?.
|
|
||||||
("?" (rx (or ":" "=" "\." (+ "?"))))
|
|
||||||
;; %% %%%
|
|
||||||
("%" (rx (+ "%")))
|
|
||||||
;; |> ||> |||> ||||> |] |} || ||| |-> ||-||
|
|
||||||
;; |->>-||-<<-| |- |== ||=||
|
|
||||||
;; |==>>==<<==<=>==//==/=!==:===>
|
|
||||||
("|" (rx (+ (or ">" "<" "|" "/" ":" "!" "}" "\]"
|
|
||||||
"-" "=" ))))
|
|
||||||
;; \\ \\\ \/
|
|
||||||
("\\" (rx (or "/" (+ "\\"))))
|
|
||||||
;; ++ +++ ++++ +>
|
|
||||||
("+" (rx (or ">" (+ "+"))))
|
|
||||||
;; :: ::: :::: :> :< := :// ::=
|
|
||||||
(":" (rx (or ">" "<" "=" "//" ":=" (+ ":"))))
|
|
||||||
;; // /// //// /\ /* /> /===:===!=//===>>==>==/
|
|
||||||
("/" (rx (+ (or ">" "<" "|" "/" "\\" "\*" ":" "!"
|
|
||||||
"="))))
|
|
||||||
;; .. ... .... .= .- .? ..= ..<
|
|
||||||
("\." (rx (or "=" "-" "\?" "\.=" "\.<" (+ "\."))))
|
|
||||||
;; -- --- ---- -~ -> ->> -| -|->-->>->--<<-|
|
|
||||||
("-" (rx (+ (or ">" "<" "|" "~" "-"))))
|
|
||||||
;; ** *** ****
|
|
||||||
("*" (rx (+ "*")))
|
|
||||||
;; <> <!-- <|> <: <~ <~> <~~ <+ <* <$ </ <+> <*>
|
|
||||||
;; <$> </> <| <|| <||| <|||| <- <-| <-<<-|-> <->>
|
|
||||||
;; <<-> <= <=> <<==<<==>=|=>==/==//=!==:=>
|
|
||||||
;; << <<< <<<<
|
|
||||||
("<" (rx (+ (or "\+" "\*" "\$" "<" ">" ":" "~" "!"
|
|
||||||
"-" "/" "|" "="))))
|
|
||||||
;; >: >- >>- >--|-> >>-|-> >= >== >>== >=|=:=>>
|
|
||||||
;; >> >>> >>>>
|
|
||||||
(">" (rx (+ (or ">" "<" "|" "/" ":" "=" "-"))))
|
|
||||||
;; #: #= #! #( #? #[ #{ #_ #_( ## ### #####
|
|
||||||
("#" (rx (or ":" "=" "!" "(" "\?" "\[" "{" "_(" "_"
|
|
||||||
(+ "#"))))
|
|
||||||
;; ~~ ~~~ ~= ~- ~@ ~> ~~>
|
|
||||||
("~" (rx (or ">" "=" "-" "@" "~>" (+ "~"))))
|
|
||||||
;; __ ___ ____ _|_ __|____|_
|
|
||||||
("_" (rx (+ (or "_" "|"))))
|
|
||||||
;; The few not covered by the regexps.
|
|
||||||
"{|" "[|" "]#" "(*" "}#" "$>" "^="))
|
|
||||||
;; Enables ligature checks globally in all buffers. You can also do it
|
|
||||||
;; per mode with `ligature-mode'.
|
|
||||||
(global-ligature-mode t))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
** Notifications
|
** Notifications
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
Loading…
Reference in a new issue