ligatures for victor mono

This commit is contained in:
2024-03-09 16:57:58 +01:00
parent 8c7cf1b5f6
commit 3f6ce8c086

46
.emacs
View File

@ -33,26 +33,38 @@
'("language_server.bat") '("language_server.bat")
(eglot-alternatives (eglot-alternatives
'("language_server.sh" '("language_server.sh"
"/home/marmalade/dev/stuff/3rdparty/lexical/_build/dev/package/lexical/bin/start_lexical.sh")))))) "/home/rdiedrich/dev/3rdparty/lexical/_build/dev/package/lexical/bin/start_lexical.sh"))))))
(use-package elixir-ts-mode (use-package elixir-ts-mode
:ensure t :ensure t
:hook :hook
(elixir-ts-mode . eglot-ensure) (elixir-ts-mode . eglot-ensure)
(elixir-ts-mode
.
(lambda ()
(push '(">=" . ?\u2265) prettify-symbols-alist)
(push '("<=" . ?\u2264) prettify-symbols-alist)
(push '("!=" . ?\u2260) prettify-symbols-alist)
(push '("==" . ?\u2A75) prettify-symbols-alist)
(push '("=~" . ?\u2245) prettify-symbols-alist)
(push '("<-" . ?\u2190) prettify-symbols-alist)
(push '("->" . ?\u2192) prettify-symbols-alist)
(push '("<-" . ?\u2190) prettify-symbols-alist)
(push '("|>" . ?\u25B7) prettify-symbols-alist)))
(before-save . eglot-format)) (before-save . eglot-format))
(use-package ligature :ensure t
:config
;; Enable all Iosevka ligatures in programming modes
(ligature-set-ligatures
'prog-mode
;; Iosevka
;;'("<---" "<--" "<<-" "<-" "->" "-->" "--->" "<->" "<-->" "<--->" "<---->" "<!--"
;; "<==" "<===" "<=" "=>" "=>>" "==>" "===>" ">=" "<=>" "<==>" "<===>" "<====>" "<!---"
;; "<~~" "<~" "~>" "~~>" "::" ":::" "==" "!=" "===" "!=="
;; ":=" ":-" ":+" "<*" "<*>" "*>" "<|" "<|>" "|>" "+:" "-:" "=:" "<******>" "++" "+++")
'(
"</" "</>" "/>" "~-" "-~" "~@" "<~" "<~>" "<~~" "~>" "~~" "~~>"
">=" "<=" "<!--" "##" "###" "####" "|-" "-|" "|->" "<-|" ">-|"
"|-<" "|=" "|=>" ">-" "<-" "<--" "-->" "->" "-<" ">->" ">>-"
"<<-" "<->" "->>" "-<<" "<-<" "==>" "=>" "=/=" "!==" "!=" "<=="
">>=" "=>>" ">=>" "<=>" "<=<" "=<=" "=>=" "<<=" "=<<" ".-" ".="
"=:=" "=!=" "==" "===" "::" ":=" ":>" ":<" ">:" "<:" ";;" "=~"
"!~" "::<" "<|" "<|>" "|>" "<>" "<$" "<$>" "$>" "<+" "<+>" "+>"
"?=" "/=" "/==" "/\\" "\\/" "__" "&&" "++" "+++"
))
;; Enables ligature checks globally in all buffers. You can also do it
;; per mode with `ligature-mode'.
(global-ligature-mode t))
(use-package exec-path-from-shell (use-package exec-path-from-shell
:if (memq window-system '(mac ns x)) :if (memq window-system '(mac ns x))
:ensure t :ensure t
@ -194,13 +206,15 @@
'(custom-enabled-themes '(leuven)) '(custom-enabled-themes '(leuven))
'(inhibit-startup-screen t) '(inhibit-startup-screen t)
'(initial-scratch-message nil) '(initial-scratch-message nil)
'(menu-bar-mode nil)
'(package-selected-packages '(package-selected-packages
'(magit elixir-yasnippets consult-yasnippet rainbow-delimiters exec-path-from-shell elixir-mode elixir-ts-mode paredit par-edit org)) '(color-theme-sanityinc-tomorrow ligature magit elixir-yasnippets consult-yasnippet rainbow-delimiters exec-path-from-shell elixir-mode elixir-ts-mode paredit par-edit org))
'(scroll-bar-mode nil) '(scroll-bar-mode nil)
'(tool-bar-mode nil)) '(tool-bar-mode nil)
'(tooltip-mode nil))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(default ((t (:family "Inconsolata" :foundry "PfEd" :slant normal :weight medium :height 158 :width normal))))) '(default ((t (:family "Victor Mono" :foundry "UKWN" :slant normal :weight regular :height 181 :width normal)))))