adding dape and dirlocals stuff

This commit is contained in:
Chris Cochrun 2025-08-19 09:52:30 -05:00
parent dc4ece08e2
commit 635842d7cb
2 changed files with 61 additions and 0 deletions

25
init.el
View file

@ -2351,6 +2351,31 @@ targets."
(general-def 'normal
"p" 'evil-paste-after)
(use-package realgud
)
(use-package dape
:config
(setq dape-buffer-window-arrangement 'right
read-process-output-max (* 1024 1024)))
(defun chris/reload-dir-locals-for-current-buffer ()
"reload dir locals for the current buffer"
(interactive)
(let ((enable-local-variables :all))
(hack-dir-local-variables-non-file-buffer)))
(defun chris/reload-dir-locals-for-all-buffer-in-this-directory ()
"For every buffer with the same `default-directory` as the
current buffer's, reload dir-locals."
(interactive)
(let ((dir default-directory))
(dolist (buffer (buffer-list))
(with-current-buffer buffer
(when (equal default-directory dir)
(chris/reload-dir-locals-for-current-buffer))))))
(use-package lab
:config
(defun chris/gitlab-token ()