adding dape and dirlocals stuff
This commit is contained in:
parent
dc4ece08e2
commit
635842d7cb
2 changed files with 61 additions and 0 deletions
36
README.org
36
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
|
||||
|
|
25
init.el
25
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 ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue