blob: 1af31def91b216c17ce2eec75828adaa21c16833 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
;;; init.el --- Initialize my Emacs configuration
;;; Commentary:
;;; Code:
(setq gc-cons-threshold 64000000)
(add-hook 'after-init-hook #'(lambda ()
;; restore after startup
(setq gc-cons-threshold 800000)))
(require 'package)
(add-to-list 'package-archives
'("melpa" .
"https://melpa.org/packages/"))
(progn
(message "initializing package")
(package-initialize))
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile (require 'use-package))
(setq use-package-verbose t)
(setq use-package-always-ensure nil)
(defun my/package-install-refresh-contents (&rest args)
"Refresh the package content, takes an optional ARGS."
;; Whenever use-package statements use ensure (directly or via
;; use-package-always-ensure), we need to refresh the package contents first,
;; as installation fails otherwise:
;; https://github.com/jwiegley/use-package/issues/256#issuecomment-263313693
(package-refresh-contents)
(advice-remove 'package-install 'my/package-install-refresh-contents))
(advice-add 'package-install :before 'my/package-install-refresh-contents)
(require 'fcuny-settings (expand-file-name "custom/fcuny-settings" user-emacs-directory))
(require 'fcuny-ui (expand-file-name "custom/fcuny-ui" user-emacs-directory))
(require 'fcuny-navigation (expand-file-name "custom/fcuny-navigation" user-emacs-directory))
(require 'fcuny-edit (expand-file-name "custom/fcuny-edit" user-emacs-directory))
(require 'fcuny-text (expand-file-name "custom/fcuny-text" user-emacs-directory))
(require 'fcuny-git (expand-file-name "custom/fcuny-git" user-emacs-directory))
(require 'fcuny-org (expand-file-name "custom/fcuny-org" user-emacs-directory))
(require 'fcuny-conf (expand-file-name "custom/fcuny-conf" user-emacs-directory))
(require 'fcuny-prog (expand-file-name "custom/fcuny-prog" user-emacs-directory))
(require 'fcuny-eshell (expand-file-name "custom/fcuny-eshell" user-emacs-directory))
(require 'fcuny-tramp (expand-file-name "custom/fcuny-tramp" user-emacs-directory))
(require 'fcuny-notmuch (expand-file-name "custom/fcuny-notmuch" user-emacs-directory))
;; ;; (require 'fcuny-defuns)
;; ;; (require 'fcuny-commands)
;; ;; (require 'my-work)
;;; init.el ends here
|