From abea85902668908504b27ebb6a97529fb84b1a11 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 2 Nov 2024 22:03:32 +0100 Subject: emacs: Add ‘mm-lsp-p’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/emacs/init.el | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 8c86c86..33495da 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -19,6 +19,14 @@ (expand-file-name "site-lisp" mm-config-directory))) (add-to-list 'load-path directory)) + +;;; Disable or Enable LSP? + +;; I’m not decided on LSP… so make it a variable + +(defvar mm-lsp-p nil + "Enable LSP support if non-nil.") + ;;; Convenience Macros and -Functions @@ -303,17 +311,16 @@ the buffer without saving it." (require 'mm-documentation) ; Documentation (require 'mm-editing) ; Text Editing (require 'mm-keybindings) ; Keybindings -(mm-comment - (require 'mm-lsp)) ; Language Server Protocol (require 'mm-modeline) ; Modeline (require 'mm-projects) ; Project Management (require 'mm-spellcheck) ; Spell Checking (require 'mm-tetris) ; Emacs Tetris (require 'mm-theme) ; Themeing (require 'mm-treesit) ; Tree-Sitter - (when mm-darwin-p (require 'mm-darwin)) ; MacOS +(when mm-lsp-p + (require 'mm-lsp)) ; Language Server Protocol ;;; Postamble -- cgit v1.2.3