From e4828b646bb8697e40f51fed911332a057e3c03a Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 23 Mar 2022 09:45:02 -0700 Subject: rename fcuny-text to my-text --- emacs/custom/fcuny-text.el | 39 --------------------------------------- emacs/custom/my-text.el | 39 +++++++++++++++++++++++++++++++++++++++ emacs/init.el | 2 +- 3 files changed, 40 insertions(+), 40 deletions(-) delete mode 100644 emacs/custom/fcuny-text.el create mode 100644 emacs/custom/my-text.el (limited to 'emacs') diff --git a/emacs/custom/fcuny-text.el b/emacs/custom/fcuny-text.el deleted file mode 100644 index 56f1b80..0000000 --- a/emacs/custom/fcuny-text.el +++ /dev/null @@ -1,39 +0,0 @@ -;;; fcuny-text.el --- configures -;;; Commentary: -;;; Code: - -(require 'use-package) - -(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")) - :config - (use-package flyspell-correct-ivy - :after flyspell - :ensure t - :bind (:map flyspell-mode-map - ("C-M-:" . flyspell-correct-at-point)) - :custom - (flyspell-correct-interface #'flyspell-correct-ivy))) - -(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"))) - -(provide 'fcuny-text) -;;; fcuny-text.el ends here diff --git a/emacs/custom/my-text.el b/emacs/custom/my-text.el new file mode 100644 index 0000000..6dfb124 --- /dev/null +++ b/emacs/custom/my-text.el @@ -0,0 +1,39 @@ +;;; my-text.el --- configures +;;; Commentary: +;;; Code: + +(require 'use-package) + +(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")) + :config + (use-package flyspell-correct-ivy + :after flyspell + :ensure t + :bind (:map flyspell-mode-map + ("C-M-:" . flyspell-correct-at-point)) + :custom + (flyspell-correct-interface #'flyspell-correct-ivy))) + +(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"))) + +(provide 'my-text) +;;; my-text.el ends here diff --git a/emacs/init.el b/emacs/init.el index 54dc616..cd4d7bc 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -42,7 +42,7 @@ (require 'my-ui (expand-file-name "custom/my-ui" user-emacs-directory)) (require 'my-navigation (expand-file-name "custom/my-navigation" user-emacs-directory)) (require 'my-edit (expand-file-name "custom/my-edit" user-emacs-directory)) -(require 'fcuny-text (expand-file-name "custom/fcuny-text" user-emacs-directory)) +(require 'my-text (expand-file-name "custom/my-text" user-emacs-directory)) (require 'fcuny-git (expand-file-name "custom/fcuny-git" user-emacs-directory)) (require 'fcuny-org (expand-file-name "custom/fcuny-org" user-emacs-directory)) (require 'fcuny-conf (expand-file-name "custom/fcuny-conf" user-emacs-directory)) -- cgit 1.4.1