

GitHub - nlamirault/emacs-gitlab: A Gitlab client for Emacs
source link: https://github.com/nlamirault/emacs-gitlab
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
emacs-gitlab
Master :
Develop:
Package gitlab
provides a REST client to the Gitlab API.
Installation
Installation via package.el
package.el
is the built-in package manager in Emacs.
emacs-gitlab is available on the two major community maintained repositories - MELPA STABLE, MELPA.
You can install gitlab
with the following commnad:
M-x package-install [RET] gitlab [RET]
or by adding this bit of Emacs Lisp code to your Emacs initialization file
(.emacs
or init.el
):
(unless (package-installed-p 'gitlab) (package-install 'gitlab))
If the installation doesn't work try refreshing the package list:
M-x package-refresh-contents [RET]
Keep in mind that MELPA packages are built automatically from
the master
branch, meaning bugs might creep in there from time to
time. Never-the-less, installing from MELPA is the recommended way of
obtaining emacs-gitlab, as the master
branch is normally quite stable and
"stable" (tagged) builds are released somewhat infrequently.
With the most recent builds of Emacs, you can pin emacs-gitlab to always use MELPA Stable by adding this to your Emacs initialization:
(add-to-list 'package-pinned-packages '(gitlab . "melpa-stable") t)
Via el-get
el-get is another popular package manager for Emacs. If you're an el-get user just do M-x el-get-install [RET] gitlab [RET].
Manual
You can install emacs-gitlab manually by placing it on your load-path
and
require
ing it. Many people favour the folder ~/.emacs.d/vendor
.
(add-to-list 'load-path "~/.emacs.d/vendor/") (require 'gitlab)
Usage
-
Setup your Gitlab configurations :
$ (setq gitlab-host "https://gitlab.com" gitlab-token-id "foo")
-
Show user's projects with helm interface:
$ M-x helm-gitlab-projects
-
Show user's issues with helm interface:
$ M-x helm-gitlab-issues
-
Open current issue:
$ M-x gitlab-open-issue $ o
-
Close current issue:
$ M-x gitlab-close-issue $ c
Development
Cask
gitlab
use Cask for dependencies management.
Install it and retrieve dependencies :
$ curl -fsSkL https://raw.github.com/cask/cask/master/go | python
$ export PATH="$HOME/.cask/bin:$PATH"
$ cask
Tests
-
Setup your Gitlab informations :
$ cat $HOME/.emacs-gitlab.rc #!/bin/bash export GITLAB_HOST="https://gitlab.com" export GITLAB_TOKEN_ID="yourtokenid" export GITLAB_PROJECT_ID=111222 export GITLAB_PROJECT_NAME="myproject" export GITLAB_PROJECT_DESCRIPTION="a project description" export GITLAB_ISSUE_ID=145645 export GITLAB_ISSUE_TITLE="the issue title"
-
Launch unit tests :
$ . $HOME/.emacs-gitlab.rc $ make clean test
Support / Contribute
See here
Changelog
A changelog is available here.
License
See LICENSE.
Contact
Nicolas Lamirault [email protected]
Recommend
-
139
Circe, a Client for IRC in Emacs Overview Circe is a Client for IRC in Emacs. It tries to have sane defaults, and integrates well with the rest of the editor, using standard Emacs key bindings and indicating activity in channels...
-
134
tldr.el tldr client for Emacs. Screenshot Elegantly good-looking(tm)!
-
113
gotest.el Master : Develop: Run Go tests and programs from Emacs (>= 24.3) Installation The recommended way to install gotest.el
-
84
phpunit.el Master Develop : Manage the PHPUnit tests from Emacs (>= 24.3) Installation The recommended way to install phpunit.el
-
81
ripgrep.el - Emacs front-end for ripgrep, a command line search tool
-
19
README.md migemo.el migemo.el provides Japanese increment search with 'Romanization of Japanese'(ローマ字). screenshot
-
17
Circe, a Client for IRC in Emacs Overview Circe is a Client for IRC in Emacs. It tries to have sane defaults, and integrates well with the rest of the editor, using standard Emacs key bindings and indicating activity in chan...
-
10
ement.el Ement.el is a new Matrix client for Emacs. It’s basic at the moment, but it can be used to send and read messages (including replies and images), join and leave rooms, etc. Feel free to join us in the chat room:
-
21
emacs-ccls emacs-ccls is a client for ccls, a C/C++/Objective-C language server supporting multi-million line C++ code-bases, powered by libclang. It leverages
-
5
lab.el lab.el is an Emacs package that provides a simple integration with GitLab (managed or self-hosted). Basics lab.el is designed to make your daily interactions with GitLab easier. Want to qu...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK