Improve package handling and bring in auto-package-update.

This commit is contained in:
Florian Obser 2023-04-18 09:24:26 +02:00
parent 55fc0bde3f
commit 3f45aea85f

View File

@ -1,28 +1,37 @@
#!/usr/local/bin/emacs --script
(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)
;; (setq package-archives '(("melpa" . "https://melpa.org/packages/")
;; ("elpa" . "https://elpa.gnu.org/packages/")
;; ("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-archive-contents
(package-refresh-contents))
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(require 'use-package)
(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)
(require 'ox-publish)
(require 'ox-html)
(require 'htmlize)
(require 'org)
(setq org-html-doctype "html5")
(setq org-html-htmlize-output-type 'css)