From d5ecda3de5dc94dbbd5f17734c34f27742a70b19 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 16 Aug 2021 17:10:21 -0500 Subject: Un-interactify ‘flyspell-start’ --- init.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/init.el b/init.el index c416abe..d2f377e 100644 --- a/init.el +++ b/init.el @@ -490,13 +490,10 @@ like a dumbass." (defun flyspell-start () "Start `flyspell-mode' or `flyspell-prog-mode', depending on current mode." - (interactive) (cond ((derived-mode-p 'text-mode) (flyspell-mode)) ((derived-mode-p 'prog-mode) - (flyspell-prog-mode)) - ((called-interactively-p) - (message "Non-text or -prog mode. Run `flyspell-mode'.")))) + (flyspell-prog-mode)))) (when (executable-find ispell-program-name) (add-hook 'change-major-mode-hook #'flyspell-start)) -- cgit 1.4.1-21-gabe81