Compare commits

...

2 Commits

Author SHA1 Message Date
2651b91b21 Add flycheck-vale (flycheck interface for vale prose linter) 2022-06-05 22:21:58 +02:00
6b908cb1dd Add first vcs (git) config 2022-06-05 22:17:02 +02:00
3 changed files with 50 additions and 0 deletions

9
lisp/init-vcs.el Normal file
View File

@@ -0,0 +1,9 @@
;;; init-vcs.el --- initializes version control systems -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:
(load-all-files-from-dir (path-join *user-emacs-lisp-directory* "vcs"))
(provide 'init-vcs)
;;; init-vcs.el ends here

View File

@@ -72,12 +72,26 @@
:config :config
;; Make sure flycheck-pos-tip is loaded. ;; Make sure flycheck-pos-tip is loaded.
(require 'flycheck-pos-tip nil t)) (require 'flycheck-pos-tip nil t))
;; https://github.com/gexplorer/flycheck-indicator ;; https://github.com/gexplorer/flycheck-indicator
;; An Emacs minor-mode to get a fancy mode line indicator for Flycheck. ;; An Emacs minor-mode to get a fancy mode line indicator for Flycheck.
(use-package flycheck-indicator (use-package flycheck-indicator
:hook (flycheck-mode-hook . flycheck-indicator-mode)) :hook (flycheck-mode-hook . flycheck-indicator-mode))
;; https://github.com/yasuyk/helm-flycheck ;; https://github.com/yasuyk/helm-flycheck
;; Show flycheck errors with helm. ;; Show flycheck errors with helm.
;; https://github.com/abingham/flycheck-vale
;; Flycheck integration for the vale natural language linter.
(use-package flycheck-vale
:ensure t
:quelpa(flycheck-vale
:fetcher git
:url "http://git.adrien.run/Adrien/flycheck-vale.git")
:config
(setq flycheck-vale-config-file "~/dev/perso/vale-config/.vale.ini")
(flycheck-vale-setup))
(use-package helm-flycheck) (use-package helm-flycheck)
(global-flycheck-mode t)) (global-flycheck-mode t))

27
lisp/vcs/git.el Normal file
View File

@@ -0,0 +1,27 @@
;;; git.el --- Git integration -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:
(defun user--git-config ()
"Initialize Git support."
(message "user--git-config")
(use-package magit
:ensure t
:defer
:config
;; https://github.com/dandavison/magit-delta
;; Use delta (https://github.com/dandavison/delta) when viewing diffs in Magit
(use-package magit-delta
:ensure t
:if (executable-find "delta")
:hook (magit-mode . magit-delta-mode))
)
)
(with-executable 'git
(user--git-config))
(provide 'vcs/git)
;;; git.el ends here