Move Emacs files into lib folder

This commit is contained in:
Andreas Zweili 2022-08-18 21:14:15 +02:00
parent c40ad70440
commit dd79bc3d28
4 changed files with 1 additions and 38 deletions

View File

@ -12,9 +12,6 @@
(load custom-file))
(defun config-path (config)
(setq emacs-config-dir "~/.nixos/home-manager/software/emacs/emacs.d/")
(setq emacs-config-dir "~/.nixos/home-manager/software/emacs/emacs.d/lib/")
(concat emacs-config-dir config))
(load-file (config-path "evil.el"))
(load-file (config-path "loader.el"))

View File

@ -1,37 +1,3 @@
(load-file (config-path "detect_os.el"))
(load-file "~/.emacs.d/variables.el")
;; MELPA
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
(use-package use-package-ensure-system-package
:ensure t)
;; Color theme
;; disable background in terminal
(defun on-after-init ()
(unless (display-graphic-p (selected-frame))
(set-face-background 'default "unspecified-bg" (selected-frame))))
(add-hook 'window-setup-hook 'on-after-init)
(when (boundp 'enable-color-theme)
;; load solarized color theme
(use-package solarized-theme
:ensure t
:config
(setq solarized-use-variable-pitch nil)
(setq solarized-scale-org-headlines nil)
(setq solarized-high-contrast-mode-line t)
(set-face-inverse-video 'region nil)
(load-theme 'solarized-light t)))
;; smooth scrolling
(use-package smooth-scrolling
:ensure t