Monthly Archives: January 2020

Adding a Package in Spacemacs – Emacs

Recently I have tried to add many packages using MELPA it worked before installing Spacemacs. Spacemacs is a library of layers which sits on top of Emacs. I have Installed spacemacs then the packages were removed automatically while restarting it. So each time I need to install the packages. I thought it was a bug but actually that was a functionality.

So after searching I found the way to add my package.

I use emacs in windows so below are steps.

Step -1 : Find the .spacemacs file

In my case it sits on C:\Users\<USER_NAME>\.spacemacs

to open the .spacemacs file in emacs or spacemacs (as mine is a windows box)

C-x C-f   c:/Users/<USER_NAME>/.spacemacs

Once the file is loaded then type the below

C-s dotspacemacs-additional-packages

Initially there will not be anything

dotspacemacs-additional-packages ‘()

Inside the brackets add your package as below

dotspacemacs-additional-packages ‘(magit)

As shown above insert your package in my case it is magit package

 

 

 

Git working with Remote Repos

What we do is that we will fetch the repo, make changes then add another remote repo and push

Create a folder

Issue the below commands

$ git clone <remote_repo>
$ cd <repo_name>

# Make changes to the repo
$ git remote -v  //lists all the Remote Repo’s Associated with
$ git remote show origin  //Check the Remote Fetch and Push URL

# Im going to add a remote Repository for push
$ git remote set-url --add --push origin <repo_name>  //add your Repos to have push
$ git push -u origin master

Make the changes

Design a site like this with WordPress.com
Get started