Wee bit of tidiness
This commit is contained in:
parent
2cf9421c22
commit
bcb28ef821
1 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
||||||
#+author: Howard Abrams
|
#+author: Howard Abrams
|
||||||
#+date: 2024-07-07
|
#+date: 2024-07-07
|
||||||
#+filetags: emacs hamacs
|
#+filetags: emacs hamacs
|
||||||
#+lastmod: [2024-07-25 Thu]
|
#+lastmod: [2024-07-26 Fri]
|
||||||
|
|
||||||
A literate programming file for literate programming in Emacs Org Files.
|
A literate programming file for literate programming in Emacs Org Files.
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@ This helper function does the work of calling =ripgrep=, parsing its output, and
|
||||||
(seq-filter 'identity))))
|
(seq-filter 'identity))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Note: the =processor= function creates an =xref= object, described below. See =ha-literate—process-rg-line=.
|
Note: the =processor= function creates an =xref= object, described below. See =ha-literate--process-rg-line=.
|
||||||
|
|
||||||
The output from =ripgrep= goes through a couple of transformation functions listed here:
|
The output from =ripgrep= goes through a couple of transformation functions listed here:
|
||||||
|
|
||||||
|
@ -406,10 +406,10 @@ To finish the connections, we need to create a /hook/ that I only allow to turn
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defun ha-literate-xref-activate ()
|
(defun ha-literate-xref-activate ()
|
||||||
"Function to activate org-based literate backend.
|
"Function to activate org-based literate backend.
|
||||||
Add this function to `xref-backend-functions' hook. "
|
Add this function to `xref-backend-functions' hook. "
|
||||||
(when (eq major-mode 'org-mode)
|
(when (eq major-mode 'org-mode)
|
||||||
'org-babel))
|
'org-babel))
|
||||||
|
|
||||||
(add-hook 'xref-backend-functions #'ha-literate-xref-activate)
|
(add-hook 'xref-backend-functions #'ha-literate-xref-activate)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
Loading…
Reference in a new issue