prop-menu package not showing up in emacs list-packages - emacs

I am trying to install the prop-menu package for emacs (on WSL2) and here's my init.el :
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/"))
However, when I run the M-x package-list-packages command in the emacs GUI, I am not able to see the package listed :

Related

How to fetch every package from Melpa for Emacs package-install on OS X?

I am on emacs version 26.3 for OS X.
This is my ~/.emacs.d/init.el file
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
I have run M-x eval-buffer on this init.el file. I would like to install packages from Melpa such as move-text. However M-x package-list doesn't show move-text. This is the case for many packages. How do I get alllll the packages from Melpa available for M-x package-install?
It took a few things to fix this. First of a M-x package-list is outdated by M-x list-packages (thanks #Y.E.).
Now when I M-x list-packages I got the following error: Can't use the package manager. It says The TLS Connection to elpa.org:443 is insecure.
To fix this I found this link (https://www.reddit.com/r/emacs/comments/pyevj8/what_should_i_do_cant_use_the_package_manager_it/) which advises adding package-archives for gnu and a mirror of melpa. My init.el now looks like this:
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
'(package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://www.mirrorservice.org/sites/stable.melpa.org/packages/")))
(package-initialize)
And it seems that it Can fetch all packages from Melpa. I don't entirely understand why gnu is necessary but it seems to be.

Unable to install cider to emacs - package not found

Fresh install of Ubuntu 20.04
Added openjdk-11 and lein 2.9.3
$ sudo apt-add-repository ppa:kelleyk/emacs
Installed
GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14)
of 2020-03-26, modified by Debian
Tried the instructions on the cider Getting Started page
M-x package-refresh-contents
M-x package install <RET>
cider <RET>
The cider package isn't found. Tried to package-list-packages - list doesn't contain cider.
What am I missing?
Finally did the steps from the following link to get it to work
Brave Clojure book companion repo
Not sure why the cider instructions don't mention this.
You need to create a ~/.emacs.d/init.el file with the following contents
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
Save and restart emacs.
M-x package-list-packages check the archive column shows packages from gnu as well as melpa archives.
Sometimes you would see an error Failed to download ‘gnu’ archive. - this one is a flaky one. A restart and/or M-x package-refresh-contents fixed it for me.
Now we have the sources configured correctly.
Install:
M-x package-install <RET> cider <RET>
M-x package-list-packages - Move to the end of the listing to see Status=installed packages.
Test: M-x cider-jack-in. Answer no to the prompt indicating you are not in a clojure project. Soon you should be dropped to a user> prompt - ready to REPL and roll.
You may also consider trying out popular existing "bundle setups' like Spacemacs and Prelude Both of which have all the tooling necessary for Clojure development built-in.
Instead of modifying .emacs or init file manually, you can just change the package-archives variable by typing the following:
M-x customize-variable package-archives
By default, you should only have a GNU source set. Go ahead and add Melpa's name and URL (https://melpa.org/packages/) too by clicking INS. Then apply the changes. Next, type the following commands into the terminal:
M-x package-refresh-contents [RET]
M-x package-install [RET] cider [RET]
You should be all set.
CIDER is available on the two major package.el community maintained repos - MELPA Stable and MELPA.
After adding the following in my ./emacs, i could install CIDER.
(setq package-archives
'(("Elpa" . "https://elpa.gnu.org/packages/")
("Melpa Stable" . "https://stable.melpa.org/packages/")
("Melpa" . "https://melpa.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/"))
package-archive-priorities
'(("MELPA Stable" . 10)
("GNU ELPA" . 5)
("MELPA" . 0)))

Emacs : install auto-complete issues

I have some issues with the installation of autocompletion on emacs 24.5.
I cloned https://github.com/auto-complete/auto-complete.git repo in my .emacs.d folder located here : C:\Users\Ben\AppData\Roaming\.emacs.d
I run :
M-x load-file C:\Users\Ben\AppData\Roaming\.emacs.d\auto-complete\etc\install.el and anwser to install it in : C:\Users\Ben\AppData\Roaming\.emacs.d\lisp
Emacs answered : Successfully installed!
Then I add the following lines to my .emacs:
(add-to-list 'load-path "c:/Users/Ben/AppData/Roaming/.emacs.d/lisp")
(require 'auto-complete-config)
(ac-config-default)
When I run emacs, I have the following error :
Warning (initialization): An error occurred while loading `c:/Users/Ben/AppData/Roaming/.emacs':
File error: Cannot open load file, no such file or directory, popup.
Here is my complete .emacs file :
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'load-path "c:/Users/Ben/AppData/Roaming/.emacs.d/lisp")
(require 'auto-complete-config)
(ac-config-default)
What's wrong ? How to install auto-complete on emacs ?
You need to install the popup library: https://github.com/auto-complete/popup-el
You also need this: https://github.com/tjarvstrand/pos-tip

Emacs : install a package with melpa on windows

I am trying to install a package with emacs melpa package manager.
The github page says that the package multiple-cursors is available with melpa.
But when I try to install or list this package using M-x package-install multiple-cursors, the package is not found.
I am using emacs version 24.5.1 on windows. I have tried to add the following lines to my init.el file :
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
What's wrong ? How shall I proceed to install this package ?

Can't see marmalade repo on emacs 24 on OSX 10.6.8

I'm trying to set up emacs 24 to use with clojure on osx. I've installed emacs 24 from emacsformacosx.com, and I've added the following code to ~/.emacs.d/init.el:
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
;; Add in your own as you wish:
(defvar my-packages '(starter-kit starter-kit-lisp)
"A list of packages to ensure are installed at launch.")
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
However when I do M-x package-refresh-contents, and package-install, clojure-mode and the other marmalade packages don't show up. The starter kit must be installed since ido-mode works, so I'm not sure what's happening. I can go to ~/.emacs.d/elpa/archive/marmalade and see that the packages are there. Any ideas what I'm doing wrong?
It turns out
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
Needed to be in ~/.emacs not ~/.emacs.d/init.el