packages dependence between el-get and elpa - emacs

I am try to use el-get to manage my packages because it is good to update the latest from github. But sometimes the package I want is only available in ELPA. So I use
(:name <package_name> :type elpa)
to install them.
Now my problem is:
I installed org-mode with el-get and try to install org-gcal by
(:name org-gcal :type elpa)
The "org-gcal" depends on org-mode 8.2.4 which I already have under el-get directory, but it still said it can't find it and will install org from elpa again.
How could I solve this kind of dependence problem between elpa and el-get?

You can't “solve” this dependency problem in that you could teach ELPA about el-get packages. That's not (easily) possible.
el-get understands ELPA packages, but not vice versa. ELPA does not see el-get packages, and hence cannot use them to resolve package dependencies.
The only reasonable way out is to use ELPA to install Org, and other packages as well. Recent Org releases are available from the default GNU ELPA archive or from Org Mode's package archive. The popular MELPA archive provides VCS snapshots for over 1000 other packages.

Related

Installing a scala "ecosystem" on Linux (debian)?

Newbie to scala.
Reading some descriptions of how to install a scala ecosystem has me confused. I will be installing on a apt-based linux system. My choice of editor/ide will be emacs ( though I might play with Eclipse and IntelliJ ).
Not a java programmer. I also like to do projects as different users for different purposes.
From what I understand the steps are:
Install sbt from the linux distro repo as root.
Install the newest sbt from the installed sbt as root.
Install the newest scala from sbt as root.
Install ensime from sbt as root.
( or do I install it from melpa? )
Also I heard of something called Scala Worksheet which might be useful. The version I heard of is a Eclipse plusin. Is there a version that can be used with emacs?
You can install ensime as normal user from MELPA without problems. Just read carefully the instructions in their web page. It is important to install the ensime SBT plugin in the user directory instead of the project plugin directory.
The ensime integration works way better that Eclipse's Scala IDE.
About the worskheet, it would be nice to have it in emacs but it is not really needed . You can work quite fine just with sbt.

How to install melpa in emacs?

I need to install MELPA into my emacs 23.3 version. I have googled for the ways to install it but couldn't find/understand any of them.
Can anyone please help me with installing MELPA. I am using ubuntu 12.04
I need MELPA to install OmniSharp which will help for autocompletion in C#
MELPA is actually just a repository of emacs packages. The emacs package manager has been included in emacs since version 24. For 23.3 you first need to get a compatible version of package.el (there is one here).
After putting package.el in your load-path, you then need to add MELPA to the list of repositories:
(require 'package)
;; Any add to list for package-archives (to add marmalade or melpa) goes here
(add-to-list 'package-archives
'("MELPA" .
"http://melpa.org/packages/"))
(package-initialize)
From the EmacsWiki.
To then install OmniSharp, first refresh the package archive with M-x package-refresh-contents, then you can use M-x package-install RET omnisharp.

Install nuget packages to central folder

For the life of me I can't find an option to install all nuget packages to a central folder.
The only option seems to be Install and that always installs into the project folder.
With multiple projects using the same packages this is very inefficient.
I'd like to install all packages to the same central folder.
Can this be done?
Answer is here: Is it possible to change the location of packages for NuGet?
I successfully tried it with VS2012 and the latest nuget manager.

Is there any Ubuntu 10.04 repository to download the most recent version of Eclipse?

I haven't found one to install Eclipse 4.2 Juno. Default Ubuntu repositories (I'm using Ubuntu 10.04) suggest me the archaic Galileo version. And I found the Eclipse's page on Launchpad which was updated in 2009.
I can, of course, simply download the archive with all the files from http://www.eclipse.org/downloads/, but that's not Debian way, is it? I mean, no automatic updates and other aptitude-managed cool things.
So, is there any repository that maintains the most recent version of Eclipse?
I think it is unlikely that you will find a newer package for Lucid. People tend to create packages for newer versions of Ubuntu.
If it's not possible to upgrade Ubuntu, what you could try is to make your own package but you would still not get automatic upgrades. From a quick look, it looks like that Juno needs some libraries to build that could be newer than the versions you have in your system, so this may end up being quite difficult. It could possibly be the reason why it is not available for Lucid in the first place.
If Juno works in your system, the quick and dirty solution is to first create a temporary folder, e.g. eclipse_3.8.0 and then do the following:
mkdir /path/to/eclipse_3.8.0/DEBIAN
mkdir /path/to/eclipse_3.8.0/opt
tar xzvf eclipse-juno.tar.gz -C /path/to/eclipse_3.8.0/opt
dpkg-deb -b --no-check /path/to/eclipse_3.8.0
This will create a deb package that installs eclipse in /opt/eclipse. You may want to put a control file inside the DEBIAN folder to add a description, dependencies, etc.
If you still want to give building a try, from the official ubuntu launchpad page for eclipse you can download the source files and especially the control files stored in the xxx.debian.tar.gz file. Take a look at the Debian wiki for some tips on how to build. Precise has the Indigo SR2 version and Quantal seems to have Juno.

Is there a stable Emacs automated packaging system?

I'm using Gnu Emacs on OSX, Windows, and Linux. Is there some command which can download and install packages (or .el files) automatically? I've seen there are some work-in-progress projects on the internet (after googling) but I was wondering if I was missing some awesome package manager out there that just works.
Yes, the Emacs development mailing list has a long discussion regarding integrating a package manager package.el into the next major release of Emacs: Integrating package.el. It automatically downloads and installs packages from the ELPA (Emacs Lisp Package Archive. Read the installation page to obtain the latest.
You could also try el-get. I handles installation of packages from ELPA, git, and apt-get among others.