From 48dcac5479e275bf4f465369d0f87d9edcc02c87 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Wed, 23 Sep 2020 16:24:57 +0200 Subject: [PATCH] [Emacs] Added languagetool layer, added ligature support, new font This commit adds the `languagetool' layer to my Emacs configuration. Since Emacs 27.1, fonts ligatures are supported with Cairo. The `unicode-fonts' adds support for such feature using `ligatures.el'. Due to the modification above, I changed my default font to Cascadia Code. --- org/config/emacs.org | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/org/config/emacs.org b/org/config/emacs.org index b42a698..4b038b1 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -286,7 +286,22 @@ In this category, again, one layer is enabled: ~unicode-fonts~. This layer addssupport for the ~unicode-fonts~ package. #+BEGIN_SRC emacs-lisp - unicode-fonts + (unicode-fonts :variables + unicode-fonts-enable-ligatures t + unicode-fonts-ligature-modes '(prog-mode) + unicode-fonts-ligature-set '("|||>" "<|||" "<==>" "" "---" "-<<" + "<~~" "<~>" "<*>" "<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->" + "<--" "<-<" "<<=" "<<-" "<<<" "<+>" "" "###" "#_(" "..<" + "..." "+++" "/==" "///" "_|_" "www" "&&" "^=" "~~" "~@" "~=" + "~>" "~-" "**" "*>" "*/" "||" "|}" "|]" "|=" "|>" "|-" "{|" + "[|" "]#" "::" ":=" ":>" ":<" "$>" "==" "=>" "!=" "!!" ">:" + ">=" ">>" ">-" "-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:" + "<$" "<=" "<>" "<-" "<<" "<+" "" "++" "?:" + "?=" "?." "??" ";;" "/*" "/=" "/>" "//" "__" "~~" "(*" "*)" + "\\" "://")) #+END_SRC *** Fun @@ -552,6 +567,16 @@ restclient-use-org t) #+END_SRC + LanguageTool works with Flyspell and will check for grammatical issues in my + english texts. + #+BEGIN_SRC emacs-lisp + (languagetool :variables + langtool-default-language "en-US" + languagetool-show-error-on-jump t + langtool-java-classpath "/usr/share/languagetool:/usr/share/java/languagetool/*") + #+END_SRC + + And finally, we also have the Shell layer for which I specified its default height when spawning at the bottom of the screen should be 40 lines high, and the default shell to invoke is Eshell. @@ -853,7 +878,7 @@ The below variable sets either the default font or a prioritized list of fonts to be used by Emacs. #+BEGIN_SRC emacs-lisp - (setq-default dotspacemacs-default-font '("DejaVu Sans Mono for Powerline" + (setq-default dotspacemacs-default-font '("Cascadia Code" :size 9.0)) #+END_SRC @@ -2972,7 +2997,6 @@ (spacemacs/set-leader-keys "oF" 'helm-locate) #+END_SRC - And that’s it! This should list all my org files under these directories and give me fuzzy finding for these files. I just need to partially type the name of the file I want to open and it should open without any issue.