From f72ae6ca69924422204bdd03b8a3b5fdeb3ca368 Mon Sep 17 00:00:00 2001 From: Arnaud Bailly Date: Tue, 6 Feb 2024 11:11:49 +0100 Subject: Update emacs config --- .emacs | 225 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 197 insertions(+), 28 deletions(-) (limited to '.emacs') diff --git a/.emacs b/.emacs index 73f8e48..9532e2b 100644 --- a/.emacs +++ b/.emacs @@ -12,20 +12,46 @@ '((fullscreen . maximized) (fullscreen-restore . fullheight))) +;; from https://github.com/emacs-lsp/lsp-mode/issues/4054 +(add-to-list 'image-types 'svg) + ;;; Code: (add-hook 'window-setup-hook (lambda nil ;; font setting (set-frame-parameter (selected-frame) 'alpha '(100 100)) (set-face-attribute 'default nil - :family "Hack" - :height 160) + :family "mononoki" + :height 140) + +)) - )) +(use-package ligature + :ensure t + :config + ;; Enable the www ligature in every possible major mode + (ligature-set-ligatures 't '("www")) + + ;; Enable ligatures in programming modes + (ligature-set-ligatures 'prog-mode + '("www" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::" + ":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>" + "-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_" + "#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**" + "/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>" + "++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<=" + "=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*" + "<*>" "<|" "<|>" "<$" "<$>" "