Further splitting up of main emacs module

This commit is contained in:
jgrogan 2024-05-31 13:18:36 +01:00
parent 367b7f36ea
commit 261e59a27f
3 changed files with 21 additions and 17 deletions

View file

@ -8,27 +8,13 @@
;; Slightly nicer theme ;; Slightly nicer theme
(set-face-attribute 'default nil :font "Menlo" :height 130) (set-face-attribute 'default nil :font "Menlo" :height 130)
(require 'jg-package)
(require 'jg-core) (require 'jg-core)
(setq custom-file (concat user-emacs-directory "custom.el")) (setq custom-file (concat user-emacs-directory "custom.el"))
(when (file-exists-p custom-file) (when (file-exists-p custom-file)
(load custom-file)) (load custom-file))
;; Set up package repos
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")
("elpa" . "https://elpa.gnu.org/packages/")))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(unless (package-installed-p 'use-package)
(package-install 'use-package))
;; Set up use-package
(require 'use-package)
(setq use-package-always-ensure t)
(use-package ivy (use-package ivy
:diminish :diminish
:config :config
@ -103,7 +89,7 @@
(setq evil-want-keybinding nil) (setq evil-want-keybinding nil)
(setq evil-want-C-u-scroll t) (setq evil-want-C-u-scroll t)
(setq evil-want-C-i-jump nil) (setq evil-want-C-i-jump nil)
:hook (evil-mode . rune/evil-hook) ;; :hook (evil-mode . rune/evil-hook)
:config :config
(evil-mode 1) (evil-mode 1)
(define-key evil-insert-state-map (kbd "C-g") 'evil-normal-state) (define-key evil-insert-state-map (kbd "C-g") 'evil-normal-state)

View file

@ -1,4 +1,4 @@
;; -*- lexical-binding: t; -*- ; -*- lexical-binding: t; -*-
(setq inhibit-startup-message t) (setq inhibit-startup-message t)
(setq initial-scratch-message nil) (setq initial-scratch-message nil)

View file

@ -0,0 +1,18 @@
; -*- lexical-binding: t; -*-
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")
("elpa" . "https://elpa.gnu.org/packages/") ))
(package-initialize)
(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)
(provide 'jg-package)