 (use-package lsp-mode
   :init
 
+  (defcustom radian-lsp-disable nil
+    "If non-nil, then LSP is not allowed to be enabled.
+For use in file-local variables."
+    :type 'boolean
+    :safe #'booleanp)
+
   (radian-defhook radian--lsp-enable ()
     after-change-major-mode-hook
     "Enable `lsp-mode' for most programming modes.

(use-package flycheck
  :defer 4
  :init

  (defun radian--flycheck-disable-checkers (&rest checkers)
    "Disable the given Flycheck syntax CHECKERS, symbols.

sure regular mode hooks get a chance to run first, for example to
set LSP configuration (see `lsp-python-ms')."
    (when (derived-mode-p #'prog-mode #'text-mode)
      (unless (or radian-lsp-disable
                  (null buffer-file-name)
                  (derived-mode-p
                   ;; `lsp-mode' doesn't support Elisp, so let's avoid
                   ;; triggering the autoload just for checking that, yes,
