Skip to content

Commit

Permalink
tweak(skel): add forge config example to config.el
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 5, 2023
1 parent 8e48553 commit c2c900a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions skel/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,14 @@
:tramp-prefix "/docker:ros@ros-machine:"
:workspace "~/ros2_ws"
:extends '("/opt/ros/foxy/")))))

;; Module: `me-vc' -- Package: `forge'
(with-eval-after-load 'forge
;; To setup private Gitlab instance
;; 1. Add this to your ~/.gitconfig
;; [gitlab "gitlab.private.com/api/v4"]
;; user = my.username
;; 2. Then create an access token on GitLab. I ticked api and write_repository, which seems to work fine so far. Put the token in ~/.authinfo.gpg
;; machine gitlab.private.com/api/v4 login my.user^forge password <token>
;; 3. Use this in your config:
(add-to-list 'forge-alist '("gitlab.private.com" "gitlab.private.com/api/v4" "gitlab.private.com" forge-gitlab-repository)))

0 comments on commit c2c900a

Please sign in to comment.