From 635842d7cbdfcf6f85330330694b7cad12d4c3d2 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 19 Aug 2025 09:52:30 -0500 Subject: [PATCH] adding dape and dirlocals stuff --- README.org | 36 ++++++++++++++++++++++++++++++++++++ init.el | 25 +++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/README.org b/README.org index 4e2ff220..aff9dd97 100644 --- a/README.org +++ b/README.org @@ -31,6 +31,9 @@ Date: Sat, 27 Apr 2024 22:36:33 -0500 - [[#tempel][Tempel]] - [[#projectile][Projectile]] - [[#project][Project]] + - [[#realgud][Realgud]] + - [[#dape][Dape]] + - [[#dirlocals][dirlocals]] - [[#gitlab][Gitlab]] - [[#httpd][HTTPD]] - [[#navigation][Navigation]] @@ -3255,6 +3258,39 @@ Here are project specific commands "p" 'evil-paste-after) #+end_src +** Realgud +#+begin_src emacs-lisp +(use-package realgud + +) +#+end_src +** Dape +#+begin_src emacs-lisp +(use-package dape + :config + (setq dape-buffer-window-arrangement 'right + read-process-output-max (* 1024 1024))) +#+end_src + +** dirlocals +#+begin_src emacs-lisp +(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)))))) +#+end_src + ** Gitlab Because most of my projects are hosted on gitlab right now, I think having a client access to it from emacs seems like a really good idea. #+begin_src emacs-lisp diff --git a/init.el b/init.el index 8582aef0..cc0dce3f 100644 --- a/init.el +++ b/init.el @@ -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 ()