Move package settings to the beginning
This commit is contained in:
parent
ae21b733e5
commit
585d8f8c45
1 changed files with 25 additions and 20 deletions
45
init.el
45
init.el
|
@ -18,6 +18,31 @@
|
||||||
|
|
||||||
;; (load "bundle--general")
|
;; (load "bundle--general")
|
||||||
|
|
||||||
|
(setq package-archives
|
||||||
|
'(("melpa" . "https://melpa.org/packages/")
|
||||||
|
("org" . "https://orgmode.org/elpa/")
|
||||||
|
("elpa" . "https://elpa.gnu.org/packages/")
|
||||||
|
("nongnu" . "https://elpa.nongnu.org/nongnu/")))
|
||||||
|
|
||||||
|
(package-initialize)
|
||||||
|
|
||||||
|
(unless package-archive-contents
|
||||||
|
(package-refresh-contents))
|
||||||
|
|
||||||
|
(unless (package-installed-p 'use-package)
|
||||||
|
(package-install 'use-package))
|
||||||
|
|
||||||
|
(eval-when-compile (require 'use-package))
|
||||||
|
|
||||||
|
(setq use-package-always-ensure t)
|
||||||
|
|
||||||
|
(use-package doom-themes
|
||||||
|
:init
|
||||||
|
(load-theme 'doom-one t)
|
||||||
|
:config
|
||||||
|
(setq doom-themes-enable-bold t
|
||||||
|
doom-themes-enable-italic t))
|
||||||
|
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
(global-hl-line-mode 1)
|
(global-hl-line-mode 1)
|
||||||
|
@ -137,26 +162,6 @@
|
||||||
|
|
||||||
(load custom-file :noerror)
|
(load custom-file :noerror)
|
||||||
|
|
||||||
(setq package-archives
|
|
||||||
'(("melpa" . "https://melpa.org/packages/")
|
|
||||||
("org" . "https://orgmode.org/elpa/")
|
|
||||||
("elpa" . "https://elpa.gnu.org/packages/")
|
|
||||||
("nongnu" . "https://elpa.nongnu.org/nongnu/")))
|
|
||||||
(package-initialize)
|
|
||||||
(unless package-archive-contents
|
|
||||||
(package-refresh-contents))
|
|
||||||
(unless (package-installed-p 'use-package)
|
|
||||||
(package-install 'use-package))
|
|
||||||
(eval-when-compile (require 'use-package))
|
|
||||||
(setq use-package-always-ensure t)
|
|
||||||
|
|
||||||
(use-package doom-themes
|
|
||||||
:init
|
|
||||||
(load-theme 'doom-one t)
|
|
||||||
:config
|
|
||||||
(setq doom-themes-enable-bold t
|
|
||||||
doom-themes-enable-italic t))
|
|
||||||
|
|
||||||
(defun mk/exe-available-p (exe-name)
|
(defun mk/exe-available-p (exe-name)
|
||||||
"Check if exe is available on the system."
|
"Check if exe is available on the system."
|
||||||
(cond
|
(cond
|
||||||
|
|
Loading…
Add table
Reference in a new issue