Created
March 29, 2020 19:04
-
-
Save sarg/a73b5821cf16879ed02b9066ef8b7c4e to your computer and use it in GitHub Desktop.
Make geiser find guix package definitions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun geiser-edit--goto-line-guix (symbol line) | |
(unless (numberp line) | |
(goto-char (point-min)) | |
(when (re-search-forward | |
(rx (seq "(define-public" | |
(one-or-more " ") | |
symbol-start (literal (format "%s" symbol)) symbol-end)) | |
nil t) | |
(goto-char (match-beginning 0))))) | |
(advice-add | |
'geiser-edit--goto-line :before-until #'geiser-edit--goto-line-guix) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment