summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-11-02 22:03:32 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-11-02 22:04:13 +0100
commitabea85902668908504b27ebb6a97529fb84b1a11 (patch)
treec3ff1a6326603baf20a6535cf7f1e9b935fb475c
parent4b05656f1547325eb4602aea465adb81a161d8dc (diff)
emacs: Add ‘mm-lsp-p’
-rw-r--r--.config/emacs/init.el13
1 files 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
@@ -20,6 +20,14 @@
(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
(defun mm-mode-to-hook (mode)
@@ -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