This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-10
Channels
- # ai (11)
- # babashka (14)
- # beginners (10)
- # biff (3)
- # clj-kondo (6)
- # clojure (34)
- # clojure-austin (1)
- # clojure-europe (23)
- # clojure-gamedev (16)
- # clojure-korea (2)
- # clojure-norway (13)
- # clojure-romania (1)
- # clojure-uk (4)
- # community-development (26)
- # cursive (11)
- # emacs (19)
- # fulcro (105)
- # gratitude (1)
- # honeysql (16)
- # jobs (1)
- # malli (17)
- # off-topic (5)
- # portal (8)
- # reitit (8)
- # remote-jobs (1)
- # shadow-cljs (30)
- # xtdb (10)
- # yamlscript (14)
maybe it's too much magic, but it would be amazing if I could have a way to jump from a line in a file in my repository to the github repo where it was last changed
atm I would get the SHA, then look at that SHA in the git log, and hopefully find out what PR it was merged with
but well if Emacs knows about all the PRs merged with forge maybe there is a faster way
I don’t understand exactly what you mean, but https://github.com/sshaw/git-link might be somewhat similar
well I already had github-browse-file
to open a file on github, and I can open PRs with forge etc
would be nice if I could just open directly the PR that was related to the last change on a given file
which in theory might not even be there if someone pushes to the default branch, but well in my case it will always be available pretty much
perhaps with a bit of elisp 🪄 it might be possible. You can manually
• magit-blame
• navigate to the interesting line
• magit-blame-copy-hash
to copy the commit hash of the line
• browse to
: opens a list of PR's which include the commit

And, if you're not a magit fan (why tho), replace steps 1-3 with https://jayconrod.com/posts/67/emacs--run-git-blame-on-the-current-line
What I'd do is
• find the merge commit (perhaps using git log --first-parent
• parse the commit message, which contains the PR number
(spacemacs)
I feel like you get this with vc-annotate
and then git-link
on a particular line you are interested in.
The GitHub UI itself shows you the PR related to the commit.
I am installing Spacemacs as a starting point (standard key commands, no evil mode). Don't know if that will be a problem yet since it was designed really with vim style commands in mind. I also want to install Clojure LSP alongside Cider. I am reading that they overlap on some of the things that they do and it can cause problems possibly? Is there some kind of guide out there that would help me with this?
Overlap is mainly in automated format & indenting. Avoid using aggressive indent package with LSP format enabled, A quick guide for Setting up Spacemacs with cider and LSP https://practical.li/spacemacs/install-spacemacs/clojure-lsp/configure-lsp-and-cider/ My Spacemacs config has a fairly minimal set of LSP tools https://github.com/practicalli/spacemacs-config/blob/cd73591f34b2aa287bed7d5a11b344e8df50879b/init.el#L121 You may also wish to enable or disable features. There is a guide to features https://emacs-lsp.github.io/lsp-mode/tutorials/how-to-turn-off/
@U05254DQM Thank you!
Note: the equivalent Spacemacs Emacs key binding for the SPC
key is M
- m
and for the mode specific ,
it's M
- RTN