emacs: use early-init for package info now

master
an 2020-02-06 00:20:36 -05:00
parent 6a0f048292
commit 7deac07404
3 changed files with 11 additions and 12 deletions

4
emacs/early-init.el Normal file
View File

@ -0,0 +1,4 @@
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/")))
;; EOF

View File

@ -36,18 +36,6 @@
(add-hook 'prog-mode-hook #'subword-mode)
(add-hook 'prog-mode-hook #'agw-prog-mode)
;; pkgdb
(setq package-enable-at-startup nil
package-archives '(("melpa" . "https://melpa.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/")))
(require 'package)
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
;; macros
(add-hook 'emacs-lisp-mode-hook #'agw-fp-mode)
(add-hook 'lisp-mode-hook #'agw-fp-mode)
@ -71,6 +59,12 @@
(global-set-key (kbd "C-x C-<tab>") #'agw-key-map)
;; packages
(require 'package)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
;; theme
(use-package base16-theme
:ensure t)

1
links
View File

@ -22,6 +22,7 @@ build-system/makepkg.conf ~/.config/pacman/makepkg.conf
computers/(hostname)/vconf ~/.vim/vconf
emacs/custom.el ~/.config/emacs/custom.el
emacs/data.el ~/.config/emacs/data.el
emacs/early-init.el ~/.config/emacs/early-init.el
emacs/init.el ~/.config/emacs/init.el
games/alephone/marathon-1.xml ~/.alephone/Marathon Preferences
games/alephone/marathon-2.xml ~/.alephone/Marathon 2 Preferences