From 1cfa19d3efbb6d62d34c59c013e4d95582f76faa Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Tue, 23 Nov 2021 03:44:29 +0000
Subject: [PATCH] added indentation highlighting

---
 config.org |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/config.org b/config.org
index 222d992..cb0301e 100644
--- a/config.org
+++ b/config.org
@@ -8,7 +8,7 @@
   (cond ((eq system-type 'windows-nt)
          (add-to-list 'exec-path "C:/msys64/usr/bin")
          (add-to-list 'exec-path "C:/msys64/mingw64/bin")
-         (add-to-list 'exec-path "c:/Program Files/gnuplot")
+         (add-to-list 'exec-path "C:/Program Files/gnuplot")
          (setenv "PATH" (mapconcat #'identity exec-path path-separator)))
         ((eq system-type 'darwin)
          (use-package exec-path-from-shell
@@ -718,6 +718,13 @@
     (minimap-mode))
 #+END_SRC
 
+** Highlight indentation
+Vertical demarcations for indent levels
+#+BEGIN_SRC emacs-lisp
+  (use-package highlight-indentation
+    :ensure t
+    :hook (prog-mode . highlight-indentation-mode))
+#+END_SRC
 * Mode line tweaks
 Diminish is used but is included in init.el such that it can be used throughout this document
 ** Spaceline
@@ -817,9 +824,10 @@
     (setq lsp-keymap-prefix "C-c l")
     :commands lsp
     :config
-    (add-hook lsp-mode-hook lsp-enable-which-key-integration)
+    (add-hook 'lsp-mode-hook 'lsp-enable-which-key-integration)
     (setq read-process-output-max (* 1024 1024))
     (setq lsp-completion-provider :capf)
+    (setq lsp-keep-workspace-alive 'nil)
     (add-to-list 'exec-path "~/.cargo/bin"))
 
   (use-package lsp-ui
@@ -986,7 +994,7 @@
                                      company-dabbrev-code
                                      company-irony)))
 #+END_SRC
-**** COMMENT Clang-format
+**** Clang-format
 Automatically format buffer on save.
 #+BEGIN_SRC emacs-lisp
   (when (file-exists-p "/usr/share/clang/clang-format.el")
@@ -999,12 +1007,12 @@
                                            "IndentCaseLabels: false}"))
     (setq-default clang-format-style clang-format-linux-style)
     (defun clang-format-on-save ()
-      (add-hook 'before-save-hook 'clang-format-buffer))
-    (add-hook 'c-mode-hook 'clang-format-on-save)
-    (add-hook 'c++-mode-hook 'clang-format-on-save))
+      (add-hook 'before-save-hook 'clang-format-buffer nil t))
+    (add-hook 'c-mode-hook 'clang-format-on-save nil t)
+    (add-hook 'c++-mode-hook 'clang-format-on-save nil t))
 #+END_SRC
 *** emacs-lisp
-**** COMMENT company
+**** COMMENT Company
 Add slime backend.
 #+BEGIN_SRC emacs-lisp
 (add-hook 'emacs-lisp-mode-hook 'company-mode)

--
Gitblit v1.9.3