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....
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 ...
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 ...
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 ...
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 ...
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 ...
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]]
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 ...
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, ...
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 ...
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 ...
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 #+...
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 ...
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....
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/
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 ...
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)
(...
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-...
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.
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.
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. ...
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 ...
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`."
(...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
github × 25magit × 11
git × 5
org-mode × 3
package × 2
ssh × 2
org-export × 1
spacemacs × 1
org-babel × 1
helm × 1
tramp × 1
html × 1
images × 1
markdown × 1
remote × 1
programming × 1
package-development × 1
passwords × 1
security × 1
irony-mode × 1
dash.el × 1
markup × 1
straight.el × 1
forge × 1
dependency × 1