Skip to content

Commit

Permalink
replace local elpa with gnu elpa
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Bin committed Jul 17, 2024
1 parent f9f9b31 commit ab15bfb
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 8,816 deletions.
12 changes: 0 additions & 12 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
- [[#network-is-blocked][Network is blocked]]
- [[#email][Email]]
- [[#cannot-download-packages][Cannot download packages?]]
- [[#installing-missing-packages-by-using-gnu-elpa][Installing missing packages by using GNU ELPA]]
- [[#use-flycheck-to-syntax-check-code][Use flycheck to syntax check code]]
- [[#disable-vim-key-bindings][Disable Vim key bindings]]
- [[#evil-setup][Evil setup]]
Expand Down Expand Up @@ -588,17 +587,6 @@ If you use Gnus for email, check =init-gnus.el= and read [[https://github.com/re
Some package cannot be downloaded automatically because of network problem.

Run =M-x package-refresh-content=, restart Emacs, reinstall package.
** Installing missing packages by using [[https://elpa.gnu.org/][GNU ELPA]]
The GNU ELPA repository contains FSF-sanctioned Emacs packages. It is the default repository used by =package.el=.

GNU ELPA are *deactivated* in this setup.

GNU ELPA is deactivated for below reasons,
- 99% packages can be found from other repositories like MELPA
- "~/.emacs.d/localelpa/" contains GNU ELPA packages required by this setup

To re-activate GNU ELPA, please search the line "uncomment below line if you need use GNU ELPA" in =init-elpa.el= .

** Use flycheck to syntax check code
If you prefer =flycheck= instead the default syntax check solution =lazyflymake= built into this configuration.

Expand Down
11 changes: 4 additions & 7 deletions lisp/init-elpa.el
Original file line number Diff line number Diff line change
Expand Up @@ -160,23 +160,22 @@
;; dependency on 3rd party web site.
(setq package-archives
'(
;; uncomment below line if you need use GNU ELPA
;; ("gnu" . "https://elpa.gnu.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("melpa-stable" . "https://stable.melpa.org/packages/")

;; Use either 163 or tsinghua mirror repository when official melpa
;; is slow or shutdown.

;; ;; {{ Option 1: 163 mirror repository:
;; ;; ("gnu" . "https://mirrors.163.com/elpa/gnu/")
;; ("gnu" . "https://mirrors.163.com/elpa/gnu/")
;; ("melpa" . "https://mirrors.163.com/elpa/melpa/")
;; ("melpa-stable" . "https://mirrors.163.com/elpa/stable-melpa/")
;; ;; }}

;; ;; {{ Option 2: tsinghua mirror repository
;; ;; @see https://mirror.tuna.tsinghua.edu.cn/help/elpa/ on usage:
;; ;; ("gnu" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")
;; ("gnu" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")
;; ("melpa" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/")
;; ("melpa-stable" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/stable-melpa/")
;; }}
Expand All @@ -195,9 +194,6 @@ You still need modify `package-archives' in \"init-elpa.el\" to PERMANENTLY use
;; Un-comment below line if you follow "Install stable version in easiest way"
;; (setq package-archives '(("myelpa" . "~/myelpa/")))

;; my local repository is always needed.
(push (cons "localelpa" (concat my-emacs-d "localelpa/")) package-archives)

(defun my-package-generate-autoloads-hack (pkg-desc pkg-dir)
"Stop package.el from leaving open autoload files lying around."
(let* ((path (expand-file-name (concat
Expand Down Expand Up @@ -520,3 +516,4 @@ If NO-REFRESH is nil, `package-refresh-contents' is called."
(setq kill-buffer-query-functions (delq 'process-kill-buffer-query-function kill-buffer-query-functions))

(provide 'init-elpa)
;;; init-elpa.el ends here
12 changes: 0 additions & 12 deletions localelpa/archive-contents

This file was deleted.

Binary file removed localelpa/compat-29.1.4.5.tar
Binary file not shown.
Loading

0 comments on commit ab15bfb

Please sign in to comment.