Move emacs 27 to $XDG_CONFIG_HOME/emacs

This commit is contained in:
Riyyi
2020-08-12 04:30:33 +02:00
parent 309f69de10
commit e9c94893df
23 changed files with 169 additions and 10 deletions
+32
View File
@@ -0,0 +1,32 @@
;;; init.el --- -*- lexical-binding: t; -*-
;;; Commentary:
;; Setup package archives and build configuration file.
;;; Code:
(require 'package)
;; Add the MELPA repository to the package manager
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
;; Install the `use-package' dependency
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(use-package benchmark-init
:ensure t
:config
;; To disable collection of benchmark data after init is done
(add-hook 'after-init-hook 'benchmark-init/deactivate))
;; -------------------------------------
;; Tangle and load configuration file
(require 'org)
(when (file-readable-p (concat user-emacs-directory "config.org"))
(org-babel-load-file (concat user-emacs-directory "config.org")))
;;; init.el ends here