summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-19 19:49:53 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-19 19:49:53 -0700
commit3f6db3dd8d958e66dd6cc94e4c919c8d0f0ae38a (patch)
tree3a3d1cb51540364a7e340ff322177c2d312e2895 /emacs
parentUI: remove completely `use-package' (diff)
downloademacs.d-3f6db3dd8d958e66dd6cc94e4c919c8d0f0ae38a.tar.gz
no need for `use-package' for a few more modes
Diffstat (limited to 'emacs')
-rw-r--r--emacs/custom/my-text.el38
-rw-r--r--emacs/init.el3
2 files changed, 16 insertions, 25 deletions
diff --git a/emacs/custom/my-text.el b/emacs/custom/my-text.el
index 292a7f9..c926be3 100644
--- a/emacs/custom/my-text.el
+++ b/emacs/custom/my-text.el
@@ -1,31 +1,21 @@
-;;; my-text.el --- configures
+;;; my-text.el --- configures modes related to text -*- lexical-binding: t -*-
+
 ;;; Commentary:
-;;; Code:
 
-(require 'use-package)
+;;; Code:
 
-(use-package flyspell
-  :ensure t
-  :if (executable-find "aspell")
-  :hook ((text-mode . flyspell-mode)
-         (prog-mode . flyspell-prog-mode))
-  :custom
-  (ispell-dictionary "en_US")
-  (ispell-program-name "aspell")
-  (ispell-extra-args '("--camel-case")))
+(require 'flyspell)
+(setq ispell-dictionary "en_US"
+      ispell-program-name "aspell"
+      ispell-extra-args '("--camel-case"))
+(add-hook 'text-mode-hook 'flyspell-mode)
+(add-hook 'prog-mode-hook 'flyspell-prog-mode)
 
-(use-package markdown-mode
-  :ensure t
-  :after (flyspell)
-  :commands (markdown-mode gfm-mode)
-  :mode (("README\\.md\\'" . gfm-mode)
-         ("\\.md\\'"       . gfm-mode)
-         ("\\.markdown\\'" . gfm-mode))
-  :custom
-  (markdown-fontify-code-blocks-natively t)
-  :config
-  (when (executable-find "pandoc")
-    (setq markdown-command "pandoc -f markdown -t html")))
+(require 'markdown-mode)
+(setq markdown-fontify-code-blocks-natively t)
+(when (executable-find "pandoc")
+  (setq markdown-command "pandoc -f markdown -t html"))
 
 (provide 'my-text)
+
 ;;; my-text.el ends here
diff --git a/emacs/init.el b/emacs/init.el
index 1ef3676..7fbc245 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -17,7 +17,8 @@
 (defvar my/package-list
   '(use-package
      exec-path-from-shell
-     notmuch)
+     notmuch
+     markdown-mode)
   "List of packages to be installed.")
 
 (defun my/packages-installed-p ()