chore: add languagetool back in

I am sure this was installed before, it must have been removed when I started
making the repo public.

Anyway this adds it all back and also sets up the emacs package for using it
when writing.
This commit is contained in:
Ade Attwood 2022-02-19 14:38:41 +00:00
parent 21b38da6e9
commit 55e3e98701
4 changed files with 32 additions and 0 deletions

View file

@ -26,6 +26,7 @@ node default {
include core::emacs include core::emacs
include core::terminal include core::terminal
include core::mkcert include core::mkcert
include core::language_tool
# #
# Add the private puppet module for all the proprietary bits only if the # Add the private puppet module for all the proprietary bits only if the

View file

@ -36,6 +36,7 @@
(load-file (expand-file-name "src/projectile.el" user-emacs-directory)) (load-file (expand-file-name "src/projectile.el" user-emacs-directory))
(load-file (expand-file-name "src/treemacs.el" user-emacs-directory)) (load-file (expand-file-name "src/treemacs.el" user-emacs-directory))
(load-file (expand-file-name "src/term.el" user-emacs-directory)) (load-file (expand-file-name "src/term.el" user-emacs-directory))
(load-file (expand-file-name "src/language-tool.el" user-emacs-directory))
;; Set up puppet for editing the dotfiles config ;; Set up puppet for editing the dotfiles config
(load-file (expand-file-name "src/puppet.el" user-emacs-directory)) (load-file (expand-file-name "src/puppet.el" user-emacs-directory))

View file

@ -0,0 +1,14 @@
;;; language-tool.el --- AMACS -*- lexical-binding: t; -*-
;;
;; Copyright 2021 Practically.io All rights reserved
;;
;; Use of this source is governed by a BSD-style
;; licence that can be found in the LICENCE file or at
;; https://www.practically.io/copyright/
(use-package languagetool
:quelpa t
:config
(setq languagetool-default-language "en-GB")
(setq languagetool-language-tool-jar
"/.local/share/LanguageTool/LanguageTool-5.6/languagetool-commandline.jar"))

View file

@ -0,0 +1,16 @@
# Module to install the languagetool service locally for creating spelling and
# grammar checking
class core::language_tool {
file { "${user_home}/.local/share/LanguageTool":
ensure => 'directory'
}
archive { 'LanguageTool-5.6.zip':
path => '/tmp/LanguageTool-5.6.zip',
source => 'https://languagetool.org/download/LanguageTool-5.6.zip',
extract => true,
extract_path => "${user_home}/.local/share/LanguageTool",
creates => "${user_home}/.local/share/LanguageTool/LanguageTool-5.6",
require => File["${user_home}/.local/share/LanguageTool"],
}
}