~theothornhill/dotfiles

dotfiles/emacs.d/init.el -rw-r--r-- 1017 bytes
57165df0Theodor Thornhill Create eglot-x.el 6 months ago
                                                                                
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
; -*- lexical-binding: t; -*-

(cd "~/")

(blink-cursor-mode -1)

(if (member window-system '(ns))
    (add-to-list 'default-frame-alist '(font . "JetBrains Mono-14"))
  (add-to-list 'default-frame-alist '(font . "JetBrains Mono-12")))

(package-initialize)
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))

(eval-and-compile
  (setq use-package-always-ensure t)
  (setq use-package-enable-imenu-support t))

(eval-when-compile (require 'use-package))

;;; Keep custom file in a different spot
(setq custom-file (concat user-emacs-directory "custom.el"))

(use-package settings
  :ensure nil
  :load-path "lisp")

(use-package themodor
  :ensure nil
  :load-path "lisp"
  :config (enable-theme 'themodor))

(use-package eglot-x
  :ensure nil
  :load-path "lisp")

(mapc (lambda (feature) (put feature 'disabled nil)) 
      (list 'upcase-region
            'narrow-to-region
            'downcase-region
            'scroll-left
            'set-goal-column))