elpa

What's the magic behind the ELPA?

二次信任 提交于 2019-12-04 02:59:52
I use Aquamacs, and I use ELPA that installs files in ~/.emacs.d/elpa? What's the magic behind this ELPA? I mean, without ELPA, I should download and install the packages in a specific directory, and add those two lines in .emacs. (add-to-list 'load-path "PACKAGE_DIRECTORY") (require 'PACKAGE) But, with ELPA, I don't see anything added to .emacs or /Users/smcho/Library/Preferences/Aquamacs Emacs/{Preferences.el, customizations.el}. How is this possible? Added This is what I found with Aquamacs. Aquamacs reads ~/Preference/Aquamacs Emacs/Preference, and it has "(add-to-list 'load-path kitfiles

Is it possible to downgrade packages installed with ELPA?

帅比萌擦擦* 提交于 2019-12-03 23:51:08
问题 I updated today my packages in emacs with ELPA and after the update I'm stuck with the Variable binding depth exceeds max-specpdl-size error. Since it is not easy to debug, is it possible to downgrade the packages that were updated? Where can I find an ELPA log where I can get the previous version of these packages? 回答1: I second @lawlist's recommendation to (setq debug-on-error t) early in your ~/.emacs file. You can also use emacs --debug-init to get a similar result. This said, sometimes

How do I configure Emacs behind an authenticated HTTP proxy?

孤人 提交于 2019-12-03 11:08:51
There's another question that answers this though it doesn't specify anything regarding proxy authentication. Its solution is (setq url-proxy-services '(("no_proxy" . "work\\.com") ("http" . "proxy.work.com:911"))) Nowadays, my approach to the "authenticated proxy problem" is to use CNTLM . It is portable, quite easy to configure and may be run as deamon. I get authorization working without user interaction by: (setq url-proxy-services '(("no_proxy" . "^\\(localhost\\|10.*\\)") ("http" . "proxy.com:8080") ("https" . "proxy.com:8080"))) (setq url-http-proxy-basic-auth-storage (list (list "proxy

Error updating emacs packages: Failed to download 'gnu' archive

孤人 提交于 2019-12-03 04:55:22
My init.el uses this to initialize packages: (package-initialize) (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/")) (add-to-list 'package-archives '("melpa-stable" . "http://melpa-stable.milkbox.net/packages/")) When I do M-x package-refresh-contents I get the following error: Failed to download `gnu' archive. M-x toggle-debug-on-error gives me this stacktrace: Debugger entered--Lisp error: (error "Failed to verify signature archive-contents.sig: (\"No public key for 474F05837FBDEF9B

Is it possible to downgrade packages installed with ELPA?

余生长醉 提交于 2019-12-01 03:09:25
I updated today my packages in emacs with ELPA and after the update I'm stuck with the Variable binding depth exceeds max-specpdl-size error. Since it is not easy to debug, is it possible to downgrade the packages that were updated? Where can I find an ELPA log where I can get the previous version of these packages? I second @lawlist's recommendation to (setq debug-on-error t) early in your ~/.emacs file. You can also use emacs --debug-init to get a similar result. This said, sometimes the kind of error you get here can also prevent the debugger from showing up. I recommend you M-x report

Adding Marmalade as Package Source

江枫思渺然 提交于 2019-11-30 03:08:25
I'm trying to add Marmalade as a package source, but when I do so I get the error: Symbol's value as variable is void: package-archives. Anyone know how to resolve this? Below is my .emacs file. ;;; This was installed by package-install.el. ;;; This provides support for the package system and ;;; interfacing with ELPA, the package archive. ;;; Move this code earlier if you want to reference ;;; packages in your .emacs. (when (load (expand-file-name "~/.emacs.d/elpa/package.el")) (package-initialize)) (add-to-list 'load-path (expand-file-name "~/.emacs.d")) (add-to-list 'load-path "~/.emacs.d

js2-refactor from melpa: Package `emacs-24.1' is unavailable

余生颓废 提交于 2019-11-29 05:38:16
I'm on GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.6.0), but when I try to use package (melpa) to install js2-refactor I get this odd error: package-compute-transaction: Package `emacs-24.1' is unavailable Any ideas what this could be about? Actually, this might be coming from a dependency of js2-refactor: js2-mode. It gives the same error. The reason for this can be a lingering old version of package.el in your load path. package.el was officially included in GNU Emacs 24, and the downloadable file for earlier Emacs versions doesn't support dependencies on built-in packages (

Adding Marmalade as Package Source

落爺英雄遲暮 提交于 2019-11-29 00:45:45
问题 I'm trying to add Marmalade as a package source, but when I do so I get the error: Symbol's value as variable is void: package-archives. Anyone know how to resolve this? Below is my .emacs file. ;;; This was installed by package-install.el. ;;; This provides support for the package system and ;;; interfacing with ELPA, the package archive. ;;; Move this code earlier if you want to reference ;;; packages in your .emacs. (when (load (expand-file-name "~/.emacs.d/elpa/package.el")) (package

Updating packages in Emacs

笑着哭i 提交于 2019-11-28 02:36:53
I have the following setup for packages (not sure if there is a better recommended one): (require 'package) (setq package-archives '(("ELPA" . "http://tromey.com/elpa/") ("gnu" . "http://elpa.gnu.org/packages/") ("marmalade" . "http://marmalade-repo.org/packages/"))) ; Apparently needed for the package auto-complete (why?) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) (package-initialize) (setq url-http-attempt-keepalives nil) I have three questions related to the installation and updating of packages. Q1. Is there a way to update the list of available

js2-refactor from melpa: Package `emacs-24.1' is unavailable

雨燕双飞 提交于 2019-11-27 23:15:58
问题 I'm on GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.6.0), but when I try to use package (melpa) to install js2-refactor I get this odd error: package-compute-transaction: Package `emacs-24.1' is unavailable Any ideas what this could be about? Actually, this might be coming from a dependency of js2-refactor: js2-mode. It gives the same error. 回答1: The reason for this can be a lingering old version of package.el in your load path. package.el was officially included in GNU Emacs 24,