all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: egarrulo@gmail.com, Dmitry Gutov <dgutov@yandex.ru>,
	help-gnu-emacs@gnu.org
Subject: Re: Emacs doesn't see the most recent version of Company Mode hosted on Elpa
Date: Thu, 18 May 2017 19:14:04 +0000	[thread overview]
Message-ID: <CAFyQvY2+hKD_jjWe-xtTzL2pVXJPDrqsBDcLTNyxB5hAb9oTbA@mail.gmail.com> (raw)
In-Reply-To: <a84bfd41-551f-2f4c-a002-8fd06b81346b@gmail.com>

On Thu, May 18, 2017 at 1:21 AM <egarrulo@gmail.com> wrote:

> (defvar package-enable-at-startup nil)
> (require 'package)
> (add-to-list 'package-archives '("melpa-stable" .
> "http://stable.melpa.org/packages/"))
> (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
> (setq package-user-dir (expand-file-name "~/elpa/"))
> (package-initialize)
>

You need to setq the package-user-dir *before* calling (require 'package).
Otherwise emacs will first create the elpa/ dir at the default location at
the time of requiring.

In addition, simply delete the archives/ dir inside package-user-dir; emacs
will just rebuild that from scratch without complaining.

Then finally restart emacs and then see if the issue gets resolved.
-- 

Kaushal Modi


  reply	other threads:[~2017-05-18 19:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-17 19:47 Emacs doesn't see the most recent version of Company Mode hosted on Elpa egarrulo
2017-05-17 20:18 ` egarrulo
2017-05-17 20:27   ` Dmitry Gutov
2017-05-17 22:46     ` egarrulo
2017-05-18 19:14       ` Kaushal Modi [this message]
2017-05-18 20:28         ` egarrulo
2017-05-18 17:58 ` egarrulo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFyQvY2+hKD_jjWe-xtTzL2pVXJPDrqsBDcLTNyxB5hAb9oTbA@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=dgutov@yandex.ru \
    --cc=egarrulo@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.