aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2024-10-27 16:46:50 -0700
committerRaúl Benencia <id@rbenencia.name>2024-10-27 16:46:50 -0700
commit2fb726a8cc369857c3e2eeb173557926f3b073e0 (patch)
tree865f7d8e81944770e2bee87746a899ca515248ec /.emacs.d
parent58e9ecb13a3a01a9dcacc03c467a220f0681bb17 (diff)
emacs: mv fly{check,spell}.el to package rul-write
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/rul-init.d/flycheck.el22
-rw-r--r--.emacs.d/rul-init.d/flyspell.el12
-rw-r--r--.emacs.d/rul-lisp/packages/rul-write.el38
3 files changed, 38 insertions, 34 deletions
diff --git a/.emacs.d/rul-init.d/flycheck.el b/.emacs.d/rul-init.d/flycheck.el
deleted file mode 100644
index 006081e..0000000
--- a/.emacs.d/rul-init.d/flycheck.el
+++ /dev/null
@@ -1,22 +0,0 @@
-(use-package flycheck
- :ensure t
- :config
-
-(flycheck-define-checker proselint
- "A linter for prose."
- :command ("proselint" source-inplace)
- :error-patterns
- ((warning line-start (file-name) ":" line ":" column ": "
- (id (one-or-more (not (any " "))))
- (message) line-end))
- :modes (text-mode markdown-mode gfm-mode org-mode))
-
-(add-to-list 'flycheck-checkers 'proselint)
-
-;; TODO: docker run --rm -p 8010:8010 erikvl87/languagetool
-(use-package flycheck-languagetool
- :ensure t
- :hook (message-mode . flycheck-languagetool-setup)
- :init
- (setq flycheck-languagetool-url "http://localhost:8010")
-))
diff --git a/.emacs.d/rul-init.d/flyspell.el b/.emacs.d/rul-init.d/flyspell.el
deleted file mode 100644
index 8cf27b8..0000000
--- a/.emacs.d/rul-init.d/flyspell.el
+++ /dev/null
@@ -1,12 +0,0 @@
-(defcustom flyspell-delayed-commands nil
- "List of commands that are \"delayed\" for Flyspell mode.
-After these commands, Flyspell checking is delayed for a short time,
-whose length is specified by `flyspell-delay'."
- :group 'flyspell
- :type '(repeat (symbol)))
-
-(setq ispell-dictionary "en")
-(setq flyspell-default-dictionary "en")
-
-(setq flyspell-issue-welcome-flag nil)
-(setq-default ispell-list-command "list")
diff --git a/.emacs.d/rul-lisp/packages/rul-write.el b/.emacs.d/rul-lisp/packages/rul-write.el
index 1f7820f..719baaf 100644
--- a/.emacs.d/rul-lisp/packages/rul-write.el
+++ b/.emacs.d/rul-lisp/packages/rul-write.el
@@ -54,4 +54,42 @@ Else create a new file."
;; auto-fill mode
(add-hook 'text-mode-hook 'turn-on-auto-fill)
+;; Flycheck
+(use-package flycheck
+ :ensure t
+ :config
+
+(flycheck-define-checker proselint
+ "A linter for prose."
+ :command ("proselint" source-inplace)
+ :error-patterns
+ ((warning line-start (file-name) ":" line ":" column ": "
+ (id (one-or-more (not (any " "))))
+ (message) line-end))
+ :modes (text-mode markdown-mode gfm-mode org-mode))
+
+(add-to-list 'flycheck-checkers 'proselint)
+
+;; TODO: docker run --rm -p 8010:8010 erikvl87/languagetool
+(use-package flycheck-languagetool
+ :ensure t
+ :hook (message-mode . flycheck-languagetool-setup)
+ :init
+ (setq flycheck-languagetool-url "http://localhost:8010")
+))
+
+;; Flyspell
+(defcustom flyspell-delayed-commands nil
+ "List of commands that are \"delayed\" for Flyspell mode.
+After these commands, Flyspell checking is delayed for a short time,
+whose length is specified by `flyspell-delay'."
+ :group 'flyspell
+ :type '(repeat (symbol)))
+
+(setq ispell-dictionary "en")
+(setq flyspell-default-dictionary "en")
+
+(setq flyspell-issue-welcome-flag nil)
+(setq-default ispell-list-command "list")
+
(provide 'rul-write)
nihil fit ex nihilo