aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-rw-r--r--emacs/emacs-rh.el19
-rw-r--r--emacs/emacs.el8
2 files changed, 14 insertions, 13 deletions
diff --git a/emacs/emacs-rh.el b/emacs/emacs-rh.el
index 0948a366..67de770f 100644
--- a/emacs/emacs-rh.el
+++ b/emacs/emacs-rh.el
@@ -19,20 +19,13 @@
:config
(add-hook 'adoc-mode-hook #'abbrev-mode))
-(cl-defun slot/vc-install (&key (fetcher "github") repo name rev backend)
- (let* ((url (format "https://www.%s.com/%s" fetcher repo))
- (iname (when name (intern name)))
- (pac-name (or iname (intern (file-name-base repo)))))
- (unless (package-installed-p pac-name)
- (package-vc-install url iname rev backend))))
-
(use-package flymake-vale
- :init (slot/vc-install :fetcher "github" :repo "tpeacock19/flymake-vale")
- :ensure t)
-
-(add-hook 'adoc-mode-hook #'flymake-vale-load)
-(add-hook 'find-file-hook 'flymake-vale-maybe-load)
-(add-hook 'adoc-mode-hook 'flymake-mode)
+ :vc (:url "https://github.com/tpeacock19/flymake-vale.git"
+ :rev :newest)
+ :config
+ (add-to-list 'flymake-vale-modes 'adoc-mode)
+ (add-hook 'find-file-hook 'flymake-vale-maybe-load)
+ )
(use-package flymake-aspell
:ensure t)
diff --git a/emacs/emacs.el b/emacs/emacs.el
index 0e6713f9..860e7b77 100644
--- a/emacs/emacs.el
+++ b/emacs/emacs.el
@@ -155,3 +155,11 @@
(setq prolog-system 'swi)
(setq auto-mode-alist (append '(("\\.pl\\'" . prolog-mode))
auto-mode-alist))
+
+(use-package flymake-vale
+ :vc (:url "https://github.com/tpeacock19/flymake-vale.git"
+ :rev :newest)
+ :config
+ (add-to-list 'flymake-vale-modes 'rust-mode)
+ (add-hook 'find-file-hook 'flymake-vale-maybe-load)
+ )