Hot answers tagged

23 votes
Accepted

GitHub Markdown Mode

There's gfm-mode (which is part of markdown-mode.el). From the commentary in the file: ;;; GitHub Flavored Markdown: ;; A [GitHub Flavored Markdown][GFM] (GFM) mode, `gfm-mode', is also ;; available....
user avatar
14 votes

Can I sync github issues and milestones with org-mode?

There is a project to allow such functionality, called org-sync. (Or rather, org-sync has a GitHub backend.) You can find it here. Unfortunately, it doesn't seem to be actively maintained. The main ...
user avatar
  • 2,595
7 votes
Accepted

Fetch configuration from remote (e.g. Github) at startup

I would do this outside of Emacs, with a wrapper script that pulls the updated config first. Something like this: #! /bin/sh cd ~/.emacs.d && git pull --rebase exec /usr/bin/emacs "$@" Then ...
user avatar
  • 161
7 votes

How do I verify a large package in a git repo is safe?

The short answer is unless you read through the code yourself you are taking a lot on trust. Having said that trusting a project sourced from an upstream SCM is a little safer than one which has been ...
user avatar
  • 4,516
6 votes
Accepted

Dropbox packages and config

Here is my short answer (there is a longer answer below, and since the answer as a whole is kind of long, if I forgot to address something or you have further questions let me know, and I will try to ...
user avatar
  • 4,535
5 votes
Accepted

Center image in GitHub's README.org

You can embed "raw" html as follows: <p align="center"><img src="images/wim-128.png" /></p> When displayed on GitHub.com, for some reason org-mode's image styling directives are ...
user avatar
5 votes

Center image in GitHub's README.org

To center with CSS, you need to use margin-left: auto; and margin-right: auto; try this #+ATTR_HTML: :style margin-left: auto; margin-right: auto; [[/path/to/img.png]]
user avatar
  • 1,706
5 votes

How to set up Magit to access a GitHub repository?

Use magit-clone to clone a GitHub (or any Git) repo You can also clone via command line, of course, which I prefer Open a file in the repo and call magit-status It is convenient to bind this to a ...
user avatar
4 votes

Viewing Github PRs in Magit 2.1.0

For my own purposes I have also added a little helper to magit-rockstar: magit-branch-pull-request. But note that everything in that library is provided as-is (i.e. instead of blogging about snippets, ...
user avatar
  • 24.2k
4 votes

Magit how to use ssh key rather than being prompted for password

Edit ~/.ssh/config so that it contains the following: Host github.com IdentitiesOnly yes IdentityFile ~/.ssh/your_ssh_key Then whenever magit asks git to ask ssh to talk to github.com, ssh will ...
user avatar
  • 11.3k
4 votes
Accepted

How to set up Magit to access a GitHub repository?

Generally speaking you don't configure Magit to access a remote Git repository. Instead you configure git and because Magit uses git, Magit is then also able to do so. Some issues can arise due to ...
user avatar
  • 24.2k
4 votes
Accepted

org-babel: Make results always quote the returned value in #+begin_example

The org-babel-min-lines-for-block-output variable will help you accomplish this. I've set the following in my configuration files in order to make #+RESULTS code blocks be always enclosed within #+...
user avatar
  • 487
3 votes

How to keep magit from prompting me for my GitHub username

I use pass and the password package in Emacs but for GitHub/GitLab interaction I use SSH keys. Upload your public key to your account and use something like keychain to store your keys on initial ...
user avatar
  • 251
3 votes

org-babel: Make results always quote the returned value in #+begin_example

I found the answer: #+begin_src bsh.dash :results verbatim :exports both :wrap "example" echo | time possiblycat 1000 #+end_src #+RESULTS: #+begin_example possiblycat 1000 0.00s user 0....
user avatar
  • 620
3 votes

Magit how to use ssh key rather than being prompted for password

The issue was that the remote url was set to https rather than ssh following these steps fixed the issue https://help.github.com/articles/changing-a-remote-s-url/
user avatar
  • 892
3 votes
Accepted

Magit and GitHub personal access tokens

Magit doesn't deal with authentication directly and leaves that all to Git. The only thing Magit does is that when Git asks the user to provide a password or passphrase, then it forwards that question ...
user avatar
  • 24.2k
3 votes
Accepted

Can I sync github issues and milestones with org-mode?

There seems to be a fork of org-sync which was last updated in December 2018. It is on MELPA. Installation: M-x package-install RET org-sync RET Add to initialization (.emacs or .emacs.d/init.el) (...
user avatar
  • 794
2 votes

Create GitHub issue for current repository

I'm using syohex's emacs-helm-open-github which provides a set of commands to open issues/files/commits's URL in Github easily, it uses the gh library as well, I look down its code and change its helm-...
user avatar
  • 13.5k
2 votes

Fetch configuration from remote (e.g. Github) at startup

Since I presume you are going to be sshing to these machines, I suggest you can take a look at sshrc which lets you take your local dotfiles along when you ssh into any server.
user avatar
  • 121
2 votes
Accepted

How to create a new repository on Github from Magit

Emacs does not provide any direct functionality to interface with Github directly. Refer to this answer by one our members. He wrote an implementation to create repo from magit.
user avatar
  • 622
2 votes
Accepted

How to configure git and magit to stream line making pull requests?

With magit, I would start the process with M-x magit-status or however you prefer to get there. In the status buffer press b to bring up the branching menu, and then press c to create a new branch. ...
user avatar
  • 884
2 votes

How to configure git and magit to stream line making pull requests?

The convention is to name the upstream repository origin. I think it is a good idea to stick to that convention, but I guess naming the upstream repository upstream also makes a lot of sense. However ...
user avatar
  • 24.2k
2 votes

Magit fetch all repos from GitHub

Magit does not come with a command to do that, but implementing it is easy. (defun my-magit-fetch-all-repositories () "Run `magit-fetch-all' in all repositories returned by `magit-list-repos`." (...
user avatar
  • 24.2k
1 vote

Emacs magit does not seem to push (No changes on github web. Tried both https and ssh)

Are you sure you finished the commit correctly? That command that is still running is git commit with some extra options, and the log indicates that git push didn’t have to update anything; the remote ...
user avatar
  • 11.3k
1 vote

Browse line range of file in GitHub with Magit

The magit extension forge supports visiting certain things in a browser, but currently that is limited to issues, pull-requests, commits and the repository itself. Files and even locations within ...
user avatar
  • 24.2k
1 vote

How to create a new repository on Github from Magit

You can use Ghub, for example, to create a new repository named "my-cool-project", simply run: (ghub-post "/user/repos" '((name . "my-cool-project"))) If you want set the name of the repository to ...
user avatar
  • 13.5k
1 vote

Magit pushing through tramp does not work

The interesting part of this is, when I log in onto the machine via a terminal session and do a git push there it works flawlessly. So I do have the proper access rights to the repository. The ssh key ...
user avatar
  • 24.2k
1 vote

Viewing Github PRs in Magit 2.1.0

An alternative solution is to use magit-gh-pulls. I use it with Magit 2.1 to manage Spacemacs.
user avatar
  • 2,055
1 vote
Accepted

Viewing Github PRs in Magit 2.1.0

magit-read-other-branch-or-commit now also offers certain other non-branch refs for completion. Should something be missing, then you can still input the ref or abbreviated ref, without the help of ...
user avatar
  • 24.2k

Only top scored, non community-wiki answers of a minimum length are eligible