Improve package handling and bring in auto-package-update.
This commit is contained in:
parent
55fc0bde3f
commit
3f45aea85f
31
publish.el
31
publish.el
@ -1,28 +1,37 @@
|
|||||||
#!/usr/local/bin/emacs --script
|
#!/usr/local/bin/emacs --script
|
||||||
|
|
||||||
(require 'package)
|
(require 'package)
|
||||||
|
(add-to-list 'package-archives
|
||||||
|
'("melpa" . "https://melpa.org/packages/") t)
|
||||||
|
(add-to-list 'package-archives
|
||||||
|
'("org" . "http://orgmode.org/elpa/") t)
|
||||||
|
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
|
|
||||||
;; (setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
(unless package-archive-contents
|
||||||
;; ("elpa" . "https://elpa.gnu.org/packages/")
|
(package-refresh-contents))
|
||||||
;; ("org" . "http://orgmode.org/elpa/")))
|
|
||||||
|
|
||||||
;; (unless package-archive-contents
|
|
||||||
;; (package-refresh-contents))
|
|
||||||
|
|
||||||
;; (unless (package-installed-p 'use-package)
|
|
||||||
;; (package-install 'use-package))
|
|
||||||
;; (require 'use-package)
|
|
||||||
|
|
||||||
|
(unless (package-installed-p 'use-package)
|
||||||
|
(package-install 'use-package))
|
||||||
|
(require 'use-package)
|
||||||
(setq use-package-always-ensure t)
|
(setq use-package-always-ensure t)
|
||||||
|
|
||||||
|
(use-package auto-package-update
|
||||||
|
:custom
|
||||||
|
(auto-package-update-interval 7)
|
||||||
|
(auto-package-update-prompt-before-update nil)
|
||||||
|
(auto-package-update-hide-results t)
|
||||||
|
:config
|
||||||
|
(auto-package-update-maybe))
|
||||||
|
|
||||||
|
(use-package org
|
||||||
|
:pin org)
|
||||||
|
|
||||||
(use-package htmlize)
|
(use-package htmlize)
|
||||||
|
|
||||||
(require 'ox-publish)
|
(require 'ox-publish)
|
||||||
(require 'ox-html)
|
(require 'ox-html)
|
||||||
(require 'htmlize)
|
(require 'htmlize)
|
||||||
(require 'org)
|
|
||||||
|
|
||||||
(setq org-html-doctype "html5")
|
(setq org-html-doctype "html5")
|
||||||
(setq org-html-htmlize-output-type 'css)
|
(setq org-html-htmlize-output-type 'css)
|
||||||
|
Loading…
Reference in New Issue
Block a user