Commit 03cfbe674eec

Vincent Demeester <vincent@sbr.pm>
2024-11-06 20:43:01
tools/emacs: enable devdocs and indent-bars
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent c224178
Changed files (2)
tools/emacs/config/programming-config.el
@@ -7,9 +7,14 @@
   "Where all my sources are.")
 (set-register ?s `(file . ,src-dir))
 
-(use-package highlight-indentation
-  :hook ((yaml-ts-mode . highlight-indentation-mode)
-         (yaml-ts-mode . highlight-indentation-current-column-mode)))
+(use-package devdocs
+  :bind (("C-h D" . devdocs-lookup)))
+
+;; TODO: copilot and copilot-chat
+
+;; (use-package highlight-indentation
+;;   :hook ((yaml-ts-mode . highlight-indentation-mode)
+;;          (yaml-ts-mode . highlight-indentation-current-column-mode)))
 
 (use-package yaml-ts-mode
   :mode "\\.ya?ml\\'"
tools/emacs/config/programming-treesitter.el
@@ -8,6 +8,20 @@
   (setq treesit-auto-install 'prompt)
   (global-treesit-auto-mode))
 
+(use-package indent-bars
+  :if (eq system-type 'gnu/linux)
+  :hook
+  (python-mode . indent-bars-mode)
+  (yaml-ts-mode . indent-bars-mode)
+  :config
+  (require 'indent-bars-ts)
+  :custom
+  (indent-bars-no-descend-lists t)
+  (indent-bars-treesit-support t)
+  (indent-bars-treesit-ignore-blank-lines-types '("module"))
+  (indent-bars-treesit-scope '((python function_definition class_definition for_statement
+	                               if_statement with_statement while_statement))))
+
 ;; (unless (package-installed-p 'combobulate)
 ;;   (package-vc-install '(combobulate :url "https://github.com/mickeynp/combobulate"
 ;; 				    :branch "development")))